优化前端样式
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user