feat:项目管理-审计内容5-优化表格生成功能
This commit is contained in:
@@ -42,7 +42,7 @@ export const tableConfigs = {
|
||||
decisionTable: '/api/ai/auditContent3/generateDecisionTable'
|
||||
}
|
||||
},
|
||||
// 其他审计内容表格配置...
|
||||
// 审计内容4表格配置
|
||||
auditContent4: {
|
||||
type: 'auditContent4',
|
||||
title: '目标完成情况',
|
||||
@@ -53,6 +53,7 @@ export const tableConfigs = {
|
||||
target: '/api/ai/auditContent4/generateTargetTable'
|
||||
}
|
||||
},
|
||||
// 审计内容5表格配置
|
||||
auditContent5: {
|
||||
type: 'auditContent5',
|
||||
title: '财务管理情况',
|
||||
@@ -65,6 +66,7 @@ export const tableConfigs = {
|
||||
budgetExecution: '/api/ai/auditContent5/generateBudgetExecutionTable'
|
||||
}
|
||||
},
|
||||
// 审计内容6表格配置
|
||||
auditContent6: {
|
||||
type: 'auditContent6',
|
||||
title: '国资管理情况',
|
||||
@@ -185,6 +187,26 @@ export function createDataMapper(type: string) {
|
||||
bad: item.executionEffect?.bad || item.bad || '否',
|
||||
...item
|
||||
})),
|
||||
budgetManage: (data) => data.map((item, index) => ({
|
||||
key: index,
|
||||
index: index + 1,
|
||||
budgetSubject: item.budgetSubject || '-',
|
||||
// 指标来源部分字段映射
|
||||
indicatorSource: item.indicatorSource, // 指标来源
|
||||
total: formatAmount(item.indicatorSourceTotal), // 指标来源-合计
|
||||
lastYearBalance: formatAmount(item.indicatorSourceLastYearBalance), // 指标来源-上年结余
|
||||
initialBudget: formatAmount(item.indicatorSourceInitialBudget), // 指标来源-年初部门预算
|
||||
additionalBudget: formatAmount(item.indicatorSourceAdditionalBudget), // 指标来源-追加(减)预算
|
||||
// 指标运用部分字段映射
|
||||
indicatorUseTotal: formatAmount(item.indicatorUseTotal), // 指标运用-合计
|
||||
appropriationSubtotal: formatAmount(item.indicatorUseAppropriationSubtotal), // 指标运用-拨款小计
|
||||
appropriation: formatAmount(item.indicatorUseAppropriation), // 指标运用-拨款
|
||||
salaryPayment: formatAmount(item.indicatorUseSalaryPayment), // 指标运用-工资统发
|
||||
govProcurement: formatAmount(item.indicatorUseGovProcurement), // 指标运用-政府采购
|
||||
// 其他字段
|
||||
indicatorBalance: formatAmount(item.indicatorBalance), // 指标结余
|
||||
workPaperIndex: Array.isArray(item.workPaperIndex) ? item.workPaperIndex : [], // 工作底稿索引
|
||||
})),
|
||||
// 其他类型的映射...
|
||||
default: (data) => data.map((item, index) => ({ key: index, index: index + 1, ...item }))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user