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(`
| 客户 | 类型 | 状态 | 签约金额 | ${monthLabels.map(l => `${l} 确收/毛利 | `).join("")}销售 |
|---|