From fb941952ff7d5c03bc2251ec7e5ba0b498987894 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 14 三月 2025 19:31:31 +0800
Subject: [PATCH] 检验任务搬迁

---
 src/views/business/inspectionOrder/index.vue |   30 +++++++++---------------------
 1 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/src/views/business/inspectionOrder/index.vue b/src/views/business/inspectionOrder/index.vue
index 529e504..f7f149c 100644
--- a/src/views/business/inspectionOrder/index.vue
+++ b/src/views/business/inspectionOrder/index.vue
@@ -822,12 +822,12 @@
   revokeReviewConsistentByProductId,
   revokeReviewProduct,
   revokeReviewSample,
-  upPlanUser2,
   updateStatus,
   updateInspected,
   revocationPassed,
   revocationCancel,
 } from "@/api/business/inspectionOrder";
+import { upPlanUser2 } from "@/api/business/inspectionTask";
 import { getDicts } from "@/api/system/dict/data";
 import vueQr from "vue-qr";
 import getLodop from "@/utils/lodop";
@@ -1013,7 +1013,9 @@
             {
               name: "鎶ュ憡涓嬭浇",
               type: "text",
-              clickFun: (row) => {},
+              clickFun: (row) => {
+                this.download(row);
+              },
               disabled: (row, index) => {
                 return row.state != 4 || row.isRatify != 1;
               },
@@ -1194,7 +1196,9 @@
             {
               name: "鏌ョ湅",
               type: "text",
-              clickFun: (row) => {},
+              clickFun: (row) => {
+                this.viewDetails(row);
+              },
               showHide: (row) => {
                 return (
                   row.inspectionItem == "鍗曟牴鍨傜洿鐕冪儳" ||
@@ -1628,7 +1632,7 @@
           active: 2,
           currentId: row.id,
           examine: 1,
-          isReview: true,
+          isPlan: false,
         },
       });
     },
@@ -1647,23 +1651,6 @@
     },
     // 涓嬭浇鎶ュ憡
     download(row) {
-      // let url = row.urlS ? row.urlS : row.url;
-      // if (url) {
-      //   url = url.split(".")[0] + ".pdf";
-      //   const link = document.createElement("a");
-      //   link.href = this.javaApi + url;
-      //   link.target = "_blank";
-      //   document.body.appendChild(link);
-      //   link.click();
-      // }
-
-      // if(row.tempUrlPdf) {
-      //   const link = document.createElement('a');
-      //   link.href = this.javaApi + row.tempUrlPdf;
-      //   link.target = '_blank';
-      //   document.body.appendChild(link);
-      //   link.click();
-      // }
       downReport({ id: row.reportId })
         .then((res) => {
           let fileName = row.tempUrlPdf;
@@ -2283,6 +2270,7 @@
         query: {
           active: num,
           examine: 0,
+          isPlan: false,
         },
       });
     },

--
Gitblit v1.9.3