{% extends "base.html" %} {% block title %}统计报表{% endblock %} {% block content %}

统计报表

数据来源:课时核对表 Excel · 当前 {{ period_label }} ({{ month_accounts }} 条学员×课程)

{% if current_user.has_permission('statistics_export') %} 导出 {% endif %}
{% if available_periods %} {% else %} {% endif %}
{% if available_periods|length > 1 %}
快捷切换
{% for p in available_periods %} {{ p.year }}-{{ '%02d'|format(p.month) }} {{ p.count }} {% endfor %}
{% endif %}
{% if not available_periods %}

请先在 课时核对表 导入 Excel。

{% endif %}

¥{{ "%.0f"|format(month_recharge) }}

{{ period_label }} 充值

{{ "%.0f"|format(month_consumption) }}

{{ period_label }} 消课(节)

¥{{ "%.0f"|format(month_consumed_amount) }}

{{ period_label }} 已消金额

¥{{ "%.0f"|format(month_refund) }}

{{ period_label }} 退费

¥{{ "%.0f"|format(month_end_balance) }}

{{ period_label }} 月末余额合计

{{ month_new_signups }}

{{ period_label }} 新签学员

{{ active_students }}

在读学员

¥{{ "%.0f"|format(year_recharge) }}

{{ year }} 年度充值累计

{% if monthly_trend %}
月度趋势
已导入月份充值金额
{% set max_r = monthly_trend|map(attribute='recharge')|max %} {% for item in monthly_trend %}
{{ item.label }} ¥{{ "%.0f"|format(item.recharge) }}
{% endfor %}
{% endif %}
各课程统计({{ period_label }})
{% if course_stats %}
{% for c in course_stats %} {% endfor %}
课程 充值 消课 退费 月末余额
{{ c.code }} ¥{{ "%.0f"|format(c.recharge) }} {{ "%.0f"|format(c.consumed_hours) }}节 {% if c.refund %}¥{{ "%.0f"|format(c.refund) }}{% else %}-{% endif %} ¥{{ "%.0f"|format(c.end_balance) }}
{% else %}

该月暂无课程数据,请先在「课时核对表」导入 Excel。

{% endif %}
退费统计({{ period_label }})
{% if refund_rows %}
{% for r in refund_rows %} {% endfor %}
课程笔数退费课时金额
{{ r.name }} {{ r.count }} {{ "%.0f"|format(r.lessons) }} ¥{{ "%.2f"|format(r.amount) }}
{% else %}

该月无退费记录。

{% endif %}
上课登记({{ period_label }})
{% if class_activity %}
{% for a in class_activity %} {% endfor %}
课程登记次数课时
{{ a.name }} {{ a.sessions }} {{ "%.0f"|format(a.lessons) }}
{% else %}

该月暂无上课登记解析数据。

{% endif %}
财务营收对账(已导入全周期)

累计充值

¥{{ "%.0f"|format(total_recharge) }}

累计退费

¥{{ "%.0f"|format(total_refund) }}

净收入

¥{{ "%.0f"|format(net_income) }}


累计已消课金额 ¥{{ "%.0f"|format(total_consumed_amount) }} · {{ year }} 年度消课 {{ "%.0f"|format(year_consumption) }} 节 · 年度退费 ¥{{ "%.0f"|format(year_refund) }}

{% endblock %} {% block extra_js %} {% endblock %}