zhujindu 1 gadu atpakaļ
vecāks
revīzija
3ae4415291

+ 1 - 1
src/store/modules/user.js

@@ -31,7 +31,7 @@ const user = {
             localStorage.setItem('zipPhoto', res.data.zipPhoto);
             localStorage.setItem('deptLevel', res.data.depts[0].deptLevel);
             localStorage.setItem('userId', res.data.userId);
-            localStorage.setItem('deptId', res.data.deptId);
+            localStorage.setItem('deptIds', res.data.deptIds);
             resolve();
           })
           .catch((error) => {

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

@@ -134,7 +134,7 @@
     <van-popup v-model="showPicker1" position="bottom">
       <van-picker
         show-toolbar
-        value-key="dictLabel"
+        value-key="remark"
         :columns="customerClassifyOption"
         @confirm="onConfirm1"
         @cancel="showPicker1 = false" />
@@ -252,7 +252,7 @@ export default {
       let item = this.customerClassifyOption.find(
         (val) => val.dictValue == this.infoData.customerClassify
       );
-      this.customerClassifyValue = item.dictLabel || '';
+      this.customerClassifyValue = item.remark || '';
       this.customerClassify = item.dictValue;
       this.getCustomerSubClassify(this.customerClassify);
     },
@@ -281,7 +281,10 @@ export default {
           }
           this.getCustomerClassify();
           // 当前客资归属人不是当前登录人
-          if (this.infoData.deptId != localStorage.getItem('deptId')) {
+          let deptIds = localStorage.getItem('deptIds')
+            ? localStorage.getItem('deptIds').split(',')
+            : '';
+          if (deptIds.indexOf(this.infoData.deptId) == -1) {
             this.$dialog
               .confirm({
                 title: '提示',
@@ -408,7 +411,7 @@ export default {
       this.showView = true;
     },
     onConfirm1(value) {
-      this.customerClassifyValue = value.dictLabel;
+      this.customerClassifyValue = value.remark;
       this.customerClassify = value.dictValue;
       this.showPicker1 = false;
       this.getCustomerSubClassify(this.customerClassify);

+ 1 - 1
src/views/home/ABtarget.vue

@@ -943,7 +943,7 @@ export default {
           localStorage.setItem('storeType', res.data.user.type);
           localStorage.setItem('deptLevel', res.data.user.depts[0].deptLevel);
           localStorage.setItem('userId', res.data.user.userId);
-          localStorage.setItem('deptId', res.data.user.deptId);
+          localStorage.setItem('deptIds', res.data.user.deptIds);
           this.monthNoVisit = res.data.monthNoVisit;
         } else {
           this.$toast(res.msg);