From 27e1c437010ed014c34361f770f4db62d862cae6 Mon Sep 17 00:00:00 2001 From: liuyp Date: Wed, 12 Jun 2024 15:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emis/emisTmsPack/packageManagement.vue | 6 +- .../emisTmsSiteBatch/centerGenBatchMgnt.vue | 57 ++++++++++++++----- 2 files changed, 46 insertions(+), 17 deletions(-) diff --git a/src/views/emis/emisTmsPack/packageManagement.vue b/src/views/emis/emisTmsPack/packageManagement.vue index 3dfd65bd..4a9a0608 100644 --- a/src/views/emis/emisTmsPack/packageManagement.vue +++ b/src/views/emis/emisTmsPack/packageManagement.vue @@ -303,11 +303,11 @@ - + {{ $t('目的国家') }} - + @@ -942,6 +942,8 @@ export default { this.wayBillData.dateTimeRange=value; }, async handleAddCoPack(){ + debugger + console.log(this.coData) if(!this.coData.destCountry || !this.coData.sendSiteCode || !this.coData.nextSiteCode || !this.blUnpack){ this.$modal.msgError("请先选择必填项") return; diff --git a/src/views/emis/emisTmsSiteBatch/centerGenBatchMgnt.vue b/src/views/emis/emisTmsSiteBatch/centerGenBatchMgnt.vue index 3154b2c2..7a05c254 100644 --- a/src/views/emis/emisTmsSiteBatch/centerGenBatchMgnt.vue +++ b/src/views/emis/emisTmsSiteBatch/centerGenBatchMgnt.vue @@ -310,9 +310,14 @@ {{ scope.row.remark }} - + + + + @@ -356,15 +361,8 @@ - - - - + + @@ -385,6 +383,18 @@ + + + + + + + @@ -673,7 +683,7 @@ - + @@ -1006,6 +1016,7 @@ export default { this.queryParams.params["beginCreateTime"] = dateToStr(new Date(this.dateTimeRange[0])); this.queryParams.params["endCreateTime"] = dateToStr(new Date(this.dateTimeRange[1])); } + this.queryParams.destCountry = this.queryParams.receiveCountry; listEmisTmsSiteBatch(this.queryParams).then(response => { this.emisTmsPackList = response.rows; this.total = response.total; @@ -1118,12 +1129,23 @@ export default { this.$modal.msgError("请先选择至少一条运单信息") return; } + + let firstItemCountry = this.emisCoPackDetail.length > 0 ? this.emisCoPackDetail[0].receiveCountry : ''; + // 将选中的“待组批次”的运单 置为 追加的运单号 + for(let p = 0; p < this.emisCoPackDetail.length;p++){ + if(this.emisCoPackDetail[p].receiveCountry != firstItemCountry){ + this.$message.error("存在了不同的目的国家!"); + return ; + } + } + let coPackItem={ batchNo: this.coData.batchNo, batchName: this.coData.batchName || '', batchDate: this.coData.createTime, batchType: this.coData.batchType || null, transType: this.coData.transType || null, + destCountry: this.coData.destCountry || null, startSiteCode: this.coData.startSiteCode || null, startSiteName: this.coData.startSiteName || null, nextSiteCode: this.coData.nextSiteCode || null, @@ -1251,7 +1273,7 @@ export default { || this.tempCoPackInfo.airBilllNo != this.coData.airBilllNo || this.tempCoPackInfo.etd != this.coData.etd || this.tempCoPackInfo.carNo != this.coData.carNo - // || this.tempCoPackInfo.carTime != this.coData.carTime + || this.tempCoPackInfo.destCountry != this.coData.destCountry || this.tempCoPackInfo.shipNo != this.coData.shipNo // || this.tempCoPackInfo.shipTime != this.coData.shipTime || this.tempCoPackInfo.totalWaybillQty != this.coData.totalWaybillQty @@ -1268,7 +1290,7 @@ export default { this.tempCoPackInfo.airBilllNo = this.coData.airBilllNo; this.tempCoPackInfo.etd = this.coData.etd; this.tempCoPackInfo.carNo = this.coData.carNo; - // this.tempCoPackInfo.carTime = this.coData.carTime; + this.tempCoPackInfo.destCountry = this.coData.destCountry; this.tempCoPackInfo.shipNo = this.coData.shipNo; // this.tempCoPackInfo.shipTime = this.coData.shipTime; this.tempCoPackInfo.totalWaybillQty = this.coData.totalWaybillQty; @@ -1492,8 +1514,13 @@ export default { this.coPackType="add"; this.coData = {}; if(this.activeName=="first"){ + let firstItemCountry = this.waitPackList.length > 0 ? this.waitPackList[0].receiveCountry : ''; // 将选中的“待组批次”的运单 置为 追加的运单号 for(let p = 0; p < this.waitPackList.length;p++){ + if(this.waitPackList[p].receiveCountry != firstItemCountry){ + this.$message.error("存在了不同的目的国家!"); + return ; + } this.emisCoPackDetail.push(this.waitPackList[p]); } } @@ -1545,7 +1572,7 @@ export default { let resData = response.data; this.coData.batchNo = resData.batchNo; // this.coData.createTime = resData.createTime; - // this.coData.destCountry = resData.destCountry; + this.coData.destCountry = resData.destCountry; // this.coData.startSiteCode = resData.startSiteCode; // this.coData.nextSiteCode = resData.nextSiteCode; // this.blUnpack = resData.blUnpack;