From 25217525b165e66a24e97cbb137f8212db849783 Mon Sep 17 00:00:00 2001 From: yuance <182865460@qq.com> Date: Tue, 4 Nov 2025 16:23:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E5=86=85=E5=AE=B9-=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=89=E9=87=8D=E4=B8=80=E5=A4=A7=E3=80=81=E9=87=8D=E5=A4=A7?= =?UTF-8?q?=E7=BB=8F=E6=B5=8E=E5=86=B3=E7=AD=96=E8=B0=83=E6=9F=A5=E8=A1=A8?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/auditContent/index.ts | 44 ++++++ .../pwlProject/components/reportContent.vue | 128 ++++++++++++++++-- 2 files changed, 161 insertions(+), 11 deletions(-) diff --git a/src/api/ai/auditContent/index.ts b/src/api/ai/auditContent/index.ts index 4988b3d..42133df 100644 --- a/src/api/ai/auditContent/index.ts +++ b/src/api/ai/auditContent/index.ts @@ -47,4 +47,48 @@ export async function generateTripleOneTable(data: { return res.data; } return Promise.reject(new Error(res.data.message)); +} + +/** + * 导出三重一大制度对比分析表到Excel + */ +export async function exportTripleOneTable(data: { + data?: any[]; + companyName?: string; + auditTime?: string; +}) { + const res = await request.post( + MODULES_API_URL + '/ai/auditContent3/exportTripleOneTable', + data, + { + responseType: 'blob' + } + ); + + if (res.status === 200) { + return res.data; + } + return Promise.reject(new Error('导出失败')); +} + +/** + * 导出重大经济决策调查表到Excel + */ +export async function exportDecisionTable(data: { + data?: any[]; + companyName?: string; + auditTime?: string; +}) { + const res = await request.post( + MODULES_API_URL + '/ai/auditContent3/exportDecisionTable', + data, + { + responseType: 'blob' + } + ); + + if (res.status === 200) { + return res.data; + } + return Promise.reject(new Error('导出失败')); } \ No newline at end of file diff --git a/src/views/pwl/pwlProject/components/reportContent.vue b/src/views/pwl/pwlProject/components/reportContent.vue index 865615b..4c55f14 100644 --- a/src/views/pwl/pwlProject/components/reportContent.vue +++ b/src/views/pwl/pwlProject/components/reportContent.vue @@ -159,16 +159,42 @@