2019-07-18 08:59:26 +08:00
|
|
|
|
{% extends "common/layout_main.html" %}
|
|
|
|
|
|
{% block content %}
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% include "common/tab_finance.html" %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
|
<form class="form-inline wrap_search">
|
|
|
|
|
|
<div class="row m-t p-w-m">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<select name="status" class="form-control inline">
|
|
|
|
|
|
<option value="-1">请选择状态</option>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% for tmp_key in pay_status_mapping %}
|
|
|
|
|
|
<option value="{{ tmp_key }}" {% if tmp_key == search_con['status'] %} selected {% endif %}>{{ pay_status_mapping[ tmp_key ] }}</option>
|
|
|
|
|
|
{% endfor %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
<table class="table table-bordered m-t">
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th>订单编号</th>
|
|
|
|
|
|
<th>名称</th>
|
|
|
|
|
|
<th>价格</th>
|
|
|
|
|
|
<th>支付时间</th>
|
|
|
|
|
|
<th>状态</th>
|
|
|
|
|
|
<th>创建时间</th>
|
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% if list %}
|
|
|
|
|
|
{% for item in list %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
<tr>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
<td>{{ item.order_number }}</td>
|
2019-07-18 08:59:26 +08:00
|
|
|
|
<td>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% for item_food in item.foods %}
|
|
|
|
|
|
{{ item_food.name }} × {{ item_food.quantity }}
|
|
|
|
|
|
{% endfor %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
</td>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
<td>{{ item.price }}</td>
|
|
|
|
|
|
<td>{{ item.pay_time }}</td>
|
|
|
|
|
|
<td>{{ item.status_desc }}</td>
|
|
|
|
|
|
<td>{{ item.created_time }}</td>
|
2019-07-18 08:59:26 +08:00
|
|
|
|
<td>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
<a href="{{ buildUrl('/finance/pay-info') }}?id={{ item.id }}">
|
2019-07-18 08:59:26 +08:00
|
|
|
|
<i class="fa fa-eye fa-lg"></i>
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% endfor %}
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
<tr><td colspan="7">暂无数据~~</td></tr>
|
|
|
|
|
|
{% endif %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<!--分页代码已被封装到统一模板文件中-->
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% include 'common/pagenation.html' %}
|
2019-07-18 08:59:26 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|
2019-08-06 14:17:42 +08:00
|
|
|
|
{% block js %}
|
|
|
|
|
|
<script src="{{ buildStaticUrl('/js/finance/index.js') }}"></script>
|
|
|
|
|
|
{% endblock %}
|