feat:项目管理-审计内容1-新增生成决策支出表

This commit is contained in:
2025-12-02 15:47:06 +08:00
parent c8eb5bbd2d
commit b6a602badd
3 changed files with 318 additions and 27 deletions

View File

@@ -47,6 +47,51 @@ export async function exportLeaderListTable(data: {
return Promise.reject(new Error('导出失败'));
}
/**
* 生成支出情况表
*/
export async function generateExpenseTable(data: {
kbIds?: string;
libraryIds?: string;
projectLibrary?: string;
history?: string;
suggestion?: string;
docList?: any[];
fileList?: any[];
}) {
const res = await request.post<ApiResult<any>>(
MODULES_API_URL + '/ai/auditContent1/generateExpenseTable',
data
);
if (res.data.code === 0) {
return res.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导出支出情况表到Excel
*/
export async function exportExpenseTable(data: {
data?: any[];
companyName?: string;
auditTime?: string;
}) {
const res = await request.post(
MODULES_API_URL + '/ai/auditContent1/exportExpenseTable',
data,
{
responseType: 'blob'
}
);
if (res.status === 200) {
return res.data;
}
return Promise.reject(new Error('导出失败'));
}
/**
* 生成八项规定对比分析表
*/