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")} `;