123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <html xmlns:th="http://www.thymeleaf.org">
- <head>
- <title>私塾家</title>
- <script th:include="sys/common/metaCSS" th:remove="tag"></script>
- <script th:include="sys/common/metaJS" th:remove="tag"></script>
- <script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
- </head>
- <style>
- .tablelink{margin-right:10px;}
- .stylecss{
- color: red;
- }
- .select_width{
- width: 70px;
- }
- .date_width{
- width: 100px;
- }
- </style>
- <body>
- <div class="place">
- <span>位置:</span>
- <ul class="placeul">
- <li><a href="#">微信管理</a></li>
- <li><a href="#">资金流水管理</a></li>
- </ul>
- </div>
- <div class="rightinfo">
- <form id="seachform" th:action="@{/sys/order/orderList.html}" method="post">
- <ul class="seachform">
- <li>
- <label>订单类型</label>
- <select class="scinput select_width" style="width: 146px;" name="order_type" th:switch="${search.get('order_type')}" >
- <option value="" th:selected="${ search.get('order_type') eq '' }" >全部</option>
- <option value="4" th:selected="${ search.get('order_type') eq '4' }" >会员卡支付酬金</option>
- <option value="7" th:selected="${ search.get('order_type') eq '7' }" >图书馆借书首次酬金</option>
- <option value="8" th:selected="${ search.get('order_type') eq '8' }" >图书馆借书普通酬金</option>
- </select>
- </li>
- <li>
- <label>订单状态</label>
- <select class="scinput select_width" name="order_status" th:switch="${search.get('order_status')}" >
- <option value="" th:selected="${ search.get('order_status') eq '' }" >全部</option>
- <option value="0" th:selected="${ search.get('order_status') eq '0' }" >未支付</option>
- <option value="1" th:selected="${ search.get('order_status') eq '1' }" >已支付</option>
- <!-- <option value="2" th:selected="${ search.get('order_status') eq '2' }" >已取消</option>
- <option value="3" th:selected="${ search.get('order_status') eq '3' }" >已完成</option> -->
- <option value="4" th:selected="${ search.get('order_status') eq '4' }" >已退款</option>
- </select>
- </li>
-
- <li>
- <label>开始时间</label>
- <input type="text" id="beginDate" name="beginDate" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')}'})" th:value="${search.beginDate }" class="scinput date_width " placeholder="开始时间">
- </li>
-
-
- <li>
- <label>结束时间</label>
- <input type="text" id="endDate" name="endDate" onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginDate\')}'})" th:value="${search.endDate }" class="scinput date_width" placeholder="结束时间">
- </li>
- <li>
- <label>订单编号</label>
- <input name="order_no" type="text" class="scinput" th:value="${search.get('order_no')}"/>
- </li>
- <li>
- <label> </label>
- <input type="button" class="scbtn" value="查询" />
- </li>
- <li>
- <input type="button" id="button" style="width: 100px;" class="scbtnbution" value="导出明细" />
- </li>
- </ul>
- </form>
- <table class="tablelist">
- <thead>
- <tr>
- <th style="width: 50px;">序号</th>
- <th>下单人</th>
- <th>订单编号</th>
- <th>订单类型</th>
- <th>订单状态</th>
- <th>订单金额</th>
- <th>下单时间</th>
- <th>支付成功时间</th>
- <th>退款时间</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="item:${list}" >
- <td th:text="${itemStat.count}" ></td>
- <td th:text="${item.get('wx_name')}">
- </td>
- <td th:text="${item.get('order_no')}">
- </td>
- <td th:switch="${item.get('order_type')}">
- <span th:case="4">会员卡支付酬金</span>
- <span th:case="7">图书馆借书首次酬金</span>
- <span th:case="8">图书馆借书普通酬金</span>
- <span th:case="*">其他</span>
- </td>
- <td th:switch="${item.get('order_status')}">
- <span th:case="0">未支付</span>
- <span th:case="1" style="color: red;">已支付</span>
- <span th:case="1" style="color: red;">财务手动</span>
- <span th:case="4" style="color: green;">已退款</span>
- <span th:case="*">其他</span>
- </td>
- <td th:text=" ${#strings.contains(item.get('order_money'),'.00')} ? ${#numbers.formatDecimal(item.get('order_money'),1,0)} : ${#numbers.formatDecimal(item.get('order_money'),1,2)} " style="color: red;"></td>
-
-
- <td th:text="${#calendars.format(item.get('create_time'),'yyyy-MM-dd HH:mm')}" ></td>
- <td th:text="${#calendars.format(item.get('pay_time'),'yyyy-MM-dd HH:mm')}" ></td>
- <td th:text="${#calendars.format(item.get('refund_time'),'yyyy-MM-dd HH:mm')}" ></td>
- </tr>
- </tbody>
- </table>
- <!-- 分页 -->
- <div class="pagin">
- <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第 <i class="blue">[[${page.pageNo }]] </i>页</div>
- <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
- </div>
- </div>
- <script type="text/javascript">
- $("#button").on('click',function(){
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/report/exportOrder";
- $("#seachform").submit();
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/order/orderList.html";
- });
- </script>
- </body>
- </html>
|