From 61ba9c4c5d4aecd2b68c53ad73766e184f7884d0 Mon Sep 17 00:00:00 2001 From: mac Date: Wed, 8 Jul 2026 13:00:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A1=E5=88=92=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=AE=8C=E6=95=B4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 弹窗HTML从finance.js干净复制, 结构完全对齐 - 25个modal ID加plan_前缀, 与实际模块零冲突 - 16个window函数+4个全局函数加plan前缀, 避免覆盖 - closePlanModal关闭后调用render()清理DOM - CSS 5条规则加上#planModal选择器 - isUnsigned=false, 表格14列+卡片14个 - 版本号 v1.0.0.20 --- static/modules/plan.js | 245 +++++++++++++++++++++-------------------- static/styles.css | 10 +- templates/index.html | 2 +- 3 files changed, 129 insertions(+), 128 deletions(-) diff --git a/static/modules/plan.js b/static/modules/plan.js index 66080d0..552466d 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -95,8 +95,8 @@ function renderPlan() { } })(); const sm = pf.sign_month || ""; - const signMonthCell = `${sm || '—'}`; - return `${esc(pf.customer_name)}${signMonthCell}${money(pf.sign_amount)}${mCols}${totalCol}`; + const signMonthCell = `${sm || '—'}`; + return `${esc(pf.customer_name)}${signMonthCell}${money(pf.sign_amount)}${mCols}${totalCol}`; }; const now2 = new Date(); @@ -119,7 +119,7 @@ function renderPlan() { document.querySelector("#plan").innerHTML = `
${planFilterTabs} ${state.planFilter !== 'expense' && state.planFilter !== 'overview' ? card(`
${finHeaderBase}
${finAddBtn}
`, "p-4") : ''} -