merchantMealList.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <html xmlns:th="http://www.thymeleaf.org">
  2. <head>
  3. <title>爱加</title>
  4. <script th:include="sys/common/metaCSS" th:remove="tag"></script>
  5. <script th:include="sys/common/metaJS" th:remove="tag"></script>
  6. <script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
  7. <link href="sys/css/jquery.searchableSelect.css" th:href="@{/static/sys/css/jquery.searchableSelect.css}" rel="stylesheet"/>
  8. <script src="js/layer/layer.js" th:src="@{/static/sys/js/jquery.searchableSelect.js}"></script>
  9. </head>
  10. <style>
  11. .tablelink{margin-right:10px;}
  12. .stylecss{
  13. color: red;
  14. }
  15. .select_width{
  16. width: 220px;
  17. }
  18. .date_width{
  19. width: 150px;
  20. }
  21. </style>
  22. <body>
  23. <div class="place">
  24. <span>位置:</span>
  25. <ul class="placeul">
  26. <li><a href="#">服务包管理</a></li>
  27. <li><a href="#">服务包订单明细列表</a></li>
  28. </ul>
  29. </div>
  30. <div class="rightinfo">
  31. <form id="seachform" th:action="@{/sys/fx/merchantMealList.html}" method="post">
  32. <ul class="seachform">
  33. <li>
  34. <label>所有商户:</label>
  35. <select class="scinput select_width" name="merchantId" id="merchantId" style="width: 150px;" >
  36. <option value="">全部</option>
  37. <option th:each="item:${poslist}" th:selected="${search.get('merchantId') eq item.id ? true : false}" th:value="${item.id}">[[${item.unitName}]]</option>
  38. </select>
  39. </li>
  40. <li>
  41. <label>明细类型</label>
  42. <select class="scinput select_width" name="type" id="type" style="width: 150px;" >
  43. <option value="" >全部</option>
  44. <option value="1" th:selected="${search.get('type') eq '1' ? true : false}">激活</option>
  45. <option value="2" th:selected="${search.get('type') eq '2' ? true : false}">赠送</option>
  46. <option value="3" th:selected="${search.get('type') eq '3' ? true : false}">购买</option>
  47. </select>
  48. </li>
  49. <li>
  50. <label>订单号:</label>
  51. <input style="width: 200px;" name="orderId" type="text" class="scinput" th:value="${search.get('orderId')}"/>
  52. </li>
  53. <li>
  54. <input type="button" class="scbtn" value="查询" />
  55. </li>
  56. </ul>
  57. </form>
  58. <ul class="seachform">
  59. <li>
  60. <input type="button" id="button" class="scbtn" value="导出明细" />
  61. </li>
  62. </ul>
  63. <table class="tablelist">
  64. <thead>
  65. <tr>
  66. <th>订单编号</th>
  67. <th>商户名称</th>
  68. <th>明细类型</th>
  69. <th>服务包类型</th>
  70. <th>服务包人数</th>
  71. <th>服务开始日期</th>
  72. <th>服务结束日期</th>
  73. <th>月单价(成本)</th>
  74. <th>购买时间</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <tr th:each="item:${list}" >
  79. <td th:text="${item.order_id}"></td>
  80. <td th:text="${item.unit_name}"></td>
  81. <td th:switch="${item.type}">
  82. <span th:case="1" >激活</span>
  83. <span th:case="2" >赠送</span>
  84. <span th:case="3" >购买</span>
  85. </td>
  86. <td th:switch="${item.sign_type}">
  87. <span th:case="1" >服务包1</span>
  88. <span th:case="2" >服务包2</span>
  89. <span th:case="3" >服务包3</span>
  90. <span th:case="4" >服务包4</span>
  91. <span th:case="5" >服务包5</span>
  92. </td>
  93. <td th:text="${item.lib_service}"></td>
  94. <td th:text="${#calendars.format(item.sign_time,'yyyy-MM-dd')}" ></td>
  95. <td th:text="${#calendars.format(item.end_sign_time,'yyyy-MM-dd')}" ></td>
  96. <td th:switch="${item.type}">
  97. <span th:case="1" th:text="${item.unit_price}"></span>
  98. <span th:case="2" >0</span>
  99. <span th:case="3" th:text="${item.unit_price}"></span>
  100. </td>
  101. <td th:text="${#calendars.format(item.create_time,'yyyy-MM-dd HH:mm:ss')}" ></td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. <!-- 分页 -->
  106. <div class="pagin">
  107. <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第&nbsp;<i class="blue">[[${page.pageNo }]]&nbsp;</i>页</div>
  108. <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
  109. </div>
  110. </div>
  111. </body>
  112. <script type="text/javascript">
  113. </script>
  114. <script type="text/javascript">
  115. $(function(){
  116. $('#merchantId').searchableSelect();
  117. });
  118. $("#button").on('click',function(){
  119. document.getElementById("seachform").action = "[[${sysUrl}]]/sys/fx/exportMerchantMealList";
  120. $("#seachform").submit();
  121. document.getElementById("seachform").action = "[[${sysUrl}]]/sys/fx/merchantMealList.html";
  122. });
  123. </script>
  124. </html>