更新日报相关功能

This commit is contained in:
hero920103 committed 2026-10-22 17:55:50 +08:00
1 parent 51fd90fc51
commit 68cdaf38fa
23 files changed
+2313 -1056

No files matched your search

+4 -2
View File
@@ -391,9 +391,11 @@ function cellClass(cell) {
return cell.isFuture ? 'is-future' : 'is-none'
}
// 补写窗口内、尚未写日报的日期标注「补」,点击直接进入补写
// 补写窗口内、往日尚未写日报的日期标注「补」,点击直接进入补写
// 今天属于正常填写,未写时不标「补」
function cellBackfill(cell) {
if (!cell || cell.isFuture || cell.record) return false
if (cell.date === today) return false
return inWindow(cell.date)
}
@@ -403,7 +405,7 @@ function onCalendarCellTap(cell) {
openDetail(cell.record.id)
return
}
if (cellBackfill(cell)) {
if (cell.date === today || cellBackfill(cell)) {
uni.navigateTo({ url: `/pages/oa/dailyreport/edit?date=${cell.date}` })
return
}