|
@ -232,10 +232,10 @@ |
|
|
|
|
|
|
|
|
fromLocationUpdate(fromlocation) { |
|
|
fromLocationUpdate(fromlocation) { |
|
|
let location = this.fromLocationList.find(r => r == fromlocation) |
|
|
let location = this.fromLocationList.find(r => r == fromlocation) |
|
|
if (location == undefined) { |
|
|
// if (location == undefined) { |
|
|
this.fromLocationCode = '' |
|
|
this.fromLocationCode = fromlocation |
|
|
this.showErrorMessage('发货库位【' + fromlocation + '】不存在') |
|
|
// this.showErrorMessage('发货库位【' + fromlocation + '】不存在') |
|
|
} |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
onScan(result) { |
|
|
onScan(result) { |
|
|
try { |
|
|
try { |
|
@ -305,6 +305,28 @@ |
|
|
let lot = label.batch; |
|
|
let lot = label.batch; |
|
|
let item = that.toLocation.Items.find(r => r.itemCode == itemCode); |
|
|
let item = that.toLocation.Items.find(r => r.itemCode == itemCode); |
|
|
let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode); |
|
|
let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode); |
|
|
|
|
|
if(!fromLocation){ |
|
|
|
|
|
fromLocation = { |
|
|
|
|
|
Batchs:[{ |
|
|
|
|
|
Recommends:[], |
|
|
|
|
|
Records: [], |
|
|
|
|
|
batch: label.batch, |
|
|
|
|
|
detail:{ |
|
|
|
|
|
...packageInfo, |
|
|
|
|
|
fromLocationCode: balance.locationCode, |
|
|
|
|
|
}, |
|
|
|
|
|
handleQty: 0, |
|
|
|
|
|
packingNumber: label.packingNumber, |
|
|
|
|
|
qty: label.qty, |
|
|
|
|
|
uom: label.uom |
|
|
|
|
|
}], |
|
|
|
|
|
fromLocationCode: balance.locationCode, |
|
|
|
|
|
handleQty: 0, |
|
|
|
|
|
qty: label.qty, |
|
|
|
|
|
uom: label.uom |
|
|
|
|
|
} |
|
|
|
|
|
item.Locations.push(fromLocation) |
|
|
|
|
|
} |
|
|
if (fromLocation != undefined) { |
|
|
if (fromLocation != undefined) { |
|
|
let batch = fromLocation.Batchs.find(r => r.batch == lot); |
|
|
let batch = fromLocation.Batchs.find(r => r.batch == lot); |
|
|
if (batch != undefined) { |
|
|
if (batch != undefined) { |
|
|