Browse Source

修改补料移除

hella_online_20240829
lijuncheng 5 months ago
parent
commit
5baab70e77
  1. 8
      src/pages/repleinsh/coms/comScanReplishPack.vue

8
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -567,15 +567,17 @@ import { getDirectoryItemArray } from '../../../common/directory.js';
let item = this.toLocation.Items.find(r => r.itemCode == record.itemCode);
if (item != undefined) {
item.Locations.forEach(l => {
let batch = l.Batchs.find(b => b.packingNumber == record.packingNumber && b
.batch == record.batch);
let batch = l.Batchs.find(b => (b.packingNumber == record.packingNumber || b
.packingNumber == null || b.packingNumber == '') && b.batch ==
record.batch);
let rIndex = batch.Records.findIndex(r => r.packingNumber == record
.packingNumber && r
.batch == record.batch);
batch.Records.splice(rIndex, 1);
})
}
this.$emit('updateData', item);
this.$emit('updateData', record);
}
});
},

Loading…
Cancel
Save