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-arrow-return-left"></i> 退费记录</h4>
|
||
|
|
<a href="{{ url_for('refund_add') }}" class="btn btn-primary"><i class="bi bi-plus-circle"></i> 申请退费</a>
|
||
|
|
{% if current_user.has_permission('refund_export') %}<a href="{{ url_for('refund_export') }}" class="btn btn-success"><i class="bi bi-file-earmark-excel"></i> 导出</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') }}</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-danger">¥{{ r.refund_amount }}</td>
|
||
|
|
<td>{{ r.remaining_normal_hours }}</td>
|
||
|
|
<td>{{ r.deduct_gifted_hours }}</td>
|
||
|
|
<td>¥{{ r.consumed_hours_value }}</td>
|
||
|
|
<td>¥{{ r.material_fee_per_quarter * r.quarters }}</td>
|
||
|
|
<td>{{ r.reason or '-' }}</td>
|
||
|
|
<td>{% if r.status == 1 %}<span class="badge bg-success">已退</span>{% else %}<span class="badge bg-warning">待审核</span>{% endif %}</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
{% if not records %}
|
||
|
|
<tr><td colspan="11" class="text-center text-muted">暂无退费记录</td></tr>
|
||
|
|
{% endif %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|