From 3c066cbfa7bc88b63b9c0efcda5b39d13fc6566f Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Tue, 12 Dec 2023 10:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E9=80=89=E6=8B=A9=E5=90=8E=E7=9A=84=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/issue/coms/comScanIssuePack.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/issue/coms/comScanIssuePack.vue b/pages/issue/coms/comScanIssuePack.vue index ebfe2b32..f0c121b1 100644 --- a/pages/issue/coms/comScanIssuePack.vue +++ b/pages/issue/coms/comScanIssuePack.vue @@ -124,7 +124,6 @@ type: String, default: '' }, - }, data() { return { @@ -146,6 +145,8 @@ positionList: [], defaultValueList: [], fromInventoryStatuses: "", + packageInfo: {}, + label: {} } }, created() { @@ -215,7 +216,7 @@ this.showErrorMessage('发料库位【' + fromlocation + '】不存在') } }, - + onScan(result) { try { @@ -226,7 +227,10 @@ }); return; } - let packageInfo = result.package; + + that.label = result.label; + that.packageInfo = result.package; + // let packageInfo = result.package; let itemCode = result.label.itemCode; let packingCode = result.label.packingNumber; let lot = result.label.batch; @@ -254,7 +258,7 @@ }) } else if (balanceRes.data.list.length == 1) { let balance = balanceRes.data.list[0]; - this.afterGetBalance(result.label, balance, packageInfo); + this.afterGetBalance(result.label, balance, that.packageInfo); } else { this.showBalanceSelect(balanceRes.data.list); } @@ -271,12 +275,12 @@ }, selectBalanceItem(balance) { - this.afterGetBalance(this.label, balance); + this.afterGetBalance(this.label, balance, this.packageInfo); }, afterGetBalance(label, balance, packageInfo) { + let that = this; try { - let that = this; let itemCode = label.itemCode; let packingCode = label.packingNumber; let lot = label.batch; @@ -387,7 +391,7 @@ handleQty += Number(res.qty) }) batch.handleQty = handleQty; - + }, addRecord(batch, label, balance, packageInfo) {