feat:项目管理-审计内容7-优化表格生成功能
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// 表格配置管理器
|
||||
export const tableConfigs = {
|
||||
// 审计内容1表格配置
|
||||
auditContent1: {
|
||||
@@ -81,12 +80,10 @@ export const tableConfigs = {
|
||||
type: 'auditContent7',
|
||||
title: '重大投资情况',
|
||||
options: [
|
||||
{ title: '重大对外投资审计', value: 'investment', columns: () => import('./table7Columns').then(m => m.majorInvestmentColumns) },
|
||||
{ title: '重大工程建设审计', value: 'projectConstruction', columns: () => import('./table7Columns').then(m => m.majorProjectConstructionColumns) }
|
||||
{ title: '重大投资情况审计', value: 'investmentSituation', columns: () => import('./table7Columns').then(m => m.investmentSituationColumns) },
|
||||
],
|
||||
interfaceMap: {
|
||||
investment: '/api/ai/auditContent7/generateInvestmentTable',
|
||||
projectConstruction: '/api/ai/auditContent7/generateProjectConstructionTable'
|
||||
investmentSituation: '/api/ai/auditContent7/generateInvestmentSituationTable'
|
||||
}
|
||||
},
|
||||
auditContent8: {
|
||||
@@ -207,6 +204,16 @@ export function createDataMapper(type: string) {
|
||||
indicatorBalance: formatAmount(item.indicatorBalance), // 指标结余
|
||||
workPaperIndex: Array.isArray(item.workPaperIndex) ? item.workPaperIndex : [], // 工作底稿索引
|
||||
})),
|
||||
investmentSituation: (data) => data.map((item, index) => ({
|
||||
key: index,
|
||||
index: index + 1,
|
||||
category: item.category || '未分类',
|
||||
auditContent: item.auditContent || item.content || '',
|
||||
checkEvidence: item.checkEvidence || item.evidence || '',
|
||||
testResult: item.testResult || '待检查',
|
||||
workPaperIndex: Array.isArray(item.workPaperIndex) ? item.workPaperIndex : [],
|
||||
...item
|
||||
})),
|
||||
// 其他类型的映射...
|
||||
default: (data) => data.map((item, index) => ({ key: index, index: index + 1, ...item }))
|
||||
};
|
||||
@@ -245,8 +252,7 @@ export const apiMethodMap = {
|
||||
// 审计内容6
|
||||
assets: { generate: 'generateAssetsTable', export: 'exportAssetsTable' },
|
||||
// 审计内容7
|
||||
investment: { generate: 'generateInvestmentTable', export: 'exportInvestmentTable' },
|
||||
projectConstruction: { generate: 'generateProjectConstructionTable', export: 'exportProjectConstructionTable' },
|
||||
investmentSituation: { generate: 'generateInvestmentSituationTable', export: 'exportInvestmentSituationTable' },
|
||||
// 审计内容8
|
||||
internalControl: { generate: 'generateInternalControlTable', export: 'exportInternalControlTable' },
|
||||
// 审计内容9
|
||||
|
||||
Reference in New Issue
Block a user