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