123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <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>
- <link href="sys/css/jquery.searchableSelect.css" th:href="@{/static/sys/css/jquery.searchableSelect.css}" rel="stylesheet"/>
- <script src="js/layer/layer.js" th:src="@{/static/sys/js/jquery.searchableSelect.js}"></script>
- </head>
- <style>
- .tablelink{margin-right:10px;}
- .stylecss{
- color: red;
- }
- .select_width{
- width: 220px;
- }
- .date_width{
- width: 150px;
- }
- </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/fx/merchantMealList.html}" method="post">
- <ul class="seachform">
- <li>
- <label>所有商户:</label>
- <select class="scinput select_width" name="merchantId" id="merchantId" style="width: 150px;" >
- <option value="">全部</option>
- <option th:each="item:${poslist}" th:selected="${search.get('merchantId') eq item.id ? true : false}" th:value="${item.id}">[[${item.unitName}]]</option>
- </select>
- </li>
- <li>
- <label>明细类型</label>
- <select class="scinput select_width" name="type" id="type" style="width: 150px;" >
- <option value="" >全部</option>
- <option value="1" th:selected="${search.get('type') eq '1' ? true : false}">激活</option>
- <option value="2" th:selected="${search.get('type') eq '2' ? true : false}">赠送</option>
- <option value="3" th:selected="${search.get('type') eq '3' ? true : false}">购买</option>
- </select>
- </li>
- <li>
- <label>订单号:</label>
- <input style="width: 200px;" name="orderId" type="text" class="scinput" th:value="${search.get('orderId')}"/>
- </li>
- <li>
- <input type="button" class="scbtn" value="查询" />
- </li>
- </ul>
- </form>
- <ul class="seachform">
- <li>
- <input type="button" id="button" class="scbtn" value="导出明细" />
- </li>
- </ul>
-
- <table class="tablelist">
- <thead>
- <tr>
- <th>订单编号</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="${item.order_id}"></td>
- <td th:text="${item.unit_name}"></td>
- <td th:switch="${item.type}">
- <span th:case="1" >激活</span>
- <span th:case="2" >赠送</span>
- <span th:case="3" >购买</span>
- </td>
- <td th:switch="${item.sign_type}">
- <span th:case="1" >服务包1</span>
- <span th:case="2" >服务包2</span>
- <span th:case="3" >服务包3</span>
- <span th:case="4" >服务包4</span>
- <span th:case="5" >服务包5</span>
- </td>
- <td th:text="${item.lib_service}"></td>
- <td th:text="${#calendars.format(item.sign_time,'yyyy-MM-dd')}" ></td>
- <td th:text="${#calendars.format(item.end_sign_time,'yyyy-MM-dd')}" ></td>
- <td th:switch="${item.type}">
- <span th:case="1" th:text="${item.unit_price}"></span>
- <span th:case="2" >0</span>
- <span th:case="3" th:text="${item.unit_price}"></span>
- </td>
- <td th:text="${#calendars.format(item.create_time,'yyyy-MM-dd HH:mm:ss')}" ></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>
- </body>
- <script type="text/javascript">
- </script>
- <script type="text/javascript">
- $(function(){
- $('#merchantId').searchableSelect();
- });
- $("#button").on('click',function(){
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/fx/exportMerchantMealList";
- $("#seachform").submit();
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/fx/merchantMealList.html";
- });
- </script>
- </html>
|