From 9862248787934f4242ac9636e0c4d5b8ee0870b8 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期二, 20 十月 2026 16:45:58 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
index bfa2ad6..4bea504 100644
--- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
@@ -20,10 +20,7 @@
</div>
<div>
<el-button size="small" type="primary" @click="openAdd('鏂板')">鏂板</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: 0 8px">
- <el-button type="primary" size="small">瀵煎叆</el-button></el-upload>
+ <el-button type="primary" size="small" style="margin: 0 8px" @click="$refs.importDialog.open()">瀵煎叆</el-button>
<el-button size="small" type="primary" @click="handleDown" :loading="outLoading">瀵煎嚭</el-button>
</div>
</div>
@@ -77,11 +74,22 @@
<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 琛屽紑濮嬪~鍐�', '缂栧埗/瀹℃牳/鎵瑰噯濉啓绯荤粺鐢ㄦ埛濮撳悕', '鎵瑰噯鏃ユ湡鏍煎紡锛歒YYY-MM-DD']"
+ @success="refreshTable"
+ />
</div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
+import ImportDialog from '@/components/ImportDialog/index.vue'
import {
selectUserCondition,
} from "@/api/business/inspectionTask.js";
@@ -97,7 +105,8 @@
export default {
name: 'ApprovalRecord',
components: {
- limsTable
+ limsTable,
+ ImportDialog
},
data() {
return {
@@ -171,7 +180,7 @@
page: {
total: 0,
size: 10,
- current: 0,
+ current: 1,
},
tableLoading: false,
title: "鏂板",
--
Gitblit v1.9.3