From 2f759b42cd8a1404848eb0e7f7c78ab7ce8ec1bd Mon Sep 17 00:00:00 2001 From: mac Date: Thu, 9 Jul 2026 17:41:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A2=84=E7=AE=97=E6=A8=A1=E5=9D=97tab?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=80=81+=E5=B9=B3=E5=8F=B0=E8=B4=B9?= =?UTF-8?q?=E7=94=A8=E5=AD=97=E6=AE=B5=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - switchPlanTab选择器修复(.plan-tab→#planModal .finance-tab) - 平台费用计划: 金额→费用计提, 已发生金额→现金支出 - 版本号 v1.2.0.2 --- static/modules/plan.js | 2 +- static/modules/plan_expense.js | 6 +++--- templates/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/modules/plan.js b/static/modules/plan.js index 19a3d46..f30e00e 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -718,7 +718,7 @@ window.planEditSignMonth = (event, pfId) => { }; window.switchPlanTab = (tab) => { - document.querySelectorAll(".plan-tab").forEach(b => b.classList.toggle("active", b.dataset.tab === tab)); + document.querySelectorAll("#planModal .finance-tab").forEach(b => b.classList.toggle("active", b.dataset.tab === tab)); document.querySelector("#plan_financeTabInfo").classList.toggle("hidden", tab !== "info"); document.querySelector("#plan_financeTabRevpay").classList.toggle("hidden", tab !== "revpay"); document.querySelector("#plan_financeTabCost").classList.toggle("hidden", tab !== "cost"); diff --git a/static/modules/plan_expense.js b/static/modules/plan_expense.js index 98e2129..adc23ff 100644 --- a/static/modules/plan_expense.js +++ b/static/modules/plan_expense.js @@ -114,7 +114,7 @@ function renderPlanExpense() { var modal = ''; + modal += '
'; var target = document.querySelector("#planExpenseModule") || document.querySelector("#planExpenseModule") || document.querySelector("#planExpenseContent"); if (!target) return; @@ -123,10 +123,10 @@ function renderPlanExpense() { '
' + '
费用记录' + filtered.length + '
' + '
总费用' + money(totalAmount) + '
' + - '
已发生金额' + money(totalIncurred) + '
' + + '
现金支出' + money(totalIncurred) + '
' + '
' + modal + - '
' + tableRows + '
月份' + sortArrow('expense_month') + '费用类型' + sortArrow('expense_type') + '状态' + sortArrow('status') + '金额' + sortArrow('amount') + '已发生金额' + sortArrow('incurred_amount') + '费用说明
' + + '
' + tableRows + '
月份' + sortArrow('expense_month') + '费用类型' + sortArrow('expense_type') + '状态' + sortArrow('status') + '金额' + sortArrow('amount') + '现金支出' + sortArrow('incurred_amount') + '费用说明
' + ''; if (window.lucide) window.lucide.createIcons(); diff --git a/templates/index.html b/templates/index.html index f3a609c..3340289 100644 --- a/templates/index.html +++ b/templates/index.html @@ -76,7 +76,7 @@
-

OPC Manager v1.0.0.40

+

OPC Manager v1.2.0.2

科普 OPC 工作台