order_tracking.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>单据追踪</title>
  7. </head>
  8. <body layout:fragment="content">
  9. <nav class="breadcrumb">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页 <span class="c-gray en">&gt;</span>
  12. 政务事务跟踪 <span class="c-gray en">&gt;</span>
  13. 单据追踪
  14. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  15. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  16. </nav>
  17. <form id="myForm" th:action="@{/track/order}" th:method="get">
  18. <div class="page-container">
  19. <div class="clearfix">
  20. <div class="f-l" style="margin-bottom: 10px;">
  21. <span class="select-box" style="width:170px; margin-right: 10px;">
  22. <select class="select" name="businessType" th:id="businessType" onchange="getType()">
  23. <option value="">请选择政务类别</option>
  24. <option value="1" th:selected="${businessType}==1">区级工业经济扶持</option>
  25. <option value="2" th:selected="${businessType}==2">省市申报</option>
  26. <option value="3" th:selected="${businessType}==3">报表填报</option>
  27. <option value="4" th:selected="${businessType}==4">服务事项</option>
  28. <option value="5" th:selected="${businessType}==5">存量用地</option>
  29. </select>
  30. </span>
  31. <span class="select-box" style="width:170px; margin-right: 10px;">
  32. <select class="select" th:name="typeId" th:id="typeId">
  33. <option value="">请选择申请类别、事项</option>
  34. <option th:each="item : ${selectList}" th:value="${item.id}" th:text="${item.name}"
  35. th:selected="${typeId}==${item.id}">
  36. </option>
  37. </select>
  38. </span>
  39. <span style="margin-right: 10px;">
  40. <input type="text" class="input-text" style="width:170px" placeholder="请输入申请单号" name="number" th:id="number"
  41. th:value="${number}"/>
  42. </span>
  43. <span style="margin-right: 10px;">
  44. <input type="text" class="input-text" style="width:170px" placeholder="请输入申请企业的名称" name="companyName"
  45. th:id="companyName"
  46. th:value="${companyName}"/>
  47. </span>
  48. </div>
  49. <div class="f-l">
  50. <label>开始日期:</label><input type="text" class="input-text" style="width:170px; margin-right:10px;" readonly placeholder="请输入开始日期"
  51. id="startDate" name="startDate" th:id="startDate"/>
  52. <label>结束日期:</label><input type="text" class="input-text" style="width:170px;" readonly placeholder="请输入结束日期"
  53. id="endDate" name="endDate" th:id="endDate"/>
  54. <button type="submit" class="btn btn-primary">
  55. 搜索
  56. </button>
  57. </div>
  58. </div>
  59. <div class="cl pd-5 bg-1 bk-gray mt-20">
  60. <span class="l">
  61. <a onclick="exportExcel()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 导出</a>
  62. </span>
  63. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">0</strong> 条</span>
  64. </div>
  65. <table class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  66. <thead>
  67. <tr class="text-c">
  68. <th>政务类别</th>
  69. <th>申请类别、事项</th>
  70. <th>申请单号</th>
  71. <th>申请企业</th>
  72. <th>当前状态</th>
  73. <th>单据详情</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. <tr class="text-c" th:each="m,iterStat:${pageInfo.list}">
  78. <td class="text-overflow" th:text="${m.businessName}" th:title="${m.businessName}"></td>
  79. <td class="text-overflow" th:text="${m.typeName}" th:title="${m.typeName}"></td>
  80. <td class="text-overflow" th:text="${m.number}" th:title="${m.number}"></td>
  81. <td class="text-overflow" th:text="${m.companyName}" th:title="${m.companyName}"></td>
  82. <td class="text-overflow" th:text="${m.status}" th:title="${m.status}"></td>
  83. <td class="td-manage">
  84. <a class="ml-5"
  85. th:onclick="'javascript:goToDetail(\'查看详情\',\''+${m.id}+'\',\''+${m.businessType}+'\');'">详情</a>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <div th:replace="admin/common/page :: page"></div>
  91. </div>
  92. </form>
  93. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  94. <script th:inline="javascript">
  95. function goToDetail(title, id, businessType) {
  96. var index = layer_show(title, pagePath + '/track/orderDetail/' + id + '/' + businessType);
  97. layer.full(index);
  98. }
  99. function getType() {
  100. var businessType = $('#businessType').val()
  101. if (businessType == "" || businessType == null || businessType == undefined) {
  102. $("#typeId").empty();
  103. $("#typeId").append('<option value="">请选择申请类别、事项</option>');
  104. return;
  105. }
  106. $.ajax({
  107. type: "get",
  108. dataType: "json",
  109. url: pagePath + "/track/getType/" + businessType,
  110. data: {
  111. "timestamp": new Date().getTime()
  112. },
  113. success: function (result) {
  114. //console.log(result)
  115. if (result.success) {
  116. //smileMessage(result.message)
  117. var array = result.obj;
  118. if (array == null) return;
  119. var str = '<option value="">请选择申请类别、事项</option>';
  120. for (var i = 0; i < array.length; i++) {
  121. str += '<option value="' + array[i].id + '">' + array[i].name + '</option>';
  122. }
  123. $("#typeId").empty();
  124. $("#typeId").append(str);
  125. } else {
  126. errorMessage(result.message);
  127. }
  128. },
  129. error: function () {
  130. errorMessage('系统错误!');
  131. }
  132. });
  133. }
  134. function exportExcel(id) {
  135. var businessType = $('#businessType').val()
  136. var typeId = $('#typeId').val()
  137. var number = $('#number').val()
  138. var companyName = $('#companyName').val()
  139. var startDate = $('#startDate').val()
  140. var endDate = $('#endDate').val()
  141. window.open(encodeURI(pagePath + "/track/exportOrderExcel?businessType=" + businessType + "&typeId=" + typeId + "&number="
  142. + number + "&companyName=" + companyName + "&startDate=" + startDate + "&endDate=" + endDate));
  143. }
  144. var startDate = laydate.render({
  145. elem: '#startDate', //指定元素
  146. done: function (value, date) {
  147. if (value !== '') {
  148. endDate.config.min.year = date.year;
  149. endDate.config.min.month = date.month - 1;
  150. endDate.config.min.date = date.date;
  151. endDate.config.min.hours = date.hours;
  152. endDate.config.min.minutes = date.minutes;
  153. endDate.config.min.seconds = date.seconds;
  154. } else {
  155. endDate.config.min.year = '1900';
  156. endDate.config.min.month = '0';
  157. endDate.config.min.date = '1';
  158. endDate.config.min.hours = '0';
  159. endDate.config.min.minutes = '0';
  160. endDate.config.min.seconds = '0';
  161. }
  162. }
  163. });
  164. var endDate = laydate.render({
  165. elem: '#endDate', //指定元素
  166. done: function (value, date) {
  167. if (value !== '') {
  168. startDate.config.max.year = date.year;
  169. startDate.config.max.month = date.month - 1;
  170. startDate.config.max.date = date.date;
  171. startDate.config.max.hours = date.hours;
  172. startDate.config.max.minutes = date.minutes;
  173. startDate.config.max.seconds = date.seconds;
  174. } else {
  175. startDate.config.max.year = '2100';
  176. startDate.config.max.month = '0';
  177. startDate.config.max.date = '1';
  178. startDate.config.max.hours = '0';
  179. startDate.config.max.minutes = '0';
  180. startDate.config.max.seconds = '0';
  181. }
  182. }
  183. });
  184. </script>
  185. </body>
  186. </html>