feat:项目管理-审计内容-总体页面调整
This commit is contained in:
@@ -92,6 +92,51 @@ export async function exportExpenseTable(data: {
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成单位发展战略执行审计表
|
||||
*/
|
||||
export async function generateStrategyAuditTable(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/auditContent2/generateStrategyAuditTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出单位发展战略执行审计表到Excel
|
||||
*/
|
||||
export async function exportStrategyAuditTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent2/exportStrategyAuditTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成八项规定对比分析表
|
||||
*/
|
||||
@@ -222,6 +267,519 @@ export async function exportDecisionTable(data: {
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容4:目标完成情况 ===============
|
||||
|
||||
/**
|
||||
* 生成目标责任完成情况表
|
||||
*/
|
||||
export async function generateTargetTable(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/auditContent4/generateTargetTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出目标责任完成情况表到Excel
|
||||
*/
|
||||
export async function exportTargetTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent4/exportTargetTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容5:财务管理情况 ===============
|
||||
|
||||
/**
|
||||
* 生成预算管理审计表
|
||||
*/
|
||||
export async function generateBudgetManageTable(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/auditContent5/generateBudgetManageTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出预算管理审计表到Excel
|
||||
*/
|
||||
export async function exportBudgetManageTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent5/exportBudgetManageTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成预算执行情况审计表
|
||||
*/
|
||||
export async function generateBudgetExecutionTable(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/auditContent5/generateBudgetExecutionTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出预算执行情况审计表到Excel
|
||||
*/
|
||||
export async function exportBudgetExecutionTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent5/exportBudgetExecutionTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容6:国资管理情况 ===============
|
||||
|
||||
/**
|
||||
* 生成国有资产管理审计表
|
||||
*/
|
||||
export async function generateAssetsTable(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/auditContent6/generateAssetsTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出国有资产管理审计表到Excel
|
||||
*/
|
||||
export async function exportAssetsTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent6/exportAssetsTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容7:重大投资情况 ===============
|
||||
|
||||
/**
|
||||
* 生成重大对外投资审计表
|
||||
*/
|
||||
export async function generateInvestmentTable(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/auditContent7/generateInvestmentTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出重大对外投资审计表到Excel
|
||||
*/
|
||||
export async function exportInvestmentTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent7/exportInvestmentTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成重大工程建设审计表
|
||||
*/
|
||||
export async function generateProjectConstructionTable(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/auditContent7/generateProjectConstructionTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出重大工程建设审计表到Excel
|
||||
*/
|
||||
export async function exportProjectConstructionTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent7/exportProjectConstructionTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容8:治理结构与内部控制 ===============
|
||||
|
||||
/**
|
||||
* 生成内部控制测试表
|
||||
*/
|
||||
export async function generateInternalControlTable(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/auditContent8/generateInternalControlTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出内部控制测试表到Excel
|
||||
*/
|
||||
export async function exportInternalControlTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent8/exportInternalControlTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容9:人员编制管理 ===============
|
||||
|
||||
/**
|
||||
* 生成人员编制管理审计表
|
||||
*/
|
||||
export async function generatePersonnelTable(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/auditContent9/generatePersonnelTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出人员编制管理审计表到Excel
|
||||
*/
|
||||
export async function exportPersonnelTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent9/exportPersonnelTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容10:廉政情况 ===============
|
||||
|
||||
/**
|
||||
* 生成党风廉政建设责任制审计表
|
||||
*/
|
||||
export async function generatePartyConductTable(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/auditContent10/generatePartyConductTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出党风廉政建设责任制审计表到Excel
|
||||
*/
|
||||
export async function exportPartyConductTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent10/exportPartyConductTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容11:历史审计问题整改 ===============
|
||||
|
||||
/**
|
||||
* 生成历史审计问题整改表
|
||||
*/
|
||||
export async function generateHistoryTable(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/auditContent11/generateHistoryTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出历史审计问题整改表到Excel
|
||||
*/
|
||||
export async function exportHistoryTable(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent11/exportHistoryTable',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error('导出失败'));
|
||||
}
|
||||
|
||||
// =============== 审计内容1:贯策决策部署情况 - 补充缺失的接口 ===============
|
||||
|
||||
/**
|
||||
* 生成贯策决策部署表
|
||||
*/
|
||||
export async function generateDefault1Table(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/generateDefault1Table',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出贯策决策部署表到Excel
|
||||
*/
|
||||
export async function exportDefault1Table(data: {
|
||||
data?: any[];
|
||||
companyName?: string;
|
||||
auditTime?: string;
|
||||
}) {
|
||||
const res = await request.post(
|
||||
MODULES_API_URL + '/ai/auditContent1/exportDefault1Table',
|
||||
data,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (res.status === 200) {
|
||||
return res.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user