From 2d55ed180fddd028bf4f839345bf0ef4d2f032e7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 07 三月 2025 13:34:31 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/business/inspectionTask/inspection.vue |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue
index 55af32e..9df7731 100644
--- a/src/views/business/inspectionTask/inspection.vue
+++ b/src/views/business/inspectionTask/inspection.vue
@@ -1482,7 +1482,6 @@
         [type]: type === "remark" ? m : Number(m),
         id: this.insOrder.id,
       }).then((res) => {
-        if (res.code == 201) return;
         this.$message.success("淇濆瓨鎴愬姛");
       });
     },
@@ -2710,10 +2709,6 @@
             orderId: this.orderId,
             sonLaboratory: this.sonLaboratory
           }).then((res) => {
-            if (res.code == 201) {
-              this.$message.error("淇濆瓨澶辫触");
-              return;
-            }
             this.$message.success("宸蹭繚瀛�");
           });
           // 鍚� Worker 鍙戦�佹秷鎭紝寮�濮嬪鐞嗛�昏緫
@@ -2884,16 +2879,7 @@
     },
     handleDown(row) {
       downFile({ id: row.id }).then((res) => {
-        if (res.code === 200) {
-          let url = "";
-          if (res.data.type == 1) {
-            url = this.javaApi + "/img/" + res.data.fileUrl;
-            this.$download.saveAs(url, row.fileName)
-          } else {
-            url = this.javaApi + "/word/" + res.data.fileUrl;
-            this.$download.saveAs(url, row.fileName)
-          }
-        }
+        this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName)
       })
         .catch((error) => { });
     },

--
Gitblit v1.9.3