Browse Source

修改盘点

intex_online20250327
lijuncheng 2 weeks ago
parent
commit
e53f4d90ad
  1. 26
      src/pages/count/job/countLightDetail.vue

26
src/pages/count/job/countLightDetail.vue

@ -233,19 +233,19 @@
if (returnData.recordList.length == 0) { if (returnData.recordList.length == 0) {
if (this.manageMode == "BY_BATCH") { if (this.manageMode == "BY_BATCH") {
var mainItem = this.dataList.find(r => var mainItem = this.dataList.find(r =>
r.itemCode == returnData.itemCode && r.itemCode == this.currentEditItem.itemCode &&
r.batch == returnData.batch && r.batch == this.currentEditItem.batch &&
r.inventoryStatus == returnData.inventoryStatus) r.inventoryStatus == this.currentEditItem.inventoryStatus)
if (mainItem) { if (mainItem) {
mainItem.recordList = [] mainItem.recordList = []
} else if (this.manageMode == "BY_QUANTITY") { }
var mainItem = this.dataList.find(r => } else if (this.manageMode == "BY_QUANTITY") {
r.itemCode == returnData.itemCode && var mainItem = this.dataList.find(r =>
r.inventoryStatus == returnData.inventoryStatus) r.itemCode == this.currentEditItem.itemCode &&
r.inventoryStatus == this.currentEditItem.inventoryStatus)
if (mainItem) { if (mainItem) {
mainItem.recordList = [] mainItem.recordList = []
}
} }
} }
} else { } else {
@ -374,9 +374,9 @@
} else { } else {
// //
var detail = this.createBackAddDetailInfo(subItem) var detail = this.createBackAddDetailInfo(subItem)
detail.batch="" detail.batch = ""
if (!detail.recordList) { if (!detail.recordList) {
detail.recordList = [] detail.recordList = []
} }
@ -787,7 +787,7 @@
} else { } else {
//, //,
var detail = this.createAddDetailInfo(scanItem) var detail = this.createAddDetailInfo(scanItem)
detail.batch="" detail.batch = ""
if (!detail.recordList) { if (!detail.recordList) {
detail.recordList = [] detail.recordList = []

Loading…
Cancel
Save