|
@ -80,6 +80,7 @@ |
|
|
getCurrDateTime, |
|
|
getCurrDateTime, |
|
|
getDirectoryItemArray, |
|
|
getDirectoryItemArray, |
|
|
getPackingNumberAndBatch, |
|
|
getPackingNumberAndBatch, |
|
|
|
|
|
deepCopyData |
|
|
} from '@/common/basic.js'; |
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -274,6 +275,11 @@ |
|
|
|
|
|
|
|
|
submitJob() { |
|
|
submitJob() { |
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
|
|
|
if (!params.subList || params.subList.length == 0) { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
this.showErrorMessage("请扫描您需要提交的备货任务") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|
|
stockUpJobsubmit(params).then(res => { |
|
|
stockUpJobsubmit(params).then(res => { |
|
@ -298,6 +304,7 @@ |
|
|
item.Locations.forEach(fromLocation => { |
|
|
item.Locations.forEach(fromLocation => { |
|
|
fromLocation.Batchs.forEach(batch => { |
|
|
fromLocation.Batchs.forEach(batch => { |
|
|
let subItem = batch.detail; |
|
|
let subItem = batch.detail; |
|
|
|
|
|
if (subItem != undefined) { |
|
|
subItem.recordList = []; |
|
|
subItem.recordList = []; |
|
|
if (batch.Records.length > 0) { |
|
|
if (batch.Records.length > 0) { |
|
|
batch.Records.forEach(r => { |
|
|
batch.Records.forEach(r => { |
|
@ -328,8 +335,10 @@ |
|
|
} |
|
|
} |
|
|
subItem.recordList.push(record); |
|
|
subItem.recordList.push(record); |
|
|
}) |
|
|
}) |
|
|
subList.push(subItem); |
|
|
subList.push(deepCopyData(subItem)); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|