|
@ -266,7 +266,7 @@ |
|
|
issueJobSubmit(params).then(res => { |
|
|
issueJobSubmit(params).then(res => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功<br>生成发货记录" + res.data) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成发料记录" + res.data) |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败" + res.msg) |
|
|
this.showErrorMessage("提交失败" + res.msg) |
|
|
} |
|
|
} |
|
@ -285,45 +285,47 @@ |
|
|
item.Locations.forEach(fromLocation => { |
|
|
item.Locations.forEach(fromLocation => { |
|
|
fromLocation.Batchs.forEach(batch => { |
|
|
fromLocation.Batchs.forEach(batch => { |
|
|
let subItem = batch.detail; |
|
|
let subItem = batch.detail; |
|
|
subItem.recordList = []; |
|
|
if(subItem!=undefined){ |
|
|
if (batch.Records.length > 0) { |
|
|
subItem.recordList = []; |
|
|
batch.Records.forEach(r => { |
|
|
if (batch.Records.length > 0) { |
|
|
let record = {}; |
|
|
batch.Records.forEach(r => { |
|
|
record.handleQty = r.qty; |
|
|
let record = {}; |
|
|
|
|
|
record.handleQty = r.qty; |
|
|
record.fromPackingNumber = r |
|
|
|
|
|
.packingNumber; |
|
|
record.fromPackingNumber = r |
|
|
record.fromBatch = r.batch; |
|
|
|
|
|
record.fromContainerNumber = r |
|
|
|
|
|
.ContainerNumber; |
|
|
|
|
|
|
|
|
|
|
|
record.toContainerNumber = r |
|
|
|
|
|
.ContainerNumber; |
|
|
|
|
|
record.toInventoryStatus = r |
|
|
|
|
|
.inventoryStatus; |
|
|
|
|
|
record.toLocationCode = subItem |
|
|
|
|
|
.toLocationCode; |
|
|
|
|
|
record.supplierCode = r.supplierCode; |
|
|
|
|
|
|
|
|
|
|
|
//使用在途库不改变管理模式 |
|
|
|
|
|
if (this.jobContent.useOnTheWayLocation == |
|
|
|
|
|
'TRUE') { |
|
|
|
|
|
record.toPackingNumber = r |
|
|
|
|
|
.packingNumber; |
|
|
.packingNumber; |
|
|
record.toBatch = r.batch; |
|
|
record.fromBatch = r.batch; |
|
|
} else { |
|
|
record.fromContainerNumber = r |
|
|
var info = getPackingNumberAndBatch( |
|
|
.ContainerNumber; |
|
|
this.managementList, r |
|
|
|
|
|
.itemCode, |
|
|
record.toContainerNumber = r |
|
|
r.packingNumber, r |
|
|
.ContainerNumber; |
|
|
.batch); |
|
|
record.toInventoryStatus = r |
|
|
record.toPackingNumber = info |
|
|
.inventoryStatus; |
|
|
.packingNumber; |
|
|
record.toLocationCode = subItem |
|
|
record.toBatch = info.batch; |
|
|
.toLocationCode; |
|
|
} |
|
|
record.supplierCode = r.supplierCode; |
|
|
subItem.recordList.push(record); |
|
|
|
|
|
}) |
|
|
//使用在途库不改变管理模式 |
|
|
subList.push(subItem); |
|
|
if (this.jobContent.useOnTheWayLocation == |
|
|
|
|
|
'TRUE') { |
|
|
|
|
|
record.toPackingNumber = r |
|
|
|
|
|
.packingNumber; |
|
|
|
|
|
record.toBatch = r.batch; |
|
|
|
|
|
} else { |
|
|
|
|
|
var info = getPackingNumberAndBatch( |
|
|
|
|
|
this.managementList, r |
|
|
|
|
|
.itemCode, |
|
|
|
|
|
r.packingNumber, r |
|
|
|
|
|
.batch); |
|
|
|
|
|
record.toPackingNumber = info |
|
|
|
|
|
.packingNumber; |
|
|
|
|
|
record.toBatch = info.batch; |
|
|
|
|
|
} |
|
|
|
|
|
subItem.recordList.push(record); |
|
|
|
|
|
}) |
|
|
|
|
|
subList.push(subItem); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|