12345市长热线标准版-前端

ZX.html 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 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. <!--<select name="" id="" class="select_"></select>-->
  85. </li>
  86. <li>
  87. 创建时间:
  88. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  89. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  90. </li>
  91. <li>
  92. <a class="sc_btn btns db">搜索</a>
  93. <a class="sc_btn btns export">导出</a>
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. </div>
  99. <div style="width: 100%;padding: 10px;">
  100. <table id="list" class="table table-hover table-striped table-bordered table-condensed">
  101. <thead>
  102. <tr>
  103. <th>单位名称</th>
  104. <th>坐席</th>
  105. <th>手动录单量</th>
  106. <th>通话成单量</th>
  107. <th>当即办理量</th>
  108. <th>交办量</th>
  109. <th>已办量</th>
  110. <th>回访量</th>
  111. <th>市民满意</th>
  112. <th>市民不满意</th>
  113. </tr>
  114. </thead>
  115. <tbody></tbody>
  116. <tfoot>
  117. </tfoot>
  118. </table>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <script>
  124. var keys;
  125. var start;
  126. var end;
  127. var deptId;
  128. var isExport;//
  129. $(document).ready(function () {
  130. //返回首页
  131. $('#ReIndex').click(function(){
  132. top.home_index();
  133. })
  134. laydate.skin('blue');
  135. laydate({
  136. elem: '#startTimes',
  137. event: 'focus'
  138. });
  139. laydate({
  140. elem: '#endTimes',
  141. event: 'focus'
  142. });
  143. $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { token: $.cookie("token") }, function (result) {
  144. if (result.state.toLowerCase() == "success") {
  145. seatlist = result.data;
  146. bindseat($("#depar"));
  147. }
  148. });
  149. function bindseat(obj) {
  150. obj.empty();
  151. obj.append('<option value="">全部</option>');
  152. $(seatlist).each(function (i, n) {
  153. obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
  154. })
  155. }
  156. })
  157. Ajax();
  158. //导出
  159. $('.export').click(function(){
  160. dcexcel(this);
  161. })
  162. function dcexcel(obj) {
  163. var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie("token");
  164. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val()+ "&deptId=" + $("#depar").val()+ "&isExport=true";
  165. obj.href = url;
  166. }
  167. //搜索
  168. $(".db").click(function () {
  169. start=$('#startTimes').val();
  170. end=$('#endTimes').val();
  171. deptId=$('#depar').val();
  172. Ajax(start,end,deptId);
  173. })
  174. function Ajax(start,end,deptId){
  175. $('#list tbody').html('');
  176. $('#list tfoot').html('');
  177. $.ajax({
  178. type:"get",
  179. url:huayi.config.callcenter_url+"WorkOrderReport/GetUserAccountAssessment",
  180. async:true,
  181. dataType:'json',
  182. data:{
  183. token:$.cookie("token"),
  184. start:start,
  185. end:end,
  186. deptId:deptId
  187. },
  188. success:function(data){
  189. var tbody=data.data.list;
  190. var tfoot=data.data.total;
  191. if(data.state.toLowerCase()=='success'){
  192. $(tbody).each(function(i,n){
  193. $('<tr>'+
  194. '<td>'+ n.detpname +'</td>'+
  195. '<td>'+ n.useraccount +'</td>'+
  196. '<td>'+ n.manualcount +'</td>'+
  197. '<td>'+ n.talkcount +'</td>'+
  198. '<td>'+ n.immecount +'</td>'+
  199. '<td>'+ n.assignedcount +'</td>'+
  200. '<td>'+ n.completedcount +'</td>'+
  201. '<td>'+ n.visitcount +'</td>'+
  202. '<td>'+ n.satisfiedrate +'</td>'+
  203. '<td>'+ n.notsatisfiedrate +'</td>'+
  204. '</tr>').appendTo('#list tbody')
  205. })
  206. $(tfoot).each(function(i,n){
  207. $('<tr>'+
  208. '<td colspan="2" style="text-align: center;">总计</td>'+
  209. '<td>'+ n.manualcount +'</td>'+
  210. '<td>'+ n.talkcount +'</td>'+
  211. '<td>'+ n.immecount +'</td>'+
  212. '<td>'+ n.assignedcount +'</td>'+
  213. '<td>'+ n.completedcount +'</td>'+
  214. '<td>'+ n.visitcount +'</td>'+
  215. '<td>'+ n.satisfiedrate +'</td>'+
  216. '<td>'+ n.notsatisfiedrate +'</td>'+
  217. '</tr>').appendTo('#list tfoot')
  218. })
  219. }
  220. }
  221. });
  222. }
  223. </script>
  224. </body>
  225. </html>