|
|
@ -487,12 +487,20 @@ |
|
|
|
getManagementPrecisions(itemCodes, this.toLocationCode, res => { |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
var params = this.setParams(); |
|
|
|
let params = this.setParams(); |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
productReceiptJobsubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功\n生成预生产收货记录\n" + res.data, ) |
|
|
|
var hint = "" |
|
|
|
if(params.type=='predict'){ |
|
|
|
hint="提交成功\n生成补给品收货记录\n" +res.data |
|
|
|
}else if(params.type=='assemble'){ |
|
|
|
hint="提交成功\n生成号口品收货记录\n" +res.data |
|
|
|
}else { |
|
|
|
hint="提交成功\n生成收货记录\n" |
|
|
|
} |
|
|
|
this.showCommitSuccessMessage(hint) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
} |
|
|
|