Просмотр исходного кода

fix: 修复检测报告按钮显示逻辑

yusheng 1 месяц назад
Родитель
Сommit
2e306cfa1a
1 измененных файлов с 6 добавлено и 8 удалено
  1. 6 8
      src/views/inspectionWork/components/inspectionWorkList.vue

+ 6 - 8
src/views/inspectionWork/components/inspectionWorkList.vue

@@ -161,7 +161,7 @@
           v-if="
             row.status == 1 &&
             $hasPermission('qms:quality_work_order:qualityReport') &&
-            !isReportApproval
+            isReportApproval != 1
           "
           text="检测报告"
           :businessId="row.id"
@@ -664,21 +664,19 @@
       this.requestDict('取样类型');
       this.getCode();
       this.getReportTemplateList();
-
     },
     mounted() {
       const isWt = this.$route.query?.isWt;
-      
+
       if (isWt) {
         const id = JSON.parse(this.$route.query?.businessId);
         console.log(id);
-        getList({qualityWorkerId: id}).then(res => {
+        getList({ qualityWorkerId: id }).then((res) => {
           const rowData = res.list[0];
           this.$nextTick(() => {
-            this.openEdit('edit', rowData)
-          })
-        
-        })
+            this.openEdit('edit', rowData);
+          });
+        });
       }
     },
     computed: {