|
@ -153,53 +153,28 @@ |
|
|
|
|
|
|
|
|
var params = this.setRequestParams() |
|
|
var params = this.setRequestParams() |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
// deliverRequestSubmit(params).then(res => { |
|
|
deliverRequestSubmit(params).then(res => { |
|
|
// uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
// if (res.data) { |
|
|
if (res.data) { |
|
|
// this.showCommitSuccessMessage("提交成功<br>生成成品发货申请" + res.data) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成成品发货申请<br>" + res.data) |
|
|
// } else { |
|
|
} else { |
|
|
// this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
// } |
|
|
} |
|
|
// }).catch(error => { |
|
|
}).catch(error => { |
|
|
// uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
// this.showErrorMessage(error) |
|
|
this.showErrorMessage(error) |
|
|
// }) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setRequestParams() { |
|
|
setRequestParams() { |
|
|
|
|
|
let requestContent = {}; |
|
|
|
|
|
requestContent.customerCode = this.detailSource.customerCode; |
|
|
var subList = [] |
|
|
var subList = [] |
|
|
this.detailSource.subList.forEach(detail => { |
|
|
this.detailSource.subList.forEach(detail => { |
|
|
detail.soNumber = detail.package.soNumber; |
|
|
|
|
|
detail.soLine = detail.package.soLine; |
|
|
|
|
|
detail.remark = "" |
|
|
|
|
|
// soNumber: 926926926, |
|
|
|
|
|
// soLine: 926, |
|
|
|
|
|
// itemCode: THILDD0A691AG, |
|
|
|
|
|
// remark: , |
|
|
|
|
|
// qty: 2, |
|
|
|
|
|
// uom: EA |
|
|
|
|
|
subList.push(detail) |
|
|
subList.push(detail) |
|
|
}) |
|
|
}) |
|
|
|
|
|
requestContent.subList = subList; |
|
|
this.detailSource.subList = subList |
|
|
return requestContent; |
|
|
this.detailSource.deliverPlanNumber = "DP20231130-0001" |
|
|
|
|
|
this.detailSource.customerCode = this.detailSource.customerCode |
|
|
|
|
|
this.detailSource.customerDockCode = "" |
|
|
|
|
|
this.detailSource.carrierCode = "" |
|
|
|
|
|
this.detailSource.transferMode = "" |
|
|
|
|
|
this.detailSource.vehiclePlateNumber = "" |
|
|
|
|
|
this.detailSource.remark = "" |
|
|
|
|
|
this.detailSource.dueTime = "" |
|
|
|
|
|
this.detailSource.departmentCode = "研发部门" |
|
|
|
|
|
this.detailSource.status = 1 |
|
|
|
|
|
this.detailSource.autoCommit = "FALSE" |
|
|
|
|
|
this.detailSource.autoAgree = "FALSE" |
|
|
|
|
|
this.detailSource.autoExecute = "FALSE" |
|
|
|
|
|
this.detailSource.directCreateRecord = "FALSE" |
|
|
|
|
|
|
|
|
|
|
|
return this.detailSource; |
|
|
|
|
|
}, |
|
|
}, |
|
|
showCommitSuccessMessage(hint) { |
|
|
showCommitSuccessMessage(hint) { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|