|
|
@ -142,7 +142,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
getScanResult(result) { |
|
|
|
getScanResult(result) { |
|
|
|
let label = result.label; |
|
|
|
let pack = result.package; |
|
|
|
result.balance.forEach( |
|
|
@ -156,15 +156,16 @@ |
|
|
|
if (item == undefined) { |
|
|
|
var itemp = createItemInfo(balance, pack); |
|
|
|
//查询推荐的目标库位 |
|
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
|
newDetail.fromInventoryStatus = balance.inventoryStatus; |
|
|
|
itemp.subList.push(newDetail); |
|
|
|
this.getRecommendLocation(balance, res => { |
|
|
|
itemp.toLocationCode = res.code; |
|
|
|
itemp.expectinNumber = res.expectinNumber; |
|
|
|
this.$forceUpdate(); |
|
|
|
this.detailSource.push(itemp) |
|
|
|
this.$forceUpdate(); |
|
|
|
}) |
|
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
|
newDetail.fromInventoryStatus = balance.inventoryStatus; |
|
|
|
itemp.subList.push(newDetail); |
|
|
|
this.detailSource.push(itemp) |
|
|
|
|
|
|
|
} else { |
|
|
|
var detail = item.subList.find(r => { |
|
|
|
if (r.packingNumber == balance.packingNumber && |
|
|
|