Browse Source

门店列表跳转好帮手权限优化

zhujindu 11 months ago
parent
commit
67d30f50fa
2 changed files with 24 additions and 8 deletions
  1. 12 4
      src/views/deviceOutside/index.vue
  2. 12 4
      src/views/deviceOutside/rangeStore.vue

+ 12 - 4
src/views/deviceOutside/index.vue

@@ -717,8 +717,12 @@ export default {
   },
   },
   methods: {
   methods: {
     setStroeNameStyle(item) {
     setStroeNameStyle(item) {
-      // 是否为 家装或工装
-      if (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) {
+      // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
+      if (
+        (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
+        item.approvalStatus == null ||
+        item.approvalStatus == 0
+      ) {
         return {};
         return {};
       } else {
       } else {
         return { color: '#0057ba', 'text-decoration': 'underline' };
         return { color: '#0057ba', 'text-decoration': 'underline' };
@@ -2111,8 +2115,12 @@ export default {
     },
     },
     // 跳转好帮手门店详情
     // 跳转好帮手门店详情
     goOtherSystem(item) {
     goOtherSystem(item) {
-      // 是否为 家装或工装
-      if (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) {
+      // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
+      if (
+        (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
+        item.approvalStatus == null ||
+        item.approvalStatus == 0
+      ) {
         return false;
         return false;
       }
       }
       if (item.storeCode) {
       if (item.storeCode) {

+ 12 - 4
src/views/deviceOutside/rangeStore.vue

@@ -784,8 +784,12 @@ export default {
   },
   },
   methods: {
   methods: {
     setStroeNameStyle(item) {
     setStroeNameStyle(item) {
-      // 是否为 家装或工装
-      if (item.sfaStoreType.jz || item.sfaStoreType.gz) {
+      // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
+      if (
+        (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
+        item.approvalStatus == null ||
+        item.approvalStatus == 0
+      ) {
         return {};
         return {};
       } else {
       } else {
         return { color: '#0057ba', 'text-decoration': 'underline' };
         return { color: '#0057ba', 'text-decoration': 'underline' };
@@ -1984,8 +1988,12 @@ export default {
     },
     },
     // 跳转好帮手门店详情
     // 跳转好帮手门店详情
     goOtherSystem(item) {
     goOtherSystem(item) {
-      // 是否为 家装或工装
-      if (item.sfaStoreType.jz || item.sfaStoreType.gz) {
+      // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
+      if (
+        (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
+        item.approvalStatus == null ||
+        item.approvalStatus == 0
+      ) {
         return false;
         return false;
       }
       }
       if (item.storeCode) {
       if (item.storeCode) {