From 4ca375b2e3dae98d6ececc1b7b421a12f3fa8a26 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期二, 01 七月 2025 09:00:38 +0800
Subject: [PATCH] 修改bug,验收通过

---
 laboratory/src/views/chemistQa/projectTesting/components/approval/index.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/laboratory/src/views/chemistQa/projectTesting/components/approval/index.vue b/laboratory/src/views/chemistQa/projectTesting/components/approval/index.vue
index e3fb83a..4518995 100644
--- a/laboratory/src/views/chemistQa/projectTesting/components/approval/index.vue
+++ b/laboratory/src/views/chemistQa/projectTesting/components/approval/index.vue
@@ -76,7 +76,7 @@
                 </div>
             </div>
         </div>
-        <div class="approval-dialog-approve" v-if="type === 'approve'">
+        <div class="approval-dialog-approve" v-if="type == 'approve'">
             <el-row :span="24">
                 <el-col :span="12">
                     <div class="status">
@@ -103,7 +103,7 @@
         </div>
         <div slot="footer" class="dialog-footer">
             <el-button @click="handleClose">取 消</el-button>
-            <el-button type="primary" @click="handleApprove" v-if="type === 'approve'">确认</el-button>
+            <el-button type="primary" @click="handleApprove" v-if="type == 'approve'">确认</el-button>
         </div>
     </el-dialog>
 </template>
@@ -157,7 +157,7 @@
     },
     computed: {
         dialogTitle() {
-            return this.type === "approve" ? "审核项目检测项、检验包" : "项目检测项、检验包详情";
+            return this.type == "approve" ? "审核项目检测项、检验包" : "项目检测项、检验包详情";
         },
     },
     watch: {
@@ -219,9 +219,9 @@
                     if (res.status == 2 || res.status == 3) {
                         processData.push({
                             type:
-                                res.status === 2
+                                res.status == 2
                                     ? "primary"
-                                    : res.status === 3
+                                    : res.status == 3
                                         ? "danger"
                                         : "warning",
                             mode: "list",
@@ -229,9 +229,9 @@
                                 {
                                     label: "审核结果:",
                                     value:
-                                        res.status === 2
+                                        res.status == 2
                                             ? "通过"
-                                            : res.status === 3
+                                            : res.status == 3
                                                 ? "驳回"
                                                 : "待审批",
                                 },
@@ -277,7 +277,7 @@
             const params = {
                 id: this.data.id,
                 auditRemark: this.remark,
-                auditStatus: this.status === '1' ? 2 : 3
+                auditStatus: this.status == '1' ? 2 : 3
             };
             detailAuditReport(params).then(res => {
                 if (res) {

--
Gitblit v1.7.1