Nessuna descrizione

Number.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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" autocomplete="off" />-
  86. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
  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. istime: true,
  150. format: 'YYYY-MM-DD hh:mm:ss'
  151. });
  152. laydate({
  153. elem: '#endTimes',
  154. event: 'focus',
  155. istime: true,
  156. format: 'YYYY-MM-DD hh:mm:ss'
  157. });
  158. //laydate.render({
  159. // theme: '#00a1cb',
  160. // trigger: 'click',
  161. // elem: '#monthDateTimes',
  162. // format: 'yyyy-MM',
  163. // type: 'month',
  164. // value: new Date()
  165. //});
  166. //来源
  167. LY($("#source"));
  168. initTable();
  169. })
  170. function initTable() {
  171. $.ajax({
  172. //url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptMonthReport',
  173. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptDayReport',
  174. type: 'get',
  175. data: {
  176. sdate: $("#startTimes").val(),
  177. isdept: $("#BLDW").val(),
  178. edate: $("#endTimes").val(),
  179. source: $("#source").val(),
  180. //date: $("#monthDateTimes").val(),
  181. token: $.cookie("token")
  182. },
  183. dataType: "json",
  184. async: true,
  185. success: function (returnValue) {
  186. //异步获取数据
  187. var resultData1 = returnValue.data.DeptDayReport;
  188. $('#workorderlist').bootstrapTable('load', resultData1);
  189. }
  190. });
  191. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  192. striped: true
  193. });
  194. }
  195. //序号
  196. function serialNumber(val, row, index) {
  197. return index + 1;
  198. }
  199. //来源
  200. function LY(obj) {
  201. obj.empty();
  202. obj.append(
  203. '<option selected="selected" value="">请选择</option>'
  204. );
  205. $.getJSON(
  206. huayi.config.callcenter_url +
  207. "Dictionary/GetDicValueListById", {
  208. token: $.cookie("token"),
  209. id: 1,
  210. },
  211. function (data) {
  212. if (data.state.toLowerCase() == "success") {
  213. var content = data.data;
  214. $(content).each(function (i, n) {
  215. $(
  216. "<option value='" +
  217. n.F_ValueId +
  218. "'>" +
  219. n.F_Value +
  220. "</option>"
  221. ).appendTo(obj);
  222. });
  223. }
  224. }
  225. );
  226. }
  227. //代办搜索
  228. $(".db").click(function () {
  229. initTable();
  230. })
  231. //导出
  232. $('.export').click(function () {
  233. dcexcel(this);
  234. })
  235. function dcexcel(obj) {
  236. var source = $("#source").val();
  237. //var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
  238. //url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
  239. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptDayReport?token=" + $.cookie("token");
  240. url += "&sdate=" + $("#startTimes").val() + "&edate=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  241. obj.href = url;
  242. }
  243. </script>
  244. </body>
  245. </html>