|
|
@@ -284,9 +284,11 @@ export default {
|
|
|
this.taskGather = response.data.customerClue.customerClueItemList;
|
|
|
}
|
|
|
this.getCustomerClassify();
|
|
|
- // 当前客资归属人不是当前登录人
|
|
|
+ // 当前客资归属人不是当前登录人和不是大区主管
|
|
|
let deptIds = JSON.parse(localStorage.getItem('deptIds'));
|
|
|
- if (deptIds.indexOf(this.infoData.deptId) == -1) {
|
|
|
+ // userDeptLevel用户部门等级字段,0-总部,1-公司,2-大区,3-销售部,4-业务员
|
|
|
+ let userDeptLevel = localStorage.getItem('userDeptLevel');
|
|
|
+ if (deptIds.indexOf(this.infoData.deptId) == -1 || userDeptLevel != 2) {
|
|
|
this.$dialog
|
|
|
.confirm({
|
|
|
title: '提示',
|
|
|
@@ -558,7 +560,10 @@ export default {
|
|
|
this.SalesDepartmentShow = true;
|
|
|
},
|
|
|
onClickLeft() {
|
|
|
- this.$router.go(-1);
|
|
|
+ // this.$router.go(-1);
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/clew',
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|