考勤记录显示记录人,默认出勤写入原因;撤销"节前上课"特殊类型
1. 考勤记录查询关联 users 表返回记录人姓名(修复记录人为空) 2. 默认出勤生成的记录原因写为"默认出勤";整天请假未填原因时默认"请假(整天)" 3. "假前下午上课"属于偶发情况,默认不做:移除 pre_holiday 校历类型,需要时按正常考勤流程单独补录下午记录 4. 已确认:默认出勤记录可被异常考勤覆盖(覆盖时按异常状态正常扣分)
This commit is contained in:
1 parent
97f2de5d83
commit
0ac933a3a5
6 files changed
+14
-18
No files matched your search
@@ -308,11 +308,10 @@ function renderCalendar(data) {
|
||||
items.push({ date: d, type: 'makeup', label: '调休', name: workdays[d], manual: false });
|
||||
});
|
||||
Object.keys(manual).forEach(function(d) {
|
||||
const manualLabels = { holiday: '放假', makeup: '补课', pre_holiday: '节前上课' };
|
||||
items.push({
|
||||
date: d,
|
||||
type: manual[d].type,
|
||||
label: manualLabels[manual[d].type] || manual[d].type,
|
||||
label: manual[d].type === 'holiday' ? '放假' : '补课',
|
||||
name: manual[d].note || '',
|
||||
manual: true
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user