优化前端样式

This commit is contained in:
2026-09-09 23:51:00 +08:00
parent a89bdd839b
commit 63bf972c17
8 changed files with 84 additions and 8 deletions
+7 -4
View File
@@ -1211,16 +1211,19 @@ func (c *BackendReimburseController) Dashboard() {
for i := range rows {
row := &rows[i]
if inRange(row.ApplyDate, weekStart, tomorrow) {
// 按报销单「创建日期」归期(周/月/年 + 趋势)。
// 申请日期 apply_date 允许回填为历史日期,用它会导致本月/本周漏统计。
created := row.CreateTime
if inRange(created, weekStart, tomorrow) {
addTo(weekStat, row)
}
if inRange(row.ApplyDate, monthStart, tomorrow) {
if inRange(created, monthStart, tomorrow) {
addTo(monthStat, row)
}
if !row.ApplyDate.Before(yearStart) {
if inRange(created, yearStart, tomorrow) {
addTo(yearStat, row)
}
if st, ok := monthStats[row.ApplyDate.Format("2006-01")]; ok {
if st, ok := monthStats[created.Format("2006-01")]; ok {
addTo(st, row)
}
sk := strconv.Itoa(int(row.Status))