41 lines
2.2 KiB
HTML
41 lines
2.2 KiB
HTML
|
|
{% extends "base.html" %}
|
||
|
|
{% block title %}充值记录 - 学生课程管理系统{% endblock %}
|
||
|
|
{% block content %}
|
||
|
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
||
|
|
<h4><i class="bi bi-cash-stack"></i> 充值记录</h4>
|
||
|
|
<a href="{{ url_for('recharge_add') }}" class="btn btn-primary"><i class="bi bi-plus-circle"></i> 学员充值</a>
|
||
|
|
{% if current_user.has_permission('recharge_export') %}<a href="{{ url_for('recharge_export') }}" class="btn btn-success"><i class="bi bi-download"></i> 导出Excel</a>{% endif %}
|
||
|
|
</div>
|
||
|
|
<div class="card shadow-sm">
|
||
|
|
<div class="card-body">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-hover table-bordered">
|
||
|
|
<thead class="table-light">
|
||
|
|
<tr><th>ID</th><th>时间</th><th>学员</th><th>课程</th><th>充值金额</th><th>正课课时</th><th>赠课课时</th><th>关联活动</th><th>支付方式</th><th>操作人</th><th>备注</th></tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for r in records %}
|
||
|
|
<tr>
|
||
|
|
<td>{{ r.id }}</td>
|
||
|
|
<td>{{ r.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
|
||
|
|
<td><a href="{{ url_for('student_detail', id=r.student_id) }}">{{ r.student.name }}</a></td>
|
||
|
|
<td>{{ r.course.name }}</td>
|
||
|
|
<td class="text-success">¥{{ r.amount }}</td>
|
||
|
|
<td>{{ r.normal_hours }}</td>
|
||
|
|
<td class="text-danger">{% if r.gifted_hours > 0 %}+{{ r.gifted_hours }}{% else %}0{% endif %}</td>
|
||
|
|
<td>{{ r.activity.name if r.activity else '-' }}</td>
|
||
|
|
<td>{{ r.payment_method or '-' }}</td>
|
||
|
|
<td>{{ r.operator.real_name }}</td>
|
||
|
|
<td>{{ r.remark or '-' }}</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
{% if not records %}
|
||
|
|
<tr><td colspan="11" class="text-center text-muted">暂无充值记录</td></tr>
|
||
|
|
{% endif %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|