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); let item = this.toLocation.Items.find(r => r.itemCode == record.itemCode);
if (item != undefined) { if (item != undefined) {
item.Locations.forEach(l => { item.Locations.forEach(l => {
let batch = l.Batchs.find(b => b.packingNumber == record.packingNumber && b let batch = l.Batchs.find(b => (b.packingNumber == record.packingNumber || b
.batch == record.batch); .packingNumber == null || b.packingNumber == '') && b.batch ==
record.batch);
let rIndex = batch.Records.findIndex(r => r.packingNumber == record let rIndex = batch.Records.findIndex(r => r.packingNumber == record
.packingNumber && r .packingNumber && r
.batch == record.batch); .batch == record.batch);
batch.Records.splice(rIndex, 1); batch.Records.splice(rIndex, 1);
}) })
} }
this.$emit('updateData', item); this.$emit('updateData', record);
} }
}); });
}, },

Loading…
Cancel
Save