Commit 04c6fe86 authored by liudong1993's avatar liudong1993
parents 998816d0 7a868863
...@@ -1427,9 +1427,9 @@ ...@@ -1427,9 +1427,9 @@
<el-dropdown-item @click.native="removeTeamInfo(item.TCID)">{{ $t("system.table_delete") }} <el-dropdown-item @click.native="removeTeamInfo(item.TCID)">{{ $t("system.table_delete") }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.TCState == 2 || item.TCState == 0 || item.TCState == 1" <el-dropdown-item v-if="item.TCState == 2 || item.TCState == 0 || item.TCState == 1"
@click.native="setUpPlat(item)">{{ $t("Operation.Op_shangjia") }} @click.native="setUpPlat(item,3)">{{ $t("Operation.Op_shangjia") }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.TCState == 3" @click.native="setUpPlat(item)"> <el-dropdown-item v-if="item.TCState == 3" @click.native="setUpPlat(item,0)">
{{ $t("objFill.xiugaisjpt") }} {{ $t("objFill.xiugaisjpt") }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="item.TCState == 3" @click.native="Setshelves(item.TCID)"> <el-dropdown-item v-if="item.TCState == 3" @click.native="Setshelves(item.TCID)">
...@@ -2834,10 +2834,11 @@ ...@@ -2834,10 +2834,11 @@
checkedCount === this.$tripUtils.TeamStatesList.salsPlat.length; checkedCount === this.$tripUtils.TeamStatesList.salsPlat.length;
}, },
//点击上架 //点击上架
setUpPlat(item) { setUpPlat(item,type) {
this.queryCommonData.outerVisible = false; this.queryCommonData.outerVisible = false;
this.queryCommonData.setPlatDialog = true; this.queryCommonData.setPlatDialog = true;
this.queryCommonData.singleTCID = item.TCID; this.queryCommonData.singleTCID = item.TCID;
this.queryCommonData.comState = type;
if (item.TCState == 2) { if (item.TCState == 2) {
this.queryCommonData.ckedplat = []; this.queryCommonData.ckedplat = [];
this.queryCommonData.checkDialogAll = false; this.queryCommonData.checkDialogAll = false;
...@@ -2867,6 +2868,7 @@ ...@@ -2867,6 +2868,7 @@
}); });
}); });
}, },
//单团设置下架 //单团设置下架
Setshelves(TCID) { Setshelves(TCID) {
let msg = { let msg = {
...@@ -2896,7 +2898,8 @@ ...@@ -2896,7 +2898,8 @@
this.Error(this.$t("Operation.Op_choicePlat")); this.Error(this.$t("Operation.Op_choicePlat"));
return; return;
} }
this.apipost("travel_post_SetPriceSalePlat", msg, (res) => { if( this.queryCommonData.comState==3){
this.apipost("travel_post_SetTCState", msg, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getControlList(); this.getControlList();
...@@ -2905,6 +2908,19 @@ ...@@ -2905,6 +2908,19 @@
this.queryCommonData.ckedplat = []; this.queryCommonData.ckedplat = [];
} }
}); });
}
else{
this.apipost("travel_post_SetPriceSalePlat", msg, (res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
this.queryCommonData.setPlatDialog = false;
this.queryCommonData.checkDialogAll = false;
this.queryCommonData.ckedplat = [];
}
});
}
this.queryCommonData.comState==0;
}, },
goUrl(path, id, name) { goUrl(path, id, name) {
......
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