{% extends 'layout/base.html' %} {% block title %}考勤详情 - SmartDSP考勤管理系统{% endblock %} {% block content %}
学号: {{ record.student_number }}
姓名: {{ record.name }}
{% if student %}年级: {{ student.grade }}
学院: {{ student.college or '未设置' }}
{% endif %}专业: {{ student.major or '未设置' }}
导师: {{ student.supervisor or '未设置' }}
学位类型: {{ student.degree_type or '未设置' }}
状态: {{ student.status }}
{% endif %}开始日期: {{ record.week_start_date.strftime('%Y年%m月%d日') }}
结束日期: {{ record.week_end_date.strftime('%Y年%m月%d日') }}
创建时间: {{ record.created_at.strftime('%Y-%m-%d %H:%M') }}
更新时间: {{ record.updated_at.strftime('%Y-%m-%d %H:%M') }}
日期 | 星期 | 考勤状态 | 签到时间 | 签退时间 | 工作时长 | 备注 | 操作 |
---|---|---|---|---|---|---|---|
{{ detail.attendance_date.strftime('%m-%d') }} {{ detail.attendance_date.strftime('%Y') }} | {% set weekday = detail.attendance_date.weekday() %} {% if weekday == 0 %}周一 {% elif weekday == 1 %}周二 {% elif weekday == 2 %}周三 {% elif weekday == 3 %}周四 {% elif weekday == 4 %}周五 {% elif weekday == 5 %}周六 {% else %}周日 {% endif %} {% if weekday >= 5 %} 休息日 {% endif %} | {% if detail.status == '正常' %} {{ detail.status }} {% elif '迟到' in detail.status %} {{ detail.status }} {% elif detail.status == '缺勤' %} {{ detail.status }} {% elif detail.status == '请假' %} {{ detail.status }} {% elif detail.status == '休息' %} {{ detail.status }} {% elif detail.status == '加班' %} {{ detail.status }} {% else %} {{ detail.status }} {% endif %} | {% if detail.check_in_time %} {{ detail.check_in_time.strftime('%H:%M') }} {% else %} 未打卡 {% endif %} | {% if detail.check_out_time %} {{ detail.check_out_time.strftime('%H:%M') }} {% else %} 未打卡 {% endif %} | {% if detail.duration_hours %} {{ detail.duration_hours }}h {% else %} - {% endif %} | {% if detail.summary_remarks %} {{ detail.summary_remarks }} {% else %} - {% endif %} | {% if detail.status not in ['休息', '缺勤'] and detail.detailed_info %} {% endif %} |
该考勤周期内没有详细的打卡记录
周期 | 出勤时长 | 旷工天数 | 对比 |
---|---|---|---|
{{ record_item.week_start_date.strftime('%m-%d') }} | {{ "%.1f"|format(record_item.actual_work_hours) }}h | {% if record_item.absent_days > 0 %} {{ record_item.absent_days }} {% else %} 0 {% endif %} | {% set diff = record.actual_work_hours - record_item.actual_work_hours %} {% if diff > 0 %} +{{ "%.1f"|format(diff) }}h {% elif diff < 0 %} {{ "%.1f"|format(diff) }}h {% else %} - {% endif %} |
暂无历史记录
{% endif %}{% if late_days > 0 %} 本周有 {{ late_days }} 天迟到, {% endif %} {% if absent_days > 0 %} 有 {{ absent_days }} 天缺勤, {% endif %} 请注意调整作息时间,保持良好的考勤记录。