From 0a7f70757d2aa8985e6fc3accfbd9eb4fb488241 Mon Sep 17 00:00:00 2001 From: mac Date: Wed, 17 Jun 2026 13:11:06 +0800 Subject: [PATCH] =?UTF-8?q?v3.1.2=20=E2=80=94=20=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=8C=89=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=A1=B9=E7=9B=AE=E5=92=8C=E4=B8=9A=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/static/app.js b/static/app.js index 7748a18..ab59676 100644 --- a/static/app.js +++ b/static/app.js @@ -435,8 +435,13 @@ function renderProducts() { } function renderFinance() { - const pfs = state.data.projectFinances || []; - const ops = state.data.operations || []; + const fmTypesByTenant = { + "科普·无界": ["科普音频","科普视频","科普文章","全品类科普"], + "科研·无界": ["真实世界研究","调研问卷","病例征集","患者招募"], + "医患·无界": ["医患运营","患者管理","患教会","创新支付","电商","其他"], + }; + const fmTypes = fmTypesByTenant[state.tenant] || fmTypesByTenant["科普·无界"]; + const tenantOps = (state.data.operations || []).filter(o => (o.project_name || "").includes(state.tenant.replace("·无界","")) || o.tenant === state.tenant); const months = ["2026-06","2026-07","2026-08","2026-09"]; const monthLabels = ["6月","7月","8月","9月"]; @@ -464,7 +469,7 @@ function renderFinance() { ${card(`

月度趋势

`, "p-5")}
- + ${card(`

项目明细 (${pfs.length})

${[["已签单","已签"],["待签","待签"]].map(([k,v]) => ``).join("")}
${monthLabels.map(l => ``).join("")}${pfs.filter(x => x.status === state.finFilter).map(renderPfRow).join("")}
客户类型状态签约金额${l}
确收/毛利
销售
`, "p-4")} `;