diff --git a/src/api/apply/apply/index.ts b/src/api/apply/apply/index.ts
index dc010f739..17215dec7 100644
--- a/src/api/apply/apply/index.ts
+++ b/src/api/apply/apply/index.ts
@@ -67,6 +67,11 @@ export const MainApi = {
generateDoc: async (id: number)=>{
return await request.download({ url: `/apply/main/generate-doc?id=` + id })
},
+ // 汇总表成文
+ generateHZDoc: async (id: number)=>{
+ return await request.download({ url: `/apply/main/generate-hzdoc`})
+ },
+
//提报
presentingContract: async (params: any) => {
return await request.post({ url: `/apply/main/presentingApply`, params })
diff --git a/src/views/apply/apply/index.vue b/src/views/apply/apply/index.vue
index cca71bda0..18baedf53 100644
--- a/src/views/apply/apply/index.vue
+++ b/src/views/apply/apply/index.vue
@@ -58,6 +58,16 @@
>
导出
+
+
+ 导出汇总表
+
@@ -280,6 +290,21 @@ const generateDoc = async (id: number,projectName:string) =>{
}
}
+/** 汇总表成文按钮操作 */
+const generateHZDoc = async () =>{
+ //todo
+ try{
+ // 发起导出
+ // exportLoading.value = true
+ const filename = new Date().getTime()+'汇总表.docx'
+ const data = await MainApi.generateHZDoc()
+ download.word(data, filename)
+ } catch {
+ } finally {
+ // exportLoading.value = false
+ }
+}
+
/** 删除按钮操作 */
const handleDelete = async (id: number) => {