From faa4081b1617f062738bfa0e83b689cbd63d74ec Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 23 十月 2026 18:08:56 +0800
Subject: [PATCH] 设备模块:仪器名称EN字段改为仪器名称,隐藏未实现的数采配置按钮;设备核查计划编辑与新增弹窗改为单列排版并调整宽度;新增核查记录弹窗按编辑表单对齐字段、校验与附件;核查责任人下拉包含admin;新增按设备获取核查计划明细接口

---
 src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
index 34e6d77..d65c19d 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
@@ -184,7 +184,7 @@
             <div class="search_thing" style="width: 100%;">
               <div class="search_label">鐩稿叧闄勪欢锛�</div>
               <div class="search_input"><el-upload v-if="addDialogVisible" :auto-upload="false" :multiple="false"
-                                                   :on-change="handleChangeUpload" accept='.pdf' action="#" style="margin: 8px 0 0px 50px;">
+                                                   :on-change="handleChangeUpload" accept='.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.wps,.et,.dps,.txt,.jpg,.jpeg,.png' action="#" style="margin: 8px 0 0px 50px;">
                 <el-button size="small" type="primary">涓婁紶闄勪欢</el-button>
               </el-upload></div>
             </div>
@@ -342,7 +342,7 @@
       page: {
         total: 0,
         size: 10,
-        current: 0,
+        current: 1,
       },
       tableLoading: false,
     }
@@ -536,15 +536,23 @@
       this.getCurrentFile(alterBeforeCode)
       this.addDialogVisible = true
       this.diaLoading = true
-      checkManageDocumentAlterPdf({ id: row.id }).then(res => {
+      checkManageDocumentAlterPdf({ id: row.id }).then(async res => {
         //
         this.diaLoading = false
-        const blob = new Blob([res]);
+        // 鍚庣杞� PDF 澶辫触鏃朵細杩斿洖 JSON 閿欒锛宐lob 閲屽氨涓嶆槸 PDF
+        if (res.type && res.type.includes('json')) {
+          const data = JSON.parse(await res.text())
+          this.$message.error(data.msg || '闄勪欢杞崲棰勮澶辫触')
+          this.addDialogVisible = false
+          return
+        }
+        const blob = new Blob([res], { type: 'application/pdf' });
         const file = new File([blob], row.name, { type: 'application/pdf' })
         this.$refs.UpPdfStamp.lookFile(file)
         this.currentInfo = row
       }).catch(err => {
         this.diaLoading = false
+        this.addDialogVisible = false
         console.log(err)
       })
     },

--
Gitblit v1.9.3