diff --git a/src/views/oms/emisWaybill/OrderRecord.vue b/src/views/oms/emisWaybill/OrderRecord.vue index 148a612..a71809c 100644 --- a/src/views/oms/emisWaybill/OrderRecord.vue +++ b/src/views/oms/emisWaybill/OrderRecord.vue @@ -14,8 +14,8 @@ - - {{form.sendDate}} + + {{form.orderDate}} @@ -105,8 +105,6 @@ --> - - @@ -527,14 +525,13 @@ - - + - {{ $t('快递货物申报信息') }} - - - + {{ $t('快递货物申报信息') }} + + + @@ -624,28 +621,28 @@ --> - - + - + - + - + @@ -661,7 +658,7 @@ --> - + @@ -708,7 +705,7 @@ - + {{ $t('上传单证文件') }} @@ -1106,8 +1103,6 @@ watch: { // next() // }, created() { - - if(this.$route.query.action=="copyOrder"){ this.action=this.$route.query.action; this.billCode=this.$route.query.billCode; @@ -1141,7 +1136,6 @@ created() { console.log("==preOrderByProd=>",postForm); - this.form.sendDate =parseTime(new Date()); this.form.transLine=postForm.transLine; this.form.billWeight=postForm.billWeight; @@ -1177,7 +1171,7 @@ methods: { initData() { this.reset(); this.form.productTypeSelArr=null; - this.form.sendDate =parseTime(new Date()); + if(this.billCode && this.billCode!=undefined) { this.loading = true; @@ -1367,7 +1361,7 @@ methods: { this.preCalcFee(); }, onTransLineChange(item){ - this.transType=item.transType; + this.form.carryType=item.transType; this.preCalcFee() }, openCollapse(index){ @@ -1478,6 +1472,7 @@ methods: { blMessage: null, blAcceptMessage: null, meterType:null, + carryType:null, blGenSubbill:null, billCodeSub:null, blSpecialQuote:null, @@ -1569,21 +1564,21 @@ methods: { }; this.form.attachmentList.push(item); - // 不影响原表单提交,clone 一份数据 - let postForm=deepClone(this.form) - // 调整包装类型为多选 - if(this.form.packType&&this.form.packType.length>0){ - postForm.packType=this.form.packType.join(","); - } + this.form.orderDate =parseTime(new Date()); + // 不影响原表单提交,clone 一份数据 + let postForm=deepClone(this.form) + // 调整包装类型为多选 + if(this.form.packType&&this.form.packType.length>0){ + postForm.packType=this.form.packType.join(","); + } - - realSubmitOrder(postForm).then(res => { + realSubmitOrder(postForm).then(res => { console.log("===>realSubmitOrder==>",res) this.billCode=res.data.billCode; this.$modal.msgSuccess("下单成功"); this.onComplete(); - }); + }); }, // 弹出地址簿选择 handleSelectCustomerAddress(addressType){ diff --git a/src/views/oms/emisWaybill/SendOrderbillList.vue b/src/views/oms/emisWaybill/SendOrderbillList.vue index e726113..2c8a0f3 100644 --- a/src/views/oms/emisWaybill/SendOrderbillList.vue +++ b/src/views/oms/emisWaybill/SendOrderbillList.vue @@ -388,7 +388,6 @@ - - + + + {{ parseTime(scope.row.sendDate, '{y}-{m}-{d}') }} + + - - - + @@ -1061,16 +1059,12 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - console.log("====>selection==>",selection) - if(selection!=null){ - this.currentSelectBill = selection[0]; - this.billCode=selection[0].billCode; - this.billPicSendRmk=selection[0].billPicSendRmk; - - } - console.log("====>billCode==>",this.billCode) - this.selectionList=selection; + if(this.selectionList&&this.selectionList.length>0){ + this.currentSelectBill = this.selectionList[0]; + this.billCode=this.selectionList[0].billCode; + this.billPicSendRmk=this.selectionList[0].billPicSendRmk; + } this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length