From babf49cebfe43725bf5a2d75d90a3019a727aa3c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 7 Aug 2024 14:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E5=8F=91=E8=B4=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1--=E5=90=8C=E4=B8=80=E7=89=A9=E6=96=99=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=89=AB=E6=8F=8F=E6=8F=90=E4=BA=A4=E4=B8=8D?= =?UTF-8?q?=E5=9C=A8=E4=BB=BB=E5=8A=A1=E4=B8=AD=E7=9A=84=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deliver/coms/comScanDeliverPack.vue | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue index c0e522eb..f14f6c22 100644 --- a/src/pages/deliver/coms/comScanDeliverPack.vue +++ b/src/pages/deliver/coms/comScanDeliverPack.vue @@ -232,10 +232,10 @@ fromLocationUpdate(fromlocation) { let location = this.fromLocationList.find(r => r == fromlocation) - if (location == undefined) { - this.fromLocationCode = '' - this.showErrorMessage('发货库位【' + fromlocation + '】不存在') - } + // if (location == undefined) { + this.fromLocationCode = fromlocation + // this.showErrorMessage('发货库位【' + fromlocation + '】不存在') + // } }, onScan(result) { try { @@ -305,6 +305,28 @@ let lot = label.batch; let item = that.toLocation.Items.find(r => r.itemCode == itemCode); let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode); + if(!fromLocation){ + fromLocation = { + Batchs:[{ + Recommends:[], + Records: [], + batch: label.batch, + detail:{ + ...packageInfo, + fromLocationCode: balance.locationCode, + }, + handleQty: 0, + packingNumber: label.packingNumber, + qty: label.qty, + uom: label.uom + }], + fromLocationCode: balance.locationCode, + handleQty: 0, + qty: label.qty, + uom: label.uom + } + item.Locations.push(fromLocation) + } if (fromLocation != undefined) { let batch = fromLocation.Batchs.find(r => r.batch == lot); if (batch != undefined) {