diff --git a/static/modules/finance.js b/static/modules/finance.js index e29c105..2766e98 100644 --- a/static/modules/finance.js +++ b/static/modules/finance.js @@ -1035,9 +1035,9 @@ function renderFinanceOverview() { var cfCard = card('

业务线现金流

项目现金流 - 平台费用(支出)= 业务线现金流

' + deptThead + '' + cfTbody + '
', 'p-4'); document.querySelector("#financeOverview").innerHTML = '
' + - card('

业务(项目)财务月度概览

合同 → 确收 → 毛利 → 成本 → 支出

' + thead + '' + tbody + '
', 'p-4') + deptCard + cfCard + + card('

业务(项目)财务月度概览

合同 → 确收 → 毛利 → 成本 → 支出

' + thead + '' + tbody + '
', 'p-4') + '
' + card('

月度签约趋势

2026
', 'p-4') + card('

月度确收与毛利

2026
', 'p-4') + diff --git a/static/modules/plan.js b/static/modules/plan.js index bb98368..19a3d46 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -1111,9 +1111,9 @@ function renderPlanOverview() { var cfCard = card('

业务线现金流

项目现金流 - 平台费用(已付)= 业务线现金流

' + deptThead + '' + cfTbody + '
', 'p-4'); document.querySelector("#planOverview").innerHTML = '
' + - card('

业务(项目)财务概览

合同 → 确收 → 毛利 → 成本 → 已付

' + thead + '' + tbody + '
', 'p-4') + deptCard + cfCard + + card('

业务(项目)财务概览

合同 → 确收 → 毛利 → 成本 → 已付

' + thead + '' + tbody + '
', 'p-4') + '
' + card('

月度签约趋势

2026
', 'p-4') + card('

月度确收与毛利

2026
', 'p-4') + @@ -1246,9 +1246,9 @@ function renderPlanQuarterlyOverview() { } document.querySelector("#planQuarterlyOverview").innerHTML = '
' + - card('

业务(项目)财务季度概览

合同 → 确收 → 毛利 → 成本 → 支出 → 回款 → 项目现金流

' + thead + '' + tbody + '
', 'p-4') + card('

业务线经营情况

毛利 - 平台费用 = 利润

' + deptThead + '' + deptTbody + '
', 'p-4') + card('

业务线现金流

项目现金流 - 平台费用(已付)= 业务线现金流

' + deptThead + '' + cfTbody + '
', 'p-4') + + card('

业务(项目)财务季度概览

合同 → 确收 → 毛利 → 成本 → 支出 → 回款 → 项目现金流

' + thead + '' + tbody + '
', 'p-4') + '
'; if (window.lucide) window.lucide.createIcons(); } diff --git a/static/modules/utils.js b/static/modules/utils.js index 6f462d2..b49ab74 100644 --- a/static/modules/utils.js +++ b/static/modules/utils.js @@ -116,13 +116,13 @@ function renderTable(headers, rows, rowClicks) { } var _loadingSteps = [ - { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)' }, + { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)', skip: function() { return state.tenant !== '总览' && state.active !== 'home'; } }, { fn: 'renderProjects', label: '正在加载业务机会列表' }, { fn: 'renderProposals', label: '正在加载业务方案列表' }, { fn: 'renderProducts', label: '正在加载产品迭代列表' }, { fn: 'renderPerformance', label: '正在加载绩效管理' }, - { fn: 'renderFinance', label: '正在加载财务模块(表格+总览+图表)' }, - { fn: 'renderPlan', label: '正在加载计划预算' }, + { fn: 'renderFinance', label: '正在加载执行模块(表格+总览+图表)' }, + { fn: 'renderPlan', label: '正在加载预算模块' }, ]; function showLoadingOverlay(steps) { @@ -182,6 +182,10 @@ async function load() { // 逐步渲染 for (var i = 0; i < _loadingSteps.length; i++) { var step = _loadingSteps[i]; + if (step.skip && step.skip()) { + updateLoadingStep(i, _loadingSteps.length); + continue; + } if (typeof window[step.fn] === 'function') { window[step.fn](); } @@ -220,7 +224,7 @@ function updateSidebarTabs() { function render() { if (!state.data) return; - renderHome(); + if (state.tenant === '总览' || state.active === 'home') renderHome(); renderProjects(); renderProposals(); renderProducts(); diff --git a/templates/index.html b/templates/index.html index 7495998..f3a609c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -45,13 +45,13 @@ 部门
-