每日菜品优化

This commit is contained in:
zjf committed 2026-09-14 19:56:16 +08:00
1 parent 2cd379cc57
commit f32ca28caa
6 files changed
+437 -51

No files matched your search

+3 -1
View File
@@ -234,9 +234,11 @@ export const dateStr: string = "YYYY-MM-DD"
export const timeStr: string = "HH:mm:ss"
/** 当前自然月,格式 yyyy-MM(报表业务月默认值) */
/** 报表业务月默认值:上一个自然月(本月统计上月),格式 yyyy-MM */
export function currentBizMonth(): string {
const d = new Date()
d.setDate(1)
d.setMonth(d.getMonth() - 1)
const m = d.getMonth() + 1
return `${d.getFullYear()}-${m < 10 ? `0${m}` : m}`
}