|
@ -519,14 +519,14 @@ |
|
|
} else { |
|
|
} 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) { |
|
|
if (detail == undefined) { |
|
|
//物料号不存在,创建物料号数据添加到列表。设置为已经扫描 |
|
|
//物料号不存在,创建物料号数据添加到列表。设置为已经扫描 |
|
|
that.addNewItemCodeToList(qty, inventoryStatus) |
|
|
that.addNewItemCodeToList(qty, inventoryStatus) |
|
|
} else { |
|
|
} else { |
|
|
var itemEditInfo = detail.subList.find(item => { |
|
|
var itemEditInfo = detail.subList.find(item => { |
|
|
if (item.packingNumber == that.package.number && |
|
|
if (item.packingNumber == that.label.packingNumber && |
|
|
item.batch == that.package.batch && |
|
|
item.batch == that.label.batch && |
|
|
item.inventoryStatus == inventoryStatus) { |
|
|
item.inventoryStatus == inventoryStatus) { |
|
|
return item; |
|
|
return item; |
|
|
} |
|
|
} |
|
|