From f470848937ca1ddbb2da2ecdfe10820094af564a Mon Sep 17 00:00:00 2001 From: linfso Date: Mon, 9 Sep 2024 09:58:27 +0800 Subject: [PATCH] md --- src/views/oms/TransProduct/index.vue | 49 +++++++++++++++---- src/views/oms/emisWaybill/OrderRecord.vue | 45 ++++++++++------- .../oms/emisWaybill/waybillPreCalcFee.vue | 4 +- 3 files changed, 69 insertions(+), 29 deletions(-) diff --git a/src/views/oms/TransProduct/index.vue b/src/views/oms/TransProduct/index.vue index ff4fa5f..a50ce5e 100644 --- a/src/views/oms/TransProduct/index.vue +++ b/src/views/oms/TransProduct/index.vue @@ -2,10 +2,10 @@ - + - + + + + + + + + + + @@ -117,6 +129,8 @@ export default { countryIdsOptions:[], translineIdsOptions:[], translineInnerIdsOptions:[], + + selectList: [], countryName:null, // 弹出层标题 title: "", @@ -136,10 +150,7 @@ export default { id:null, titleView:"", openView: false, - // 备注时间范围 - daterangeCreateTime: [], - // 备注时间范围 - daterangeUpdateTime: [], + // 查询参数 queryParams: { pageNum: 1, @@ -197,15 +208,33 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { + this.selectList=selection; this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length }, handleOrderRecord(row) { - // this.id=row.id; - // this.titleView="查看"; - // this.openView=true; - this.router.push({ path: '/oms/emisTransProduct/viewDetail', query: { id: row.id }}) + if(this.selectList&&this.selectList.length>0){ + let item0=this.selectList[0]; + if(item0.status==1){ + let postForm={ + transLine: item0.transLineCode, + productType: item0.prodCode, + reciever: { + country: item0.country, + } + } + + this.$router.push({ path: '/orderMgnt/OrderRecord', + query: { + action:"preOrderByProd", + routeParams: JSON.stringify(postForm) + } + }) + }else{ + this.$modal.msgError("此产品已暂停,请选择其他产品类型"); + } + } }, handleFormChanged(){ diff --git a/src/views/oms/emisWaybill/OrderRecord.vue b/src/views/oms/emisWaybill/OrderRecord.vue index a12afb2..91f9397 100644 --- a/src/views/oms/emisWaybill/OrderRecord.vue +++ b/src/views/oms/emisWaybill/OrderRecord.vue @@ -902,13 +902,37 @@ data() { }, computed: { }, - watch: { +watch: { + "$route": { + handler (newValue, oldValue) { + // 选择产品后报价 + if(this.$route.query.action=="preOrderByProd"){ + this.reset(); + let routeParams=this.$route.query.routeParams; + let postForm=JSON.parse(routeParams); + + this.form.transLine=postForm.transLine; + this.form.billWeight=postForm.billWeight; + this.form.totalVolume=postForm.totalVolume; + this.form.productType=postForm.productType; + this.form.reciever.country=postForm.reciever.country; + this.form.productTypeSelArr=[this.form.transLine,this.form.productType]; + + } + }, + deep: true + }, }, created() { - this.action=this.$route.query.action; - this.billCode=this.$route.query.billCode; - this.initData(); + + if(this.$route.query.action=="copyOrder"){ + this.action=this.$route.query.action; + this.billCode=this.$route.query.billCode; + this.initData(); + }else{ + this.initData(); + } }, mounted() { @@ -938,19 +962,6 @@ methods: { this.billCode=null; this.form.billCode=null; } - - // if(this.form.lockFlag=="T"){ - // this.$confirm(this.form.lockReason, '提示', { - // confirmButtonText: '确认', - // cancelButtonText: '返回', - // type: 'warning' - // }).then(() => { - - // }).catch(() => { - - // }) - // } - }); }else{ this.form.customsEclaration='1'; diff --git a/src/views/oms/emisWaybill/waybillPreCalcFee.vue b/src/views/oms/emisWaybill/waybillPreCalcFee.vue index 7557d4f..6bd44eb 100644 --- a/src/views/oms/emisWaybill/waybillPreCalcFee.vue +++ b/src/views/oms/emisWaybill/waybillPreCalcFee.vue @@ -34,7 +34,7 @@ - +