Commit d1811082 authored by youjie's avatar youjie

no message

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