{% extends 'layout/base.html' %} {% block title %}考勤详情 - CHM考勤管理系统{% endblock %} {% block content %}

考勤详情

返回列表
学生信息

学号: {{ weekly_record.student_number }}

姓名: {{ weekly_record.name }}

{% if student %}

年级: {{ student.grade }}

学院: {{ student.college or '未设置' }}

{% endif %}
{% if student %}

专业: {{ student.major or '未设置' }}

导师: {{ student.supervisor or '未设置' }}

学位类型: {{ student.degree_type or '未设置' }}

状态: {{ student.status }}

{% endif %}
考勤周期

开始日期: {{ weekly_record.week_start_date.strftime('%Y年%m月%d日') }}

结束日期: {{ weekly_record.week_end_date.strftime('%Y年%m月%d日') }}

创建时间: {{ weekly_record.created_at.strftime('%Y-%m-%d %H:%M') }}

更新时间: {{ weekly_record.updated_at.strftime('%Y-%m-%d %H:%M') }}

实际出勤时长
{{ "%.1f"|format(weekly_record.actual_work_hours) }}小时
班内工作时长
{{ "%.1f"|format(weekly_record.class_work_hours) }}小时
旷工天数
{{ weekly_record.absent_days }}天
加班时长
{{ "%.1f"|format(weekly_record.overtime_hours) }}小时
每日考勤明细 (点击日期查看详细时段信息)
{% if daily_details %}
{% for detail in daily_details %} {% endfor %}
日期 星期 考勤状态 签到时间 签退时间 工作时长 备注 操作
{{ detail.attendance_date.strftime('%m-%d') }} {% 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 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 %}
{% else %}
暂无每日考勤明细

该考勤周期内没有详细的打卡记录

{% endif %}
考勤统计分析
{{ present_days }}
正常天数
{{ late_days }}
迟到天数
{{ absent_days }}
缺勤天数
{{ "%.1f"|format(avg_daily_hours) }}h
日均时长
历史对比
{% if historical_records %}
{% for record in historical_records %} {% endfor %}
周期 出勤时长 旷工天数
{{ record.week_start_date.strftime('%m-%d') }} {{ "%.1f"|format(record.actual_work_hours) }}h {% if record.absent_days > 0 %} {{ record.absent_days }} {% else %} 0 {% endif %}
{% else %}

暂无历史记录

{% endif %}
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}