feat:项目管理-审计内容1-新增生成决策支出表
This commit is contained in:
@@ -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('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成八项规定对比分析表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user