ソースを参照

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

zhujindu 11 ヶ月 前
コミット
67d30f50fa
2 ファイル変更24 行追加8 行削除
  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: {
     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 {};
       } else {
         return { color: '#0057ba', 'text-decoration': 'underline' };
@@ -2111,8 +2115,12 @@ export default {
     },
     // 跳转好帮手门店详情
     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;
       }
       if (item.storeCode) {

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

@@ -784,8 +784,12 @@ export default {
   },
   methods: {
     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 {};
       } else {
         return { color: '#0057ba', 'text-decoration': 'underline' };
@@ -1984,8 +1988,12 @@ export default {
     },
     // 跳转好帮手门店详情
     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;
       }
       if (item.storeCode) {