Commit 76a35b39 authored by Marcus's avatar Marcus

完成入仓时,如果有特殊需求费用是0,需要弹窗提醒确认“有特需费用为0,请问是否继续?”继续,取消

parent 9f194057
......@@ -258,18 +258,37 @@ export default {
this.getTowSum()
})
},
handleSubmit() {
specialHas0(){
let result = false
this.form.orderSpecialNeedReceivableReqVoList.forEach(e => {
if (e.receivableMoney === '0' || e.receivableMoney === ''){
result = true
}
})
return result
},
async handleSubmit() {
if (this.specialHas0()) {
const confirm = await this.$confirm('有特需费用为0或未填写,请问是否继续?', '注意', {
confirmButtonText: '继续',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm !== 'confirm'){
return
}
}
let p = {
orderSpecialNeedReceivableReqVoList: this.form.orderSpecialNeedReceivableReqVoList,
"orderLocationCreateReqVOList": this.form.orderLocationCreateReqVOList,
"orderId": this.order.orderId,
urls: this.form.urls
}
if(this.escapeBol){
p.exceptionUrls = this.form.exceptionUrls.split(',');
p.descZh = this.form.descZh;
p.manualExceptionType = this.form.manualExceptionType
}
if (this.escapeBol) {
p.exceptionUrls = this.form.exceptionUrls.split(',');
p.descZh = this.form.descZh;
p.manualExceptionType = this.form.manualExceptionType
}
orderWarehouseInFinish(p).then(r => {
if (r.code === 0) {
this.escapeBol = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment