Commit e1336427 authored by 黄奎's avatar 黄奎

领队导游设置调整

parent 6bf1b663
...@@ -738,7 +738,8 @@ ...@@ -738,7 +738,8 @@
this.Success(this.$t("ground.shezhichenggong")); this.Success(this.$t("ground.shezhichenggong"));
this.isShow = false; this.isShow = false;
} else { } else {
that.Confirm(that.$t('ground.sheizhichongtu'), function () { var tipMessage = res.data.message;
that.Confirm(tipMessage, function () {
that.addMsg.IsSure = 1; that.addMsg.IsSure = 1;
that.apipost( that.apipost(
"LeaderSchedule_post_Set", "LeaderSchedule_post_Set",
...@@ -749,6 +750,7 @@ ...@@ -749,6 +750,7 @@
that.getNoTaskLeader(); that.getNoTaskLeader();
that.Success(that.$t("ground.shezhichenggong")); that.Success(that.$t("ground.shezhichenggong"));
that.isShow = false; that.isShow = false;
that.addMsg.IsSure = 0;
} }
}, },
err => {} err => {}
......
...@@ -4317,6 +4317,7 @@ ...@@ -4317,6 +4317,7 @@
TipMessage: "", TipMessage: "",
CTTCNUM: "", CTTCNUM: "",
CTTCID: 0, CTTCID: 0,
IsSure: 0,
}, },
// 订单转团 // 订单转团
transferData: { transferData: {
...@@ -6353,24 +6354,55 @@ ...@@ -6353,24 +6354,55 @@
setTheLeader() { setTheLeader() {
if (this.isSubmit) { if (this.isSubmit) {
this.isSubmit = false; this.isSubmit = false;
var that = this;
this.apipost( this.apipost(
"LeaderSchedule_post_SetPriceLeader", "LeaderSchedule_post_SetPriceLeader",
this.setMsg, this.setMsg,
(res) => { (res) => {
this.isSubmit = true; that.isSubmit = true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); that.Success(res.data.message);
this.getList(); that.getList();
this.getConfig(); that.getConfig();
this.showSetLeader = false; that.showSetLeader = false;
this.leaderListArr = []; that.leaderListArr = [];
this.ScheduleArray = []; that.ScheduleArray = [];
this.setMsg.TipMessage = ""; that.setMsg.TipMessage = "";
that.setMsg.IsSure = 0;
} else if (res.data.resultCode == 2) {
var tipMsg = res.data.message
that.Confirm(tipMsg, function () {
that.setMsg.IsSure = 1;
that.apipost(
"LeaderSchedule_post_SetPriceLeader",
that.setMsg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
that.getConfig();
that.showSetLeader = false;
that.leaderListArr = [];
that.ScheduleArray = [];
that.setMsg.TipMessage = "";
that.setMsg.IsSure = 0;
} else {
that.Error(res.data.message);
that.setMsg.TipMessage = res.data.message;
that.setMsg.CTTCNUM = res.data.data.TCNUM;
that.setMsg.CTTCID = res.data.data.TCID;
that.setMsg.IsSure = 0;
}
},
null
);
});
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
this.setMsg.TipMessage = res.data.message; this.setMsg.TipMessage = res.data.message;
this.setMsg.CTTCNUM = res.data.data.TCNUM; this.setMsg.CTTCNUM = res.data.data.TCNUM;
this.setMsg.CTTCID = res.data.data.TCID; this.setMsg.CTTCID = res.data.data.TCID;
that.setMsg.IsSure = 0;
} }
}, },
(err) => {} (err) => {}
......
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