|
|
@ -58,7 +58,8 @@ |
|
|
|
|
|
|
|
import { |
|
|
|
goHome, |
|
|
|
getPackingNumberAndBatchByList |
|
|
|
getPackingNumberAndBatchByList, |
|
|
|
deepCopyData |
|
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
import { |
|
|
@ -388,34 +389,37 @@ |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
if (detail.scaned) { |
|
|
|
var submitItem = deepCopyData(detail) |
|
|
|
var fromInfo = getPackingNumberAndBatchByList(this.fromManagementList, detail.itemCode, |
|
|
|
detail.packingNumber, detail.fromLocationCode, detail.batch); |
|
|
|
var toInfo = getPackingNumberAndBatchByList(this.fromManagementList, detail.itemCode, |
|
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
|
|
|
|
|
detail.itemCode = detail.itemCode; |
|
|
|
detail.itemName = detail.package.itemName; |
|
|
|
detail.itemDesc1 = detail.package.itemDesc1; |
|
|
|
detail.itemDesc2 = detail.package.itemDesc2; |
|
|
|
submitItem.itemCode = detail.itemCode; |
|
|
|
submitItem.itemName = detail.package.itemName; |
|
|
|
submitItem.itemDesc1 = detail.package.itemDesc1; |
|
|
|
submitItem.itemDesc2 = detail.package.itemDesc2; |
|
|
|
|
|
|
|
detail.inventoryStatus = detail.inventoryStatus; |
|
|
|
submitItem.inventoryStatus = detail.inventoryStatus; |
|
|
|
|
|
|
|
detail.fromPackingNumber = fromInfo.packingNumber; |
|
|
|
detail.toPackingNumber = toInfo.packingNumber; |
|
|
|
submitItem.fromPackingNumber = fromInfo.packingNumber; |
|
|
|
submitItem.toPackingNumber = toInfo.packingNumber; |
|
|
|
|
|
|
|
detail.fromContainerNumber = detail.containerNumber; |
|
|
|
detail.toContainerNumber = detail.containerNumber |
|
|
|
submitItem.fromContainerNumber = detail.containerNumber; |
|
|
|
submitItem.toContainerNumber = detail.containerNumber |
|
|
|
|
|
|
|
detail.fromBatch = fromInfo.batch; |
|
|
|
detail.toBatch = toInfo.batch; |
|
|
|
submitItem.fromBatch = fromInfo.batch; |
|
|
|
submitItem.toBatch = toInfo.batch; |
|
|
|
|
|
|
|
detail.fromLocationCode = detail.fromLocationCode; |
|
|
|
detail.toLocationCode = detail.toLocationCode; |
|
|
|
submitItem.fromLocationCode = detail.fromLocationCode; |
|
|
|
submitItem.toLocationCode = detail.toLocationCode; |
|
|
|
|
|
|
|
detail.productionlineCode = this.productionLineCode; |
|
|
|
detail.workStationCode = this.workStationCode; |
|
|
|
|
|
|
|
subList.push(detail) |
|
|
|
submitItem.productionlineCode = this.productionLineCode; |
|
|
|
submitItem.workStationCode = this.workStationCode; |
|
|
|
|
|
|
|
submitItem.qty = detail.handleQty!=undefined?detail.handleQty:detail.qty; |
|
|
|
|
|
|
|
subList.push(submitItem) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -428,8 +432,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showMessage(message) { |
|
|
|
this.scanPopupLoseFocus(); |
|
|
|
this.$refs.comMessage.showMessage(message, res => { |
|
|
|