|
|
@ -244,11 +244,11 @@ |
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
try { |
|
|
|
var supplierCode = result.label.supplierCode; |
|
|
|
if (supplierCode == '' || supplierCode == undefined) { |
|
|
|
this.showErrorMessage("标签中未解析到供应商信息,请重新扫描") |
|
|
|
return; |
|
|
|
} |
|
|
|
// var supplierCode = result.label.supplierCode; |
|
|
|
// if (supplierCode == '' || supplierCode == undefined) { |
|
|
|
// this.showErrorMessage("标签中未解析到供应商信息,请重新扫描") |
|
|
|
// return; |
|
|
|
// } |
|
|
|
var packingNumber = result.balance.packingNumber; |
|
|
|
var batch = result.balance.batch; |
|
|
|
var qty = result.balance.qty; |
|
|
@ -282,7 +282,7 @@ |
|
|
|
']不一致,是否继续上架?', res => { |
|
|
|
if (res) { |
|
|
|
itemDetail.scaned = true; |
|
|
|
itemDetail.supplierCode = supplierCode |
|
|
|
// itemDetail.supplierCode = supplierCode |
|
|
|
itemDetail.handleQty = Number(result.balance.qty) |
|
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
itemDetail.balance = result.balance; |
|
|
@ -322,13 +322,14 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
|
// this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
|
|
|
|
|
this.toLocationCode = code |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
detail.toLocationCode = code |
|
|
|
}) |
|
|
|
}) |
|
|
|
// }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|