Browse Source

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

lijuncheng0816
wangyufei 4 months 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) { 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) {

Loading…
Cancel
Save