From b6516d781857f47bad5b4e6ef5f6bd4306dfe525 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 20 十月 2026 17:28:05 +0800
Subject: [PATCH] feat(costStatistics): 新增委托下单类型的数据格式化支持
---
src/views/CNAS/systemManagement/documentControl/components/FileList.vue | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
index d0f56e9..256bc60 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
@@ -21,10 +21,7 @@
</el-form>
</div>
<div>
- <el-upload :action="action" :multiple="false" accept='.xls,.xlsx' :headers="uploadHeader"
- :on-change="beforeUpload" :on-error="onError" ref='upload' :on-success="handleSuccessUp"
- :show-file-list="false">
- <el-button size="small" type="primary" :loading="upLoading">瀵煎叆</el-button></el-upload>
+ <el-button size="small" type="primary" @click="$refs.importDialog.open()">瀵煎叆</el-button>
</div>
</div>
<div class="table">
@@ -84,6 +81,16 @@
<el-button :loading="uploading" type="primary" @click="submitProduct('currentInfoForm')">纭� 璁�</el-button>
</span></template>
</el-dialog>
+ <import-dialog
+ ref="importDialog"
+ title="瀵煎叆鏂囦欢娓呭崟"
+ :action="action"
+ accept=".xls,.xlsx"
+ template-url="/import-templates/鏂囦欢娓呭崟瀵煎叆妯℃澘.xlsx?v=2"
+ template-name="鏂囦欢娓呭崟瀵煎叆妯℃澘.xlsx"
+ :tips="['琛ㄥご蹇呴』涓庢ā鏉垮畬鍏ㄤ竴鑷达紝涓嶈兘澧炲垹鍒楁垨淇敼鍒楀悕', '鐢熸晥鏃ユ湡鏍煎紡锛歒YYY-MM-DD']"
+ @success="refreshTable"
+ />
</div>
</template>
@@ -91,6 +98,7 @@
import UpPdfStamp from '@/components/UpPdfStamp/index.vue'
import filePreview from '@/components/Preview/filePreview.vue'
import limsTable from "@/components/Table/lims-table.vue";
+import ImportDialog from '@/components/ImportDialog/index.vue'
import {
uploadFileManageDocumentList,
pageManageDocumentList,
@@ -102,6 +110,7 @@
UpPdfStamp,
filePreview,
limsTable,
+ ImportDialog,
},
data() {
return {
@@ -205,7 +214,7 @@
page: {
total: 0,
size: 10,
- current: 0,
+ current: 1,
},
tableLoading: false,
addDia: false,
--
Gitblit v1.9.3