|
|
@ -233,21 +233,21 @@ |
|
|
|
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) |
|
|
|
r.itemCode == this.currentEditItem.itemCode && |
|
|
|
r.inventoryStatus == this.currentEditItem.inventoryStatus) |
|
|
|
|
|
|
|
if (mainItem) { |
|
|
|
mainItem.recordList = [] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
var filterList = this.filterList(returnData.recordList) |
|
|
|
var addList = [] |
|
|
|