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; } }