From e53f4d90ad7ce7f03c9a63bfea9f6d55b7b7b4d1 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 18 Mar 2025 13:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/count/job/countLightDetail.vue | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/pages/count/job/countLightDetail.vue b/src/pages/count/job/countLightDetail.vue index 3387eaa8..40cff344 100644 --- a/src/pages/count/job/countLightDetail.vue +++ b/src/pages/count/job/countLightDetail.vue @@ -233,19 +233,19 @@ if (returnData.recordList.length == 0) { if (this.manageMode == "BY_BATCH") { var mainItem = this.dataList.find(r => - r.itemCode == returnData.itemCode && - r.batch == returnData.batch && - r.inventoryStatus == returnData.inventoryStatus) + r.itemCode == this.currentEditItem.itemCode && + r.batch == this.currentEditItem.batch && + r.inventoryStatus == this.currentEditItem.inventoryStatus) if (mainItem) { mainItem.recordList = [] - } else if (this.manageMode == "BY_QUANTITY") { - var mainItem = this.dataList.find(r => - r.itemCode == returnData.itemCode && - r.inventoryStatus == returnData.inventoryStatus) + } + } else if (this.manageMode == "BY_QUANTITY") { + var mainItem = this.dataList.find(r => + r.itemCode == this.currentEditItem.itemCode && + r.inventoryStatus == this.currentEditItem.inventoryStatus) - if (mainItem) { - mainItem.recordList = [] - } + if (mainItem) { + mainItem.recordList = [] } } } else { @@ -374,9 +374,9 @@ } else { //主列表不存在数据,添加到主列表 var detail = this.createBackAddDetailInfo(subItem) - detail.batch="" + detail.batch = "" if (!detail.recordList) { - + detail.recordList = [] } @@ -787,7 +787,7 @@ } else { //不在任务列表中,添加到列表中 var detail = this.createAddDetailInfo(scanItem) - detail.batch="" + detail.batch = "" if (!detail.recordList) { detail.recordList = []