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 = []