Commit a0338912 authored by 黄奎's avatar 黄奎

权限修改

parent fc005aad
......@@ -10,5 +10,6 @@ var AuthCode = {
EditQuotation:"EditQuotation",//报价单修改权限
SupperOrderEdit:"SupperOrderEdit",//获取总经理副总经理超级修改权限
LookOrder:"LookOrder",//出纳查看订单权限
LookAllTeam:"LookAllTeam",//查看所有团控
};
export default AuthCode;
\ No newline at end of file
This diff is collapsed.
......@@ -626,6 +626,7 @@
export default {
data () {
return {
LookAllTeam:false,//查看所有团控
//查询数据列表
queryCommonData: {
//线路列表
......@@ -1446,6 +1447,15 @@
}
})
},
//查看所有团控
GetLookAllTeamAuth() {
var actionCode = this.$AuthCode.LookAllTeam;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.LookAllTeam = true;
}
});
},
},
filters: {
formatStartDate (value) {
......@@ -1478,6 +1488,7 @@
this.getCountryCity()
},
created () {
this.GetLookAllTeamAuth();
this.checkAllTeam();
//默认显示联运
this.queryMsg.IsShowUnion = -1;
......@@ -1509,7 +1520,7 @@
if (!this.$route.query.tcmun) {
this.queryMsg.StartGroupDate = nowDate
}
if (this.queryCommonData.IsParentCompany != 1&& this.CurrentUserInfo.RB_Branch_id != 49) {
if (this.queryCommonData.IsParentCompany != 1&& this.LookAllTeam) {
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