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