Sfoglia il codice sorgente

feature:bug修复

chenqilong 2 anni fa
parent
commit
536174a2a4
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/views/supply/sales/sales_list.vue

+ 3 - 2
src/views/supply/sales/sales_list.vue

@@ -161,7 +161,8 @@ export default {
           this.choiceDate = minDate.getTime()
           if (maxDate) this.choiceDate = ''
         }
-      }
+      },
+      isCustomer: JSON.parse(localStorage.getItem('supply_user')).isCustomer
     }
   },
   methods: {
@@ -187,7 +188,7 @@ export default {
             <el-button type="text" onClick={() => this.toDetail(row)}>
               详情
             </el-button>
-            {row.type === 2 && row.examineStatus !== 'OK' ? (
+            {row.type === 2 && row.examineStatus !== 'OK' && !this.isCustomer ? (
               <el-button
                 type="text"
                 onClick={() => {