Compare commits

...

1 Commits

View File

@@ -424,10 +424,10 @@ function renderFinance() {
${card(`<h2 class="mb-4 text-lg font-bold">收入、毛利、成本/费用、净利月度曲线</h2><div style="position:relative;height:300px"><canvas id="financeChart2"></canvas></div>`, "p-5")}
${card(formHtml([
{ label: "日期", input: `<input name="month" type="date" required>` },
{ label: "类", input: `<select name="category"><option></option><option>/</option><option></option></select>` },
{ label: "类", input: `<select name="category"><option>签单</option><option></option><option></option><option></option><option></option></select>` },
{ label: "金额/万", input: `<input name="amount" type="number" step="0.01" required>` },
], { handler: "createFinance", text: "新增明细" }), "p-4")}
${renderTable(["日期", "类", "金额", "备注"], rows)}
${renderTable(["日期", "类", "金额", "备注"], rows)}
</div>`;
renderChartOn("financeChart2", state.data.financeMonthly);
}