From 66bf11b1ada30865ef77bc8d2eaf67605051a451 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Sat, 10 Aug 2024 19:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inventoryMove/coms/comMoveRecord.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index c0029a2e..09a271e2 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -237,9 +237,6 @@ getScanResult(result) { var balance = result.balance; var pack = result.package; - if(!balance.packingNumber){ - balance.packingNumber=pack.number; - } var item = this.detailSource.find(res => { if (res.itemCode == balance.itemCode) { return res @@ -264,8 +261,8 @@ this.detailSource.push(itemp) } else { var detail = item.subList.find(r => { - if (r.packingNumber == balance.packingNumber && - r.batch == balance.batch && + if (r.packingNumber == pack.number && + r.batch == pack.batch && r.fromLocationCode == balance.locationCode && r.toInventoryStatus == balance.inventoryStatus && r.scaned == true) { @@ -285,7 +282,7 @@ newDetail.fromLocationCode = result.fromLocationCode item.subList.push(newDetail); } else { - this.showErrorMessage(balance.packingNumber + "重复扫描") + this.showErrorMessage(detail.packingNumber + "重复扫描") } } calcHandleQty(this.detailSource); @@ -362,7 +359,7 @@ if (res.success) { this.managementList = res.list; var params = this.setParams() - // console.log("提交" + JSON.stringify(params)) + console.log("提交" + JSON.stringify(params)) inventoryMoveRecordSubmit(params).then(res => { uni.hideLoading() if (res.data) {