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