From 5df486f89821cac22ba4181de1de96115b88c4c5 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 17 Mar 2025 11:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=E7=9B=98?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/count/job/countLightDetail.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pages/count/job/countLightDetail.vue b/src/pages/count/job/countLightDetail.vue index c74b69e1..240f5c2c 100644 --- a/src/pages/count/job/countLightDetail.vue +++ b/src/pages/count/job/countLightDetail.vue @@ -238,6 +238,7 @@ r.itemCode == subItem.itemCode && r.batch == subItem.batch && r.inventoryStatus == subItem.inventoryStatus) + subItem.toPackingNumber="" //主列表存在数据 if (mainItem) { mainItem.scaned = true; @@ -277,6 +278,8 @@ var mainItem = this.dataList.find(r => r.itemCode == subItem.itemCode && r.inventoryStatus == subItem.inventoryStatus) + subItem.toPackingNumber="" + subItem.toBatch="" //主列表存在数据 if (mainItem) { mainItem.scaned = true; @@ -428,7 +431,8 @@ r.locationCode == scanItem.locationCode && r.batch == scanItem.batch && r.inventoryStatus == scanItem.inventoryStatus) - + //批次管理,包装赋值为空 + scanItem.toPackingNumber = "" //在任务列表中,添加到对应的recordList if (mainItem) { if (!mainItem.recordList) { @@ -442,10 +446,11 @@ res.batch == scanItem.batch && res.inventoryStatus == scanItem.inventoryStatus ) - scanItem.toPackingNumber = "" + //已经存在,数量累加 if (subItem) { + subItem.toPackingNumber = "" subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty)) } else { mainItem.recordList.unshift(scanItem) @@ -466,7 +471,6 @@ res.batch == scanItem.batch && res.inventoryStatus == scanItem.inventoryStatus ) - scanItem.toPackingNumber = "" //已经存在,数量累加 if (subItem) { @@ -483,6 +487,8 @@ r.itemCode == scanItem.itemCode && r.locationCode == scanItem.locationCode && r.inventoryStatus == scanItem.inventoryStatus) + scanItem.toBatch = "" + scanItem.toPackingNumber = "" //在任务列表中,添加到对应的recordList if (item) { if (!item.recordList) { @@ -499,14 +505,11 @@ //已经存在,数量累加 if (subItem) { - subItem.toPackingNumber = "", - subItem.toBatch = "" subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty)) } else { item.recordList.unshift(scanItem) } - } else { //不在任务列表中,添加到列表中 var detail = this.createAddDetailInfo(scanItem) @@ -523,13 +526,11 @@ //已经存在,数量累加 if (subItem) { - subItem.toPackingNumber = "", - subItem.toBatch = "" subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty)) } else { detail.recordList.unshift(scanItem) } - + this.dataList.unshift(detail) this.currentEditItem = scanItem; } }