From bf37b478645f70e11d79638f5f8be84c8504cb16 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 17:00:07 +0800
Subject: [PATCH] 原材料下单分页传参修改

---
 src/views/business/inspectionTask/components/InspectionWord.vue |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/src/views/business/inspectionTask/components/InspectionWord.vue b/src/views/business/inspectionTask/components/InspectionWord.vue
index 8ff12cb..8e10e5c 100644
--- a/src/views/business/inspectionTask/components/InspectionWord.vue
+++ b/src/views/business/inspectionTask/components/InspectionWord.vue
@@ -240,14 +240,12 @@
 </template>
 
 <script>
-// import ValueTable from '../../tool/value-table.vue'
-import file from '@/utils/file'
 import excelFunction from '@/utils/excelFountion'
 import UnPassDialog from "@/views/business/unpass/components/unPassDialog.vue";
 import AddUnPass from "@/views/business/unpass/components/addUnPass.vue";
 import {
   checkSubmitPlan,
-  doInsOrder,
+  doInsOrder, downFile,
   getInsProductUnqualifiedRetest,
   search, selectUserCondition,
   submitPlan,
@@ -1848,10 +1846,6 @@
             currentTable: this.currentTable,
             sampleId: this.currentSample.id
           }).then(res => {
-            if (res.code == 201) {
-              this.$message.error('淇濆瓨澶辫触')
-              return
-            }
             this.$message.success('宸蹭繚瀛�')
           })
           // 鍚� Worker 鍙戦�佹秷鎭紝寮�濮嬪鐞嗛�昏緫
@@ -2036,16 +2030,7 @@
       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.saveAs(res.data.fileUrl, row.fileName);
       }).catch(error => {
 
       })

--
Gitblit v1.9.3