考勤记录显示记录人,默认出勤写入原因;撤销"节前上课"特殊类型

1. 考勤记录查询关联 users 表返回记录人姓名(修复记录人为空)
2. 默认出勤生成的记录原因写为"默认出勤";整天请假未填原因时默认"请假(整天)"
3. "假前下午上课"属于偶发情况,默认不做:移除 pre_holiday 校历类型,需要时按正常考勤流程单独补录下午记录
4. 已确认:默认出勤记录可被异常考勤覆盖(覆盖时按异常状态正常扣分)
This commit is contained in:
canglan committed 2026-11-26 09:53:51 +08:00
1 parent 97f2de5d83
commit 0ac933a3a5
6 files changed
+14 -18

No files matched your search

+1 -2
View File
@@ -72,7 +72,7 @@ include __DIR__ . '/../includes/header.php';
<!-- 学生方格网格 -->
<div class="card">
<div class="card-title">点击选择有考勤异常的学生</div>
<div class="card-title">点击选择有考勤异常的学生(默认出勤记录也可选中覆盖为异常)</div>
<div class="student-grid" id="studentGrid">
<!-- JS 动态生成 -->
</div>
@@ -152,7 +152,6 @@ include __DIR__ . '/../includes/header.php';
<input type="date" id="calendarNewDate" style="width:auto;">
<select id="calendarNewType" style="width:auto;">
<option value="makeup">补课(按上课)</option>
<option value="pre_holiday">节前上课(早+中)</option>
<option value="holiday">放假(按休息)</option>
</select>
<input type="text" id="calendarNewNote" placeholder="备注(选填)" maxlength="100" style="flex:1; min-width:120px;">
+1 -2
View File
@@ -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
});