Commit 25b3569e authored by 黄奎's avatar 黄奎

团控列表权限判断

parent 53faf876
......@@ -2834,7 +2834,7 @@
checkedCount === this.$tripUtils.TeamStatesList.salsPlat.length;
},
//点击上架
setUpPlat(item,type) {
setUpPlat(item, type) {
this.queryCommonData.outerVisible = false;
this.queryCommonData.setPlatDialog = true;
this.queryCommonData.singleTCID = item.TCID;
......@@ -2898,29 +2898,28 @@
this.Error(this.$t("Operation.Op_choicePlat"));
return;
}
if( this.queryCommonData.comState==3){
if (this.queryCommonData.comState == 3) {
this.apipost("travel_post_SetTCState", 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 = [];
}
});
}
else{
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
this.queryCommonData.setPlatDialog = false;
this.queryCommonData.checkDialogAll = false;
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 = [];
}
});
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;
this.queryCommonData.comState == 0;
},
goUrl(path, id, name) {
......@@ -3629,7 +3628,8 @@
this.CurrentUserInfo.RB_Branch_id == 49 ||
this.CurrentUserInfo.RB_Branch_id == 1218 ||
this.CurrentUserInfo.RB_Branch_id == 1249 ||
this.CurrentUserInfo.RB_Branch_id == 1252
this.CurrentUserInfo.RB_Branch_id == 1252 ||
this.CurrentUserInfo.RB_Branch_id == 1253
) {
this.IsModifyTravelControl = 1;
}
......@@ -3700,7 +3700,8 @@
this.queryCommonData.IsParentCompany != 1 &&
this.CurrentUserInfo.RB_Branch_id != 49 &&
this.CurrentUserInfo.RB_Branch_id != 1249 &&
this.CurrentUserInfo.RB_Branch_id != 1252
this.CurrentUserInfo.RB_Branch_id != 1252 &&
this.CurrentUserInfo.RB_Branch_id != 1253
) {
this.queryMsg.OutBranchIds.push(this.CurrentUserInfo.RB_Branch_id);
}
......
......@@ -2373,9 +2373,9 @@
}
if (this.queryCommonData.IsParentCompany != 1) {
if (this.CurrentUserInfo.RB_Branch_id != 49 && this.CurrentUserInfo.RB_Branch_id != 1245 && this.CurrentUserInfo
.RB_Branch_id != 1249 && this.CurrentUserInfo.RB_Branch_id != 1252) {
.RB_Branch_id != 1249 && this.CurrentUserInfo.RB_Branch_id != 1252 && this.CurrentUserInfo.RB_Branch_id !=
1253) {
this.queryMsg.OutBranchIds.push(this.CurrentUserInfo.RB_Branch_id)
}
}
this.getControlList()
......
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