|
|
@ -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); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|