Нет описания

policeReport.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>归并热线每日数据统计</title>
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/select2/css/select2.min.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <style>
  12. .zxt-top {
  13. height: 60px;
  14. width: 95%;
  15. margin: 20px auto 0 auto;
  16. padding: 10px 10px;
  17. }
  18. .topCon {
  19. float: right;
  20. margin-right: 45px;
  21. }
  22. .zxt-content {
  23. width: 95%;
  24. margin: 0 auto;
  25. }
  26. .zxt-table {
  27. overflow-x: auto;
  28. }
  29. .zxt-table table {
  30. font-size: 16px;
  31. margin: 20px auto;
  32. width: 100%;
  33. max-width: 100%;
  34. background: #FFFFFF;
  35. }
  36. .table{
  37. margin-bottom: 0;
  38. border: 1px solid #6d7779;
  39. }
  40. .toolLeft input {
  41. width: 200px;
  42. }
  43. #lineTd {
  44. background: #fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCUiIHkyPSIxMDAlIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=) no-repeat 100% center;
  45. }
  46. .zjTable th{
  47. text-align: center;
  48. }
  49. .zjTable thead tr th{
  50. background: #daeef3;
  51. border: 1px solid #6d7779;
  52. }
  53. .zjTable tbody tr td{
  54. text-align: center;
  55. border: 1px solid #6d7779;
  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">110平台报表</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="toolBar clearfix">
  75. <div class="toolLeft">
  76. 开始时间:
  77. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
  78. 结束时间:
  79. <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" autocomplete="off" />
  80. <button class="btns" id="search">查询</button>
  81. <button class="btns" id="exportFile">导出</button>
  82. </div>
  83. </div>
  84. <div>
  85. <div>
  86. <p style="width: 100%;text-align: center;font-size: 28px;">12345政务热线与110报警服务平台对接工单统计表</p>
  87. <div class="table-head">
  88. <table class="table table-hover table-striped table-bordered table-condensed zjTable">
  89. <colgroup>
  90. <col style="width: 100px;" />
  91. <col/>
  92. </colgroup>
  93. <thead>
  94. <tr style="background: #daeef3;">
  95. <th id="lineTd" rowspan="2" style="width: 100px;height: 100px;background-color: #daeef3;">
  96. <span style="float:left;margin-top:20px;">时间</span>
  97. <span style="float:right;margin-top:-10px;">类别</span>
  98. </th>
  99. <th colspan="9">12345话务接听</th>
  100. <th colspan="7">110推送至12345热线</th>
  101. <th colspan="6">12345热线推送至110</th>
  102. <th rowspan="2" colspan="13" style="background: #fde9d9;">累计统计</th>
  103. </tr>
  104. <tr style="background: #daeef3;">
  105. <th colspan="2">话务情况</th>
  106. <th colspan="7">话务工单</th>
  107. <th colspan="7">查收工单</th>
  108. <th colspan="6">推送工单</th>
  109. </tr>
  110. <tr style="background: #daeef3;">
  111. <th>日期</th>
  112. <th>接听110</th>
  113. <th>回拨110</th>
  114. <th>工单数量</th>
  115. <th>当即办结</th>
  116. <th>转办工单</th>
  117. <th style="background-color: #fff2cc;">正在办理</th>
  118. <th style="background-color: #fff2cc;">超期未果</th>
  119. <th style="background-color: #fff2cc;">办结工单</th>
  120. <th style="background-color: #fff2cc;">办结率</th>
  121. <th>工单数量</th>
  122. <th>当即办结</th>
  123. <th>转办工单</th>
  124. <th style="background-color: #fff2cc;">正在办理</th>
  125. <th style="background-color: #fff2cc;">超期未果</th>
  126. <th style="background-color: #fff2cc;">办结工单</th>
  127. <th style="background-color: #fff2cc;">办结率</th>
  128. <th>工单数量</th>
  129. <th>转办工单</th>
  130. <th style="background-color: #fff2cc;">正在办理</th>
  131. <th style="background-color: #fff2cc;">超期未果</th>
  132. <th style="background-color: #fff2cc;">办结工单</th>
  133. <th style="background-color: #fff2cc;">办结率</th>
  134. <th style="background-color: #fde9d9;">工单数量</th>
  135. <th style="background-color: #fde9d9;">当即办结</th>
  136. <th style="background-color: #fde9d9;">转办工单</th>
  137. <th style="background-color: #fde9d9;">正在办理</th>
  138. <th style="background-color: #fde9d9;">超期未果</th>
  139. <th style="background-color: #fde9d9;">办结工单</th>
  140. <th style="background-color: #fde9d9;">工单转办率</th>
  141. <th style="background-color: #fde9d9;">工单办结率</th>
  142. <th style="background-color: #fde9d9;">一次不满意</th>
  143. <th style="background-color: #fde9d9;">二次不满意</th>
  144. <th style="background-color: #fde9d9;">工单满意率</th>
  145. </tr>
  146. </thead>
  147. <tbody class="zxdd">
  148. </tbody>
  149. </table>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <script src="../js/laydate/laydate.js"></script>
  155. <script>
  156. $(function () {
  157. laydate.render({
  158. elem: '#squeryTime',
  159. theme: '#00a1cb',
  160. type: 'datetime'
  161. });
  162. laydate.render({
  163. elem: '#equeryTime',
  164. theme: '#00a1cb',
  165. type: 'datetime'
  166. });
  167. initTable();
  168. //搜索
  169. $("#search").click(function () {
  170. initTable();
  171. });
  172. //按enter搜索
  173. document.onkeydown = function (e) { // 回车提交表单
  174. var theEvent = window.event || e;
  175. var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  176. if (code == 13) {
  177. initTable();
  178. }
  179. }
  180. //表格
  181. function initTable() {
  182. $(".zxdd").html('');
  183. $.ajax({
  184. type: "get",
  185. dataType: "json",
  186. url: huayi.config.callcenter_url + "WorkOrderReport/GetSecurityReport",
  187. async: true,
  188. data: {
  189. token: $.cookie("token"),
  190. sdate: $("#squeryTime").val(),
  191. edate: $('#equeryTime').val(),
  192. isdc: 0
  193. },
  194. success: function (data) {
  195. /*验证请求*/
  196. if(data.state == "success") {
  197. var content = data.data.ReportData;
  198. for(var i = 0; i < content.length; i++) {
  199. $("<tr><td style='width: 107px;'>" + content[i].timedate + "</td><td>" +
  200. content[i].answer + "</td><td>"+
  201. content[i].back + "</td><td>" + content[i].hwcount + "</td><td>"+
  202. content[i].hwquickly + "</td><td>" + content[i].hwtransfer + "</td><td>" +
  203. content[i].hwhandle + "</td><td>" + content[i].hwoverdue + "</td><td>" +
  204. content[i].hwCompletion + "</td><td>" + content[i].hwCompletionrate + "</td><td>" +
  205. content[i].cscount + "</td><td>" + content[i].csquickly + "</td><td>" +
  206. content[i].cstransfer + "</td><td>" + content[i].cshandle + "</td><td>" +
  207. content[i].csoverdue + "</td><td>" + content[i].csCompletion + "</td><td>" +
  208. content[i].csCompletionrate + "</td><td>" +
  209. content[i].tscount + "</td><td>" +
  210. content[i].tstransfer + "</td><td>" + content[i].tshandle + "</td><td>" +
  211. content[i].tsoverdue + "</td><td>" + content[i].tsover + "</td><td>" +
  212. content[i].tshandlerate + "</td><td>" +
  213. content[i].total + "</td><td>" + content[i].totalquickly + "</td><td>" +
  214. content[i].totaltransfer + "</td><td>" + content[i].talhandle + "</td><td>" +
  215. content[i].totaloverdue + "</td><td>" + content[i].endtotal + "</td><td>"+
  216. content[i].transferrate + "</td><td>" +
  217. content[i].endrate + "</td><td>" + content[i].one + "</td><td>" +
  218. content[i].two + "</td><td>" + content[i].myd + "</td>" +
  219. "<tr>").appendTo(".zxdd");
  220. }
  221. }
  222. }
  223. });
  224. }
  225. //导出
  226. $("#exportFile").click(function () {
  227. var starttime = $("#squeryTime").val();
  228. var endtime = $('#equeryTime').val();
  229. var url = huayi.config.callcenter_url + "WorkOrderReport/GetSecurityReport?token=" + $.cookie(
  230. "token");
  231. url += "&sdate=" + starttime + "&edate=" + endtime + "&isdc=1";
  232. window.location.href = url;
  233. });
  234. })
  235. </script>
  236. </body>
  237. </html>