Нет описания

reviewHandleWorkOrderStatistics.html 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>审核办理工单统计</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../css/init.css" rel="stylesheet" />
  12. <script src="../css/laydate/laydate.js"></script>
  13. <script src="../My97DatePicker/WdatePicker.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .ld-service li {
  20. float: left;
  21. font-size: 14px;
  22. color: #000;
  23. padding: 5px 15px;
  24. cursor: pointer;
  25. border-bottom: 1px solid #ccc;
  26. }
  27. .cr-click {
  28. border: 1px solid #ccc;
  29. background-color: #fff;
  30. border-bottom: none !important;
  31. border-bottom-left-radius: 5px;
  32. border-bottom-right-radius: 5px;
  33. }
  34. .Shows {
  35. display: block !important;
  36. }
  37. .complain {
  38. display: none;
  39. }
  40. th {
  41. padding: 5px;
  42. text-align: center;
  43. }
  44. td {
  45. padding: 5px;
  46. }
  47. .Borders {
  48. border: 1px solid #d7d7d7;
  49. }
  50. .cx {
  51. display: block;
  52. }
  53. #list thead th {
  54. background: #01a1cb;
  55. color: #fff;
  56. }
  57. </style>
  58. </head>
  59. <body class="gray-bg">
  60. <div class="wrapper wrapper-content animated fadeInRight">
  61. <div class="daoHang clearfix">
  62. <div class="dhLeft">
  63. <sapn>
  64. <i class="syIcon"></i>位置:
  65. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  66. <a href="javaScript:;">业务统计</a>&gt;
  67. <a href="" class="nowPosition">审核办理工单统计</a>
  68. </sapn>
  69. </div>
  70. <div class="dhRight">
  71. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  72. </div>
  73. </div>
  74. <div class="Content_box">
  75. <!--待处理/-->
  76. <div class="complain Shows">
  77. <div class="th-box">
  78. <div class="th-bar">
  79. <div class="seach-box">
  80. <ul>
  81. <!--<li>
  82. 部门:
  83. <select name="" id="depar" class="select_"></select>
  84. </li>-->
  85. <li>
  86. 创建时间:
  87. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  88. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  89. </li>
  90. <li>
  91. 来源:
  92. <select class="select_" id="source"></select>
  93. </li>
  94. <li>
  95. <a class="sc_btn btns db">搜索</a>
  96. <a class="sc_btn btns export">导出</a>
  97. </li>
  98. <li><span class="text-danger"
  99. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  100. </ul>
  101. </div>
  102. </div>
  103. </div>
  104. <div style="width: 100%;padding: 10px;">
  105. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  106. data-pagination="true">
  107. <thead>
  108. <tr>
  109. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  110. <th data-field="deptname" data-align="center">单位名称</th>
  111. <th data-field="handlecount" data-align="center">办理件数量</th>
  112. <th data-field="backcount" data-align="center">退回件数量</th>
  113. <th data-field="delayedcount" data-align="center">延时件数量</th>
  114. <th data-field="Overduecount" data-align="center">超期未果数量</th>
  115. </tr>
  116. </thead>
  117. </table>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <script>
  123. $(document).ready(function () {
  124. laydate.skin('blue');
  125. laydate({
  126. elem: '#startTimes',
  127. event: 'focus'
  128. });
  129. laydate({
  130. elem: '#endTimes',
  131. event: 'focus'
  132. });
  133. //导出
  134. $('.export').click(function () {
  135. dcexcel(this);
  136. })
  137. //搜索
  138. $(".db").click(function () {
  139. initTable();
  140. })
  141. //来源
  142. LY($("#source"));
  143. initTable();
  144. })
  145. function initTable() {
  146. $.ajax({
  147. url: huayi.config.callcenter_url + 'WorkOrderReport/GetAudithandling',
  148. type: 'get',
  149. data: {
  150. start: $("#startTimes").val(),
  151. end: $("#endTimes").val(),
  152. source: $("#source").val(),
  153. token: $.cookie("token")
  154. },
  155. dataType: "json",
  156. async: true,
  157. success: function (returnValue) {
  158. //异步获取数据
  159. var resultData1 = returnValue.data.Audithandling;
  160. $('#workorderlist').bootstrapTable('load', resultData1);
  161. }
  162. });
  163. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  164. striped: true
  165. });
  166. }
  167. //序号
  168. function serialNumber(val, row, index) {
  169. return index + 1;
  170. }
  171. //来源
  172. function LY(obj) {
  173. obj.empty();
  174. obj.append(
  175. '<option selected="selected" value="">请选择</option>'
  176. );
  177. $.getJSON(
  178. huayi.config.callcenter_url +
  179. "Dictionary/GetDicValueListById", {
  180. token: $.cookie("token"),
  181. id: 1,
  182. },
  183. function (data) {
  184. if (data.state.toLowerCase() == "success") {
  185. var content = data.data;
  186. $(content).each(function (i, n) {
  187. $(
  188. "<option value='" +
  189. n.F_ValueId +
  190. "'>" +
  191. n.F_Value +
  192. "</option>"
  193. ).appendTo(obj);
  194. });
  195. }
  196. }
  197. );
  198. }
  199. function dcexcel(obj) {
  200. var source = $("#source").val();
  201. var url = huayi.config.callcenter_url + "WorkOrderReport/GetAudithandling?token=" + $.cookie(
  202. "token");
  203. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  204. obj.href = url;
  205. }
  206. </script>
  207. </body>
  208. </html>