Parcourir la source

Merge branch 'feature_20250623_渠道客诉添加大区主管审批' into release

zhujindu il y a 5 mois
Parent
commit
36af9dccb7
1 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 7 3
      src/views/clew/complaintDetail/index.vue

+ 7 - 3
src/views/clew/complaintDetail/index.vue

@@ -284,9 +284,10 @@ export default {
             this.taskGather = response.data.customerClue.customerClueItemList;
           }
           this.getCustomerClassify();
-          // 当前客资归属人不是当前登录人
+          // 当前客资归属人不是当前登录人和不是大区主管
           let deptIds = JSON.parse(localStorage.getItem('deptIds'));
-          if (deptIds.indexOf(this.infoData.deptId) == -1) {
+          // regionUser:true-是大区主管  false-不是大区主管
+          if (deptIds.indexOf(this.infoData.deptId) == -1 && !response.data.regionUser) {
             this.$dialog
               .confirm({
                 title: '提示',
@@ -558,7 +559,10 @@ export default {
       this.SalesDepartmentShow = true;
     },
     onClickLeft() {
-      this.$router.go(-1);
+      // this.$router.go(-1);
+      this.$router.replace({
+        path: '/clew',
+      });
     },
   },
 };