|
@ -230,7 +230,8 @@ |
|
|
} |
|
|
} |
|
|
//数量不相等,提示 |
|
|
//数量不相等,提示 |
|
|
if(noCommitInfo){ |
|
|
if(noCommitInfo){ |
|
|
this.showQuestionMessage("扫描数量["+noCommitInfo.handleQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ |
|
|
var handQty =noCommitInfo.handleQty?noCommitInfo.handleQty:0 |
|
|
|
|
|
this.showQuestionMessage("扫描数量["+handQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ |
|
|
if(res){ |
|
|
if(res){ |
|
|
this.commit() |
|
|
this.commit() |
|
|
} |
|
|
} |
|
@ -452,17 +453,17 @@ |
|
|
}); |
|
|
}); |
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
productionReceiptJobSubmit(params).then(res => { |
|
|
// productionReceiptJobSubmit(params).then(res => { |
|
|
uni.hideLoading() |
|
|
// uni.hideLoading() |
|
|
if (res.data) { |
|
|
// if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + res.data) |
|
|
// this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + 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) |
|
|
}) |
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var itemCodes = [] |
|
|
// var itemCodes = [] |
|
|