Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68797e4fb5 |
@@ -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(`<h2 class="mb-4 text-lg font-bold">收入、毛利、成本/费用、净利月度曲线</h2><div style="position:relative;height:300px"><canvas id="financeChart2"></canvas></div>`, "p-5")}
|
||||||
${card(formHtml([
|
${card(formHtml([
|
||||||
{ label: "日期", input: `<input name="month" type="date" required>` },
|
{ 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>` },
|
{ label: "金额/万", input: `<input name="amount" type="number" step="0.01" required>` },
|
||||||
], { handler: "createFinance", text: "新增明细" }), "p-4")}
|
], { handler: "createFinance", text: "新增明细" }), "p-4")}
|
||||||
${renderTable(["日期", "分类", "金额", "备注"], rows)}
|
${renderTable(["日期", "类型", "金额", "备注"], rows)}
|
||||||
</div>`;
|
</div>`;
|
||||||
renderChartOn("financeChart2", state.data.financeMonthly);
|
renderChartOn("financeChart2", state.data.financeMonthly);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user