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

我的考勤详情

返回列表
学生信息

学号: {{ record.student_number }}

姓名: {{ 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 %}
考勤周期

开始日期: {{ 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') }}

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

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

{% endif %}
本周考勤统计
{{ present_days }}
正常天数
{{ late_days }}
迟到天数
{{ absent_days }}
缺勤天数
{{ "%.1f"|format(avg_daily_hours) }}h
日均时长

{{ "%.1f"|format((present_days / max(total_days, 1) * 100)) }}%
出勤率
{{ "%.1f"|format((record.class_work_hours / max(record.actual_work_hours, 1) * 100)) }}%
班内工作率
{{ total_days }}
考勤天数
最近记录对比
{% if recent_records %}
{% for record_item in recent_records %} {% endfor %}
周期 出勤时长 旷工天数 对比
{{ 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 %}
{% else %}

暂无历史记录

{% endif %}
{% if late_days > 0 or absent_days > 0 %} {% endif %}
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}