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

我的考勤记录

{% if total_stats %}
总考勤周数
{{ total_stats.total_weeks }}周
总出勤时长
{{ "%.1f"|format(total_stats.total_actual_hours) }}h
班内工作
{{ "%.1f"|format(total_stats.total_class_hours) }}h
迟到次数
{{ total_stats.total_late_count }}次
旷工天数
{{ total_stats.total_absent_days }}天
周均时长
{{ "%.1f"|format(total_stats.avg_weekly_hours) }}h
{% endif %}
筛选条件
重置 {% if attendance_records %} {% endif %}
考勤记录列表
{% if attendance_records %} 共 {{ pagination.total }} 条记录 {% endif %}
{% if attendance_records %}
{% for record in attendance_records %} {% endfor %}
周次 实际工作时长 班内工作时长 迟到次数 旷工天数 加班时长 记录时间 操作
{{ record.week_start_date.strftime('%Y-%m-%d') }} 至 {{ record.week_end_date.strftime('%Y-%m-%d') }}
{{ "%.1f"|format(record.actual_work_hours) }}h {{ "%.1f"|format(record.class_work_hours) }}h {% if record.late_count > 0 %} {{ record.late_count }}次 {% else %} 0次 {% endif %} {% if record.absent_days > 0 %} {{ record.absent_days }}天 {% else %} 0天 {% endif %} {% if record.overtime_hours > 0 %} {{ "%.1f"|format(record.overtime_hours) }}h {% else %} 0h {% endif %} {{ record.created_at.strftime('%m-%d %H:%M') }} 查看详情
{% if pagination.pages > 1 %} {% endif %} {% else %}
暂无考勤记录

当前筛选条件下没有找到考勤记录

返回首页
{% endif %}
{% if attendance_records %}
本期统计分析
{{ "%.1f"|format(total_stats.avg_weekly_hours) }}h
周均出勤
{{ "%.1f"|format((total_stats.total_class_hours / total_stats.total_actual_hours * 100) if total_stats.total_actual_hours > 0 else 0) }}%
班内工作率
{{ "%.1f"|format((total_stats.total_overtime_hours / total_stats.total_weeks) if total_stats.total_weeks > 0 else 0) }}h
周均加班
{% endif %}
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}