|
|
@ -519,14 +519,14 @@ |
|
|
|
} else { |
|
|
|
//新增盘点 |
|
|
|
//检查物料号是否存在 |
|
|
|
var detail = that.detailSource.find(r => r.itemCode == that.package.itemCode); |
|
|
|
var detail = that.detailSource.find(r => r.itemCode == that.label.itemCode); |
|
|
|
if (detail == undefined) { |
|
|
|
//物料号不存在,创建物料号数据添加到列表。设置为已经扫描 |
|
|
|
that.addNewItemCodeToList(qty, inventoryStatus) |
|
|
|
} else { |
|
|
|
var itemEditInfo = detail.subList.find(item => { |
|
|
|
if (item.packingNumber == that.package.number && |
|
|
|
item.batch == that.package.batch && |
|
|
|
if (item.packingNumber == that.label.packingNumber && |
|
|
|
item.batch == that.label.batch && |
|
|
|
item.inventoryStatus == inventoryStatus) { |
|
|
|
return item; |
|
|
|
} |
|
|
|