|
|
@ -232,10 +232,10 @@ |
|
|
|
|
|
|
|
fromLocationUpdate(fromlocation) { |
|
|
|
let location = this.fromLocationList.find(r => r == fromlocation) |
|
|
|
if (location == undefined) { |
|
|
|
this.fromLocationCode = '' |
|
|
|
this.showErrorMessage('发货库位【' + fromlocation + '】不存在') |
|
|
|
} |
|
|
|
// if (location == undefined) { |
|
|
|
this.fromLocationCode = fromlocation |
|
|
|
// this.showErrorMessage('发货库位【' + fromlocation + '】不存在') |
|
|
|
// } |
|
|
|
}, |
|
|
|
onScan(result) { |
|
|
|
try { |
|
|
@ -305,6 +305,28 @@ |
|
|
|
let lot = label.batch; |
|
|
|
let item = that.toLocation.Items.find(r => r.itemCode == itemCode); |
|
|
|
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) { |
|
|
|
let batch = fromLocation.Batchs.find(r => r.batch == lot); |
|
|
|
if (batch != undefined) { |
|
|
|