Commit 8ec255ff authored by zhangjianguo's avatar zhangjianguo

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

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