Commit f6897264 authored by youjie's avatar youjie

票务、同业提成

parent 8cd54aa5
...@@ -275,15 +275,47 @@ ...@@ -275,15 +275,47 @@
} }
this.btnLoading = true; this.btnLoading = true;
this.crmapipost( this.crmapipost(
"/api/Commission/SetTicketCommission", { Month: this.Month }, "/api/Commission/SetTicketCommission", {
Month: this.Month,
IsForceSend:0
},
res => { res => {
this.btnLoading = false; this.btnLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.handleCurrentChange(1); this.handleCurrentChange(1);
this.Success('报表生成成功') this.Success('报表生成成功')
} else { } else {
this.Error(res.data.message); let buttomTitle
if(res.data.message.indexOf('Warning')!=-1){
buttomTitle = '强制发放'
}else{
buttomTitle = '确定'
}
this.$confirm(res.data.message, "提示", {
confirmButtonText: buttomTitle,
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
if(buttomTitle=='强制发放'){
this.btnLoading = true;
this.crmapipost(
"/api/Commission/SetTicketCommission", {
Month: this.Month,
IsForceSend: 1 },
res => {
this.btnLoading = false
if (res.data.resultCode == 1) {
this.handleCurrentChange(1);
this.Success('报表生成成功')
}
})
}
})
.catch(() => {
});
} }
} }
); );
......
...@@ -212,20 +212,47 @@ ...@@ -212,20 +212,47 @@
} }
this.btnLoading = true; this.btnLoading = true;
this.apipost( this.apipost(
"sellcommission_SetTYSaleCommissionSend", { Month: this.Month }, "sellcommission_SetTYSaleCommissionSend", {
Month: this.Month,
IsForceSend:0
},
res => { res => {
this.btnLoading = false; this.btnLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.handleCurrentChange(1); this.handleCurrentChange(1);
this.Success('报表生成成功') this.Success('报表生成成功')
} else { } else {
let buttomTitle
if(res.data.message.indexOf('Warning')!=-1){
buttomTitle = '强制发放'
}else{
buttomTitle = '确定'
}
this.$confirm(res.data.message, "提示", { this.$confirm(res.data.message, "提示", {
confirmButtonText: "确定", confirmButtonText: buttomTitle,
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}) })
.then(() => {}) .then(() => {
.catch(() => {}); if(buttomTitle=='强制发放'){
this.btnLoading = true;
this.apipost(
"sellcommission_SetTYSaleCommissionSend", {
Month: this.Month,
IsForceSend: 1 },
res => {
this.btnLoading = false
if (res.data.resultCode == 1) {
this.handleCurrentChange(1);
this.Success('报表生成成功')
}
})
}
})
.catch(() => {
});
} }
} }
); );
......
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