Commit d1811082 authored by youjie's avatar youjie

no message

parent 2ca7d68e
......@@ -289,10 +289,7 @@
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.departmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团
this.departmentMsg.RB_Branch_Id = userInfo.RB_Branch_Id;
this.GetCommissionPeroidsList()//期数
this.getEmployee()//人员
this.getDepartment()
this.getCompany()
},
mounted() {
let userInfo = this.getLocalStorage();
......@@ -308,11 +305,15 @@
this.msg.OutBranchId = -1
this.msg.RB_Branch_Id = -1
// this.msg.RB_Department_Id = -1
this.msg.EmployeeId = -1
this.msg.EmployeeId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
}else{
this.disabled = true;
this.msg.EmployeeId = this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
}
this.GetCommissionPeroidsList()//期数
this.getEmployee()//人员
this.getDepartment()
this.getCompany()
},
methods: {
......@@ -338,7 +339,7 @@
if (res.data.resultCode == 1) {
this.PeroidsList = res.data.data;
if(!this.$route.query.PeriodId){
this.msg.PeriodsId = this.PeroidsList[0].Id
this.msg.PeriodsId = this.PeroidsList[0].ID
}
this.getList()
} else {
......
......@@ -157,13 +157,9 @@
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
}else{
this.disabled = true;
// this.msg.UserId = Number(userInfo.EmployeeId)
if(!this.$route.query.UserId){
this.msg.UserId = Number(userInfo.EmployeeId)
}else{
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
}
}
this.msg.Type = this.$route.query.Type?this.$route.query.Type:''
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):0
this.getqishilist()
this.getCompanyList()//获取公司
......
......@@ -136,9 +136,10 @@
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('home_CommissionSeeAll') != -1) {//是否有看所有人的权限
this.disabled = false;
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
}else{
this.disabled = true;
this.msg.UserId = Number(userInfo.EmployeeId)
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
}
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):0
this.getList();
......
......@@ -602,18 +602,14 @@
}else if(type==3){//历史单项
name = 'ServiceCommissionUser'
}
if(type!=5&&name){
this.$router.push({
name: name,
query: {
UserId: Number(userInfo.EmployeeId),
Type: 2,
isSale: 1,
blank: 'y'
}
});
}
},
goMore(){
......
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