From 9273be314365617ec73b447e6b6dd3f72ceba354 Mon Sep 17 00:00:00 2001 From: mac Date: Sat, 11 Jul 2026 15:10:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E7=94=9F=E6=80=BB=E8=A7=88?= =?UTF-8?q?=E6=8D=9F=E7=9B=8A/=E7=8E=B0=E9=87=91=E6=B5=81=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E6=8A=A5=E8=A1=A8=E8=A1=A5=E4=B8=8A=E9=9B=B6=E5=80=BC?= =?UTF-8?q?=E6=9C=88=E4=BB=BD=E8=B7=B3=E8=BF=87=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - renderFinanceDeptMatrixData和renderFinanceCfMatrixData添加isAllZero检查 - 与预算总览三个详细报表行为对齐 - 版本号 v1.2.0.29 --- static/modules/overview_finance.js | 2 ++ templates/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/static/modules/overview_finance.js b/static/modules/overview_finance.js index 6aa83e2..52660b0 100644 --- a/static/modules/overview_finance.js +++ b/static/modules/overview_finance.js @@ -205,6 +205,7 @@ function renderFinanceDeptMatrixData(data, container) { var vBtns = financeBtnBar('matrix'); var cards = ''; for (var mi = 11; mi >= 0; mi--) { + if (isAllZero(data, tenants, ['project_gross','dept_expense','profit'], mi)) continue; var th = '指标月度合计'; for (var ti = 0; ti < tenants.length; ti++) { th += '' + sn[ti] + ''; } th += ''; @@ -233,6 +234,7 @@ function renderFinanceCfMatrixData(data, container) { var vBtns = financeBtnBar('cf_matrix'); var cards = ''; for (var mi = 11; mi >= 0; mi--) { + if (isAllZero(data, tenants, ['project_cf','dept_cf','bl_cf'], mi)) continue; var th = '指标月度合计'; for (var ti = 0; ti < tenants.length; ti++) { th += '' + sn[ti] + ''; } th += ''; diff --git a/templates/index.html b/templates/index.html index 1dd2618..b0305b4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -84,7 +84,7 @@
-

OPC Manager v1.2.0.28

+

OPC Manager v1.2.0.29

科普 OPC 工作台