瀏覽代碼

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

yusheng 3 月之前
父節點
當前提交
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: {