Browse Source

成品发货任务--同一物料,可以扫描提交不在任务中的库位

lijuncheng0816
wangyufei 1 month ago
parent
commit
babf49cebf
  1. 30
      src/pages/deliver/coms/comScanDeliverPack.vue

30
src/pages/deliver/coms/comScanDeliverPack.vue

@ -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) {

Loading…
Cancel
Save