Commit b1e33200 authored by dragondean@qq.com's avatar dragondean@qq.com

报价单优惠提单模板设置等bug

parent 22ab0f26
...@@ -64,7 +64,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { ...@@ -64,7 +64,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
// debugger // debugger
if (route.parentId === 0) { if (route.parentId === 0) {
route.component = Layout route.component = Layout
} else { }
else {
route.component = ParentView route.component = ParentView
} }
} else { // 根节点 } else { // 根节点
......
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
import { createCoupon, updateCoupon, deleteCoupon, getCoupon, getCouponPage, exportCouponExcel } from "@/api/ecw/coupon"; import { createCoupon, updateCoupon, deleteCoupon, getCoupon, getCouponPage, exportCouponExcel } from "@/api/ecw/coupon";
export default { export default {
name: "Coupon", name: "EcwCouponIndex",
components: { components: {
}, },
data() { data() {
...@@ -266,6 +266,9 @@ export default { ...@@ -266,6 +266,9 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
activated(){
this.getList()
},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
{{consignorData.contactsName||$t('')}} {{consignorData.contactsName||$t('')}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('手机号')+':'"> <el-descriptions-item :label="$t('手机号')+':'">
{{consignorData?(checkCode(consignorData.areaCode)+consignorData.phoneNew)||$t(''):$t('')}} {{consignorData && consignorData.phoneNew ? (checkCode(consignorData.areaCode) + consignorData.phoneNew)||$t(''):$t('')}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('联系地址')+':'"> <el-descriptions-item :label="$t('联系地址')+':'">
{{consignorData.address||$t('')}} {{consignorData.address||$t('')}}
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{{consigneeData.contactsName||$t('')}} {{consigneeData.contactsName||$t('')}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('手机号')+':'"> <el-descriptions-item :label="$t('手机号')+':'">
{{consigneeData?(checkCode(consigneeData.areaCode)+consigneeData.phoneNew)||$t(''):$t('')}} {{consigneeData && consigneeData.phoneNew ?(checkCode(consigneeData.areaCode)+consigneeData.phoneNew)||$t(''):$t('')}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('联系地址')+':'"> <el-descriptions-item :label="$t('联系地址')+':'">
{{consigneeData.address||$t('')}} {{consigneeData.address||$t('')}}
......
...@@ -148,7 +148,7 @@ import { getCurrencyList } from '@/api/ecw/currency'; ...@@ -148,7 +148,7 @@ import { getCurrencyList } from '@/api/ecw/currency';
import {getTradeCityList} from '@/api/ecw/region' import {getTradeCityList} from '@/api/ecw/region'
import UserSelector from '@/components/UserSelector' import UserSelector from '@/components/UserSelector'
export default { export default {
name: "Offer", name: "EcwOfferIndex",
components: { components: {
UserSelector UserSelector
}, },
...@@ -189,6 +189,9 @@ export default { ...@@ -189,6 +189,9 @@ export default {
return this.tradeCityList.filter(item => item.type == 1) return this.tradeCityList.filter(item => item.type == 1)
}, },
}, },
activated(){
this.getList()
},
created() { created() {
getTradeCityList().then(res => this.tradeCityList = res.data) getTradeCityList().then(res => this.tradeCityList = res.data)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div v-if="step=='preview'" style="height:250px; overflow-y:hidden"> <div v-if="step=='preview'" style="height:250px; overflow-y:hidden">
<div <div
class="order-print-tag-item" class="order-print-tag-item"
v-for="(item, index) in tags.filter(tag => tag.num >= form.start && tag.num <= form.end)" v-for="(item, index) in printTags"
style="width: 80mm; margin: 0 auto;" :id="'order-print-tag' + item.num" style="width: 80mm; margin: 0 auto;" :id="'order-print-tag' + item.num"
:style="{display: index == 0 ? 'block':'none' }" :style="{display: index == 0 ? 'block':'none' }"
:key="item.num"> :key="item.num">
...@@ -92,6 +92,9 @@ export default { ...@@ -92,6 +92,9 @@ export default {
} }
}, },
computed:{ computed:{
printTags(){
return this.tags.filter(tag => tag.num >= this.form.start && tag.num <= this.form.end)
},
detail(){ detail(){
return this.tags.length ? this.tags[0] : null return this.tags.length ? this.tags[0] : null
}, },
...@@ -124,6 +127,9 @@ export default { ...@@ -124,6 +127,9 @@ export default {
if(this.form.end > this.tags[this.tags.length-1].num){ if(this.form.end > this.tags[this.tags.length-1].num){
return this.$message.error(this.$t('结束标签不对')) return this.$message.error(this.$t('结束标签不对'))
} }
if(!this.printTags.length){
return this.$message.error(this.$t('指定区域无可打印标签'))
}
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (!valid) { if (!valid) {
return; return;
......
...@@ -353,7 +353,6 @@ ...@@ -353,7 +353,6 @@
<!-- 打印标签 --> <!-- 打印标签 -->
<template v-if=" <template v-if="
exclude(scope.row.status, [0]) && exclude(scope.row.status, [0]) &&
exclude(scope.row.shipmentState, [320,322,323]) &&
exclude(scope.row.abnormalState, [5,6,7,8]) exclude(scope.row.abnormalState, [5,6,7,8])
"> ">
<el-dropdown-item @click.native="printTagOrderId=scope.row.orderId">{{$t('打印标签')}}</el-dropdown-item> <el-dropdown-item @click.native="printTagOrderId=scope.row.orderId">{{$t('打印标签')}}</el-dropdown-item>
......
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('抬头')" prop="titleZh"> <el-form-item :label="$t('抬头')" prop="titleZh">
<el-link type="primary" @click.native="setTpl('sea')">{{ $t('海运模板') }}</el-link> | <el-link type="primary" @click.native="setTpl('air')">{{ $t('空运模板') }}</el-link> <el-link type="primary" @click.native="setTpl('sea')">{{ $t('海运模板') }}</el-link> | <el-link type="primary" @click.native="setTpl('air')">{{ $t('空运模板') }}</el-link>
<ueditor v-model="ladingform.titleZh" :min-height="192" style="width:960px"/> <ueditor v-if="templateOpen" v-model="ladingform.titleZh" :min-height="192" style="width:960px"/>
</el-form-item> </el-form-item>
<el-card class="box-card"> <el-card class="box-card">
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
<el-form-item :label="$t('条款')" prop="contentZh"> <el-form-item :label="$t('条款')" prop="contentZh">
<el-link type="primary" @click.native="setAgreementTpl('agreementSea')">{{ $t('海运模板') }}</el-link> | <el-link type="primary" @click.native="setAgreementTpl('agreementSea')">{{ $t('海运模板') }}</el-link> |
<el-link type="primary" @click.native="setAgreementTpl('agreementAir')">{{ $t('空运模板') }}</el-link> <el-link type="primary" @click.native="setAgreementTpl('agreementAir')">{{ $t('空运模板') }}</el-link>
<ueditor v-model="ladingform.contentZh" :min-height="192" style="width:960px"/> <ueditor v-if="templateOpen" v-model="ladingform.contentZh" :min-height="192" style="width:960px"/>
</el-form-item> </el-form-item>
<el-form-item v-if="showFlag"> <el-form-item v-if="showFlag">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment