From 29be8639dc16b5d82bddc6099b1fa5cdca75f77a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 20 十月 2026 16:28:22 +0800
Subject: [PATCH] feat(import): 统一导入弹框与模板,修复模板日期格式及上传报错

---
 src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
index 8fb86d5..5a74e71 100644
--- a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
@@ -5,10 +5,7 @@
       <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;">
         <div style="display: flex;align-items: center;justify-content: flex-end;margin-bottom: 10px">
           <el-button size="small" type="primary" @click="openAdd('鏂板')" style="margin-left: 20px;">鏂板</el-button>
-          <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx'
-            :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload'
-            :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
-            <el-button size="small" type="primary" :loading="upLoading">瀵煎叆</el-button></el-upload>
+          <el-button size="small" type="primary" style="margin-left: 20px" @click="$refs.importDialog.open()">瀵煎叆</el-button>
         </div>
         <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading0"
                     :height="'calc(100vh - 290px)'" @pagination="pagination0"></lims-table>
@@ -79,12 +76,23 @@
         <el-button :loading="uploading" type="primary" @click="submitProduct('addForm')">纭� 璁�</el-button>
       </span></template>
     </el-dialog>
+    <import-dialog
+      ref="importDialog"
+      title="瀵煎叆澶栨潵鏂囦欢纭"
+      :action="action"
+      accept=".doc,.docx"
+      template-url="/import-templates/澶栨潵鏂囦欢纭瀵煎叆妯℃澘.docx"
+      template-name="澶栨潵鏂囦欢纭瀵煎叆妯℃澘.docx"
+      :tips="['璇峰嬁鍒犻櫎琛ㄥご鎴栧鍒犲垪锛屾暟鎹粠绗� 2 琛屽紑濮嬪~鍐�', '鐢熸晥鏃ユ湡銆佷綔搴熸棩鏈熸牸寮忥細YYYY-MM-DD']"
+      @success="getList0"
+    />
   </div>
 </template>
 
 <script>
 import limsTable from "@/components/Table/lims-table.vue";
 import filePreview from '@/components/Preview/filePreview.vue'
+import ImportDialog from '@/components/ImportDialog/index.vue'
 import {
   addManageRecordVerify,
   pageManageRecordVerify,
@@ -99,6 +107,7 @@
   components: {
     filePreview,
     limsTable,
+    ImportDialog,
   },
   data() {
     return {

--
Gitblit v1.9.3