order_list.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>收费查询</title>
  7. <!-- Tell the browser to be responsive to screen width -->
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <!-- Font Awesome -->
  10. <link rel="stylesheet" href="${contextPath}/dist/js/layui/css/layui.css">
  11. <link rel="stylesheet" href="${contextPath}/dist/css/admin.css" media="all">
  12. </head>
  13. <body class="layui-layout-body">
  14. <div class="layui-layout layui-layout-admin">
  15. <!-- Navbar -->
  16. <#include "../body/top.html">
  17. <!-- /.navbar -->
  18. <!-- Main Sidebar Container -->
  19. <#include "../body/left.html">
  20. <!-- Content Wrapper. Contains page content -->
  21. <div class="layui-body">
  22. <!-- 内容主体区域 -->
  23. <div class="layui-card">
  24. <form id="searchForm" action="${contextPath}/count/tolist">
  25. <input type="hidden" id="currentPage" name="currentPage" value="${currentPage}"/>
  26. <div class="layui-form layui-card-header layuiadmin-card-header-auto">
  27. <div class="layui-form-item">
  28. <div class="layui-inline">
  29. <label class="layui-form-label">就诊卡号</label>
  30. <div class="layui-input-inline">
  31. <input type="text" name="id_number" value="${id_number}" placeholder="请输入" autocomplete="off" class="layui-input">
  32. </div>
  33. </div>
  34. <div class="layui-inline">
  35. <label class="layui-form-label">姓名</label>
  36. <div class="layui-input-inline">
  37. <input type="text" name="user_name" value="${user_name}" placeholder="请输入" autocomplete="off" class="layui-input">
  38. </div>
  39. </div>
  40. <div class="layui-inline">
  41. <label class="layui-form-label">支付类型</label>
  42. <div class="layui-input-inline">
  43. <select id="pay_type" name="pay_type" lay-filter="aihao">
  44. <option value="">请选择</option>
  45. <option value="0" <#if pay_type! == '0'>selected="selected"</#if>>微信</option>
  46. <option value="1" <#if pay_type! == '1'>selected="selected"</#if>>支付宝</option>
  47. </select>
  48. </div>
  49. </div>
  50. <div class="layui-inline">
  51. <button id="search_btn" class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search">
  52. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
  53. </button>
  54. </div>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. <table class="layui-table">
  60. <tr>
  61. <th style="background-color: #009688; color: #fff;">订单号</th>
  62. <th style="background-color: #009688; color: #fff;">就诊卡</th>
  63. <th style="background-color: #009688; color: #fff;">姓名</th>
  64. <th style="background-color: #009688; color: #fff;">金额</th>
  65. <th style="background-color: #009688; color: #fff;">内容</th>
  66. <th style="background-color: #009688; color: #fff;">方式</th>
  67. <th style="background-color: #009688; color: #fff;">交易时间</th>
  68. <th style="background-color: #009688; color: #fff;">状态</th>
  69. <th style="background-color: #009688; color: #fff;">操作人</th>
  70. <th style="background-color: #009688; color: #fff;">已退费</th>
  71. <th style="background-color: #009688; color: #fff;">退费</th>
  72. <th style="background-color: #009688; color: #fff;">操作</th>
  73. </tr>
  74. <#list dataList as data>
  75. <tr>
  76. <td>${data.out_trade_no!}</td>
  77. <td>${data.id_number!}</td>
  78. <td>${data.user_name!}</td>
  79. <td>${data.total_fee!}分</td>
  80. <td>${data.memo!}</td>
  81. <td>
  82. <#if data.pay_type! == '0'>微信
  83. <#elseif data.pay_type! == '1'>支付宝
  84. </#if>
  85. </td>
  86. <td>${data.update_time!}</td>
  87. <td>
  88. <#if data.status! == '0'>未支付
  89. <#elseif data.status! == '1'>已支付
  90. <#elseif data.status! == '2'>部分退费
  91. <#elseif data.status! == '3'>已退费
  92. </#if>
  93. </td>
  94. <td>${data.user_name!}</td>
  95. <td>${data.tf_money!}</td>
  96. <td><input type="text" id="tf_money${data.id}" placeholder="请输入" autocomplete="off" class="layui-input" style="width:80px;"></td>
  97. <td style="width:80px;">
  98. <#if userAuth("${userModel.login_id}","ROLE_TF")>
  99. <a class="layui-btn layui-btn-normal layui-btn-xs tf" alt="${data.id}" title="退费">退费</a>
  100. </#if>
  101. <a class="layui-btn layui-btn-normal layui-btn-xs jc" alt="${data.out_trade_no}" title="检测">检测</a>
  102. </td>
  103. </tr>
  104. </#list>
  105. </table>
  106. <div id="page"></div>
  107. </div>
  108. <form id="tfForm" action="${contextPath}/count/refund">
  109. <input type="hidden" id="id" name="id" value=""/>
  110. <input type="hidden" id="tf_money" name="tf_money" value=""/>
  111. </form>
  112. <!-- /.content-wrapper -->
  113. <#include "../body/footer.html">
  114. </div>
  115. <!-- ./wrapper -->
  116. <script type="text/javascript" src="${contextPath}/dist/js/jquery-1.11.1.min.js"></script>
  117. <script src="${contextPath}/dist/js/layui/layui.js"></script>
  118. <script>
  119. //JavaScript代码区域
  120. layui.use(['element', 'laypage', 'layer', 'form'], function(){
  121. var element = layui.element;
  122. var form = layui.form;
  123. var laypage = layui.laypage
  124. ,layer = layui.layer;
  125. // 分页功能
  126. laypage.render({
  127. elem: 'page'
  128. ,count: ${totalRow}
  129. ,limits: [6,12,18,24,30]
  130. ,limit:6
  131. ,curr:${currentPage}
  132. ,layout: ['count', 'prev', 'page', 'next','limit', 'refresh', 'skip']
  133. ,jump: function(obj,first){
  134. console.log(first);
  135. if(!first){
  136. $("#currentPage").val(obj.curr);
  137. $("#searchForm").submit();
  138. }
  139. }
  140. });
  141. });
  142. $(document).ready( function() {
  143. // now we check to see which browser is being used
  144. $(".tf").click(function(){
  145. $("#id").val($(this).attr('alt'));
  146. $("#tf_money").val($("#tf_money"+$(this).attr('alt')).val());
  147. $("#tfForm").submit();
  148. });
  149. $(".jc").click(function(){
  150. $.get("${contextPath}/count/test_order?",{ order_no:$(this).attr('alt') },function(data,status){
  151. alert(data.data);
  152. });
  153. });
  154. });
  155. </script>
  156. </body>
  157. </html>