Pārlūkot izejas kodu

【修改】订单日期权限

howie 2 gadi atpakaļ
vecāks
revīzija
a367de1d6c

+ 4 - 4
src/views/supply/engin/commerce_list.vue

@@ -177,10 +177,7 @@
                     icon="el-icon-edit"
                     style="padding: 0; margin-left: 6px"
                     @click="editDate(scope.row)"
-                    v-if="
-                      $checkBtnRole('date', $route.meta.roles) &&
-                      (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'WAIT')
-                    "
+                    v-if="$checkBtnRole('date', $route.meta.roles) && !isCustomer && scope.row.examineStatus !== 'SAVE'"
                   ></el-button>
                 </div>
               </template>
@@ -599,6 +596,9 @@ export default {
 
         enginOrderType: 'TRADE' // TRADE=商用 HOME=家用
       }
+    },
+    isCustomer() {
+      return this.$store.getters.customerId && this.$store.getters.customerNumber
     }
   },
 

+ 1 - 4
src/views/supply/engin/home_list.vue

@@ -231,10 +231,7 @@
                 <div>
                   <span>{{ scope.row.orderDate }}</span>
                   <el-button
-                    v-if="
-                      $checkBtnRole('date', $route.meta.roles) &&
-                      (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'WAIT')
-                    "
+                    v-if="$checkBtnRole('date', $route.meta.roles) && !isCustomer && scope.row.examineStatus !== 'SAVE'"
                     type="text"
                     icon="el-icon-edit"
                     style="padding: 0; margin-left: 4px"