feat:项目管理-审计内容1-新增八项规定相关内容

This commit is contained in:
2025-11-20 08:51:36 +08:00
parent 55ed1f4b70
commit 4b9c927737
2 changed files with 226 additions and 8 deletions

View File

@@ -2,6 +2,51 @@ import request from '@/utils/request';
import type { ApiResult } from '@/api';
import { MODULES_API_URL } from '@/config/setting';
/**
* 生成八项规定对比分析表
*/
export async function generateEightRegTable(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/generateEightRegTable',
data
);
if (res.data.code === 0) {
return res.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导出八项规定对比分析表到Excel
*/
export async function exportEightRegTable(data: {
data?: any[];
companyName?: string;
auditTime?: string;
}) {
const res = await request.post(
MODULES_API_URL + '/ai/auditContent1/exportEightRegTable',
data,
{
responseType: 'blob'
}
);
if (res.status === 200) {
return res.data;
}
return Promise.reject(new Error('导出失败'));
}
/**
* 生成重大经济决策调查表
*/