Commit 8ec255ff authored by zhangjianguo's avatar zhangjianguo

生成财务单据时 不能多次点击

parent 150763d5
......@@ -228,19 +228,23 @@
this.$refs[formName].validate((valid) => {
if (valid) {
let cmd="/api/user/SetDistributorRemitAudit";
this.loading = true
this.apipost(cmd,this.addMsg,
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
this.reasonDig=false;
this.loading = false
} else {
this.Error(res.data.message);
this.loading = false
}
},
null
);
} else {
return false;
}
......
......@@ -693,18 +693,24 @@ export default {
},
SaleForRefunds(){
this.loading=true
this.apipost('/api/order/SetOrderAfterSaleForRefunds',this.dkMsg,
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
this.dkDig=false;
this.loading=false
} else {
this.Error(res.data.message);
this.loading=false
}
},
null
);
},
// 打款
dkOpenDig(item){
......
......@@ -614,6 +614,7 @@
hszDig: false,
hszMsg: {},
btnLoad:false,
}
},
created() {
......@@ -797,18 +798,23 @@
this.pendMgs.OrderId = item.OrderId;
this.pendMgs.Type = type;
this.pendMgs.Remark = '';
},
// 待处理调用接口
pendingForm(){
this.loading=true;
this.apipost('/api/order/SetOrderApplyForCancelAudit', this.pendMgs,
res => {
if (res.data.resultCode === 1) {
this.pendD= false
this.pendD= false;
this.loading=false;
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
this.loading=false;
}
},
......@@ -1142,19 +1148,26 @@
text='确认取消?客人付款金额将原路退回。'
}
that.Confirm(text, function () {
that.loading= true
that.apipost(
"/api/order/SetOrderForcedToCancel",
{OrderId:item.OrderId},
res => {
if (res.data.resultCode == 1) {
that.loading= false
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
that.loading= false
}
},
);
});
},
handleClick(val) {
let dataId = val.$attrs.dataId;
......
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