Ei kuvausta

Number.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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="../js/laydate/laydate.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. .seach-box ul li select {
  54. height: 32px;
  55. line-height: 32px;
  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. <span class="time-box"><i class="tub fa fa-calendar"></i>
  84. <!--<input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" />-->
  85. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  86. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  87. </span>
  88. </li>
  89. <li>
  90. 办理单位:
  91. <select name="" id="BLDW" class="select_">
  92. <option value="">请选择</option>
  93. <option value="1">二级单位</option>
  94. <option value="2">三级单位</option>
  95. </select>
  96. </li>
  97. <li>
  98. 来源:
  99. <select class="select_" id="source"></select>
  100. </li>
  101. <li>
  102. <a class="sc_btn btns db">搜索</a>
  103. <a class="sc_btn btns export">导出</a>
  104. </li>
  105. <li><span class="text-danger"
  106. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  107. </ul>
  108. </div>
  109. </div>
  110. </div>
  111. <div style="width: 100%;padding: 10px;">
  112. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  113. data-pagination="true">
  114. <thead>
  115. <tr>
  116. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  117. <th data-field="deptname" data-align="center">单位名称</th>
  118. <th data-field="acceptcount" data-align="center">受理量</th>
  119. <th data-field="dealcount" data-align="center">处理量</th>
  120. <th data-field="delaycount" data-align="center">延期量</th>
  121. <th data-field="reloadcount" data-align="center">重办量</th>
  122. <th data-field="endcount" data-align="center">办结量</th>
  123. <th data-field="dealrate" data-align="center">办理率</th>
  124. <th data-field="endrate" data-align="center">办结率</th>
  125. <!--<th data-field="deptname" data-align="center">单位名称</th>
  126. <th data-field="acceptcount" data-align="center">当月受理量</th>
  127. <th data-field="dealcount" data-align="center">当月处理量</th>
  128. <th data-field="beforedealcount" data-align="center">往月处理量</th>
  129. <th data-field="delaycount" data-align="center">当月延期量</th>
  130. <th data-field="beforedelaycount" data-align="center">往月延期量</th>
  131. <th data-field="reloadcount" data-align="center">当月重办量</th>
  132. <th data-field="beforereloadcount" data-align="center">往月重办量</th>
  133. <th data-field="endcount" data-align="center">当月办结量</th>
  134. <th data-field="dealrate" data-align="center">当月办理率</th>
  135. <th data-field="endrate" data-align="center">当月办结率</th>-->
  136. </tr>
  137. </thead>
  138. </table>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <script>
  144. $(document).ready(function () {
  145. laydate.skin('blue');
  146. laydate({
  147. elem: '#startTimes',
  148. event: 'focus',
  149. });
  150. laydate({
  151. elem: '#endTimes',
  152. event: 'focus',
  153. });
  154. //laydate.render({
  155. // theme: '#00a1cb',
  156. // trigger: 'click',
  157. // elem: '#monthDateTimes',
  158. // format: 'yyyy-MM',
  159. // type: 'month',
  160. // value: new Date()
  161. //});
  162. //来源
  163. LY($("#source"));
  164. initTable();
  165. })
  166. function initTable() {
  167. $.ajax({
  168. //url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptMonthReport',
  169. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptDayReport',
  170. type: 'get',
  171. data: {
  172. sdate: $("#startTimes").val(),
  173. isdept: $("#BLDW").val(),
  174. edate: $("#endTimes").val(),
  175. source: $("#source").val(),
  176. //date: $("#monthDateTimes").val(),
  177. token: $.cookie("token")
  178. },
  179. dataType: "json",
  180. async: true,
  181. success: function (returnValue) {
  182. //异步获取数据
  183. var resultData1 = returnValue.data.DeptDayReport;
  184. $('#workorderlist').bootstrapTable('load', resultData1);
  185. }
  186. });
  187. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  188. striped: true
  189. });
  190. }
  191. //序号
  192. function serialNumber(val, row, index) {
  193. return index + 1;
  194. }
  195. //来源
  196. function LY(obj) {
  197. obj.empty();
  198. obj.append(
  199. '<option selected="selected" value="">请选择</option>'
  200. );
  201. $.getJSON(
  202. huayi.config.callcenter_url +
  203. "Dictionary/GetDicValueListById", {
  204. token: $.cookie("token"),
  205. id: 1,
  206. },
  207. function (data) {
  208. if (data.state.toLowerCase() == "success") {
  209. var content = data.data;
  210. $(content).each(function (i, n) {
  211. $(
  212. "<option value='" +
  213. n.F_ValueId +
  214. "'>" +
  215. n.F_Value +
  216. "</option>"
  217. ).appendTo(obj);
  218. });
  219. }
  220. }
  221. );
  222. }
  223. //代办搜索
  224. $(".db").click(function () {
  225. initTable();
  226. })
  227. //导出
  228. $('.export').click(function () {
  229. dcexcel(this);
  230. })
  231. function dcexcel(obj) {
  232. var source = $("#source").val();
  233. //var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
  234. //url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
  235. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptDayReport?token=" + $.cookie("token");
  236. url += "&sdate=" + $("#startTimes").val() + "&edate=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  237. obj.href = url;
  238. }
  239. </script>
  240. </body>
  241. </html>