Нет описания

ZX.html 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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="../My97DatePicker/WdatePicker.js"></script>
  13. <style>
  14. table td {
  15. word-break: break-all;
  16. word-wrap: break-word;
  17. }
  18. .ld-service li {
  19. float: left;
  20. font-size: 14px;
  21. color: #000;
  22. padding: 5px 15px;
  23. cursor: pointer;
  24. border-bottom: 1px solid #ccc;
  25. }
  26. .cr-click {
  27. border: 1px solid #ccc;
  28. background-color: #fff;
  29. border-bottom: none !important;
  30. border-bottom-left-radius: 5px;
  31. border-bottom-right-radius: 5px;
  32. }
  33. .Shows {
  34. display: block !important;
  35. }
  36. .complain {
  37. display: none;
  38. }
  39. th {
  40. padding: 5px;
  41. text-align: center;
  42. }
  43. td {
  44. padding: 5px;
  45. }
  46. .Borders {
  47. border: 1px solid #d7d7d7;
  48. }
  49. .cx {
  50. display: block;
  51. }
  52. #list thead th {
  53. background: #01a1cb;
  54. color: #fff;
  55. }
  56. #startTimes {
  57. width: 400px;
  58. }
  59. </style>
  60. </head>
  61. <body class="gray-bg">
  62. <div class="wrapper wrapper-content animated fadeInRight">
  63. <div class="daoHang clearfix">
  64. <div class="dhLeft">
  65. <sapn>
  66. <i class="syIcon"></i>位置:
  67. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  68. <a href="javaScript:;">业务统计</a>&gt;
  69. <a href="" class="nowPosition">坐席工作统计</a>
  70. </sapn>
  71. </div>
  72. <div class="dhRight">
  73. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  74. </div>
  75. </div>
  76. <div class="Content_box">
  77. <!--待处理/-->
  78. <div class="complain Shows">
  79. <div class="th-box">
  80. <div class="th-bar">
  81. <div class="seach-box">
  82. <ul>
  83. <!--<li>
  84. 部门:
  85. <select name="" id="depar" class="select_"></select>
  86. </li>-->
  87. <li>
  88. 创建时间:
  89. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />
  90. <!-- <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" /> -->
  91. </li>
  92. <li>
  93. <a class="sc_btn btns db">搜索</a>
  94. <a class="sc_btn btns export">导出</a>
  95. </li>
  96. <li><span class="text-danger"
  97. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  98. </ul>
  99. </div>
  100. </div>
  101. </div>
  102. <div style="width: 100%;padding: 10px;">
  103. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  104. data-pagination="true">
  105. <thead>
  106. <tr>
  107. <th data-field="username" data-align="center">姓名</th>
  108. <th data-field="telcount" data-align="center">接听量</th>
  109. <th data-field="telhandcount" data-align="center">通话成单量</th>
  110. <th data-field="handcount" data-align="center">手动录单量</th>
  111. <th data-field="endcount" data-align="center">当即办理量</th>
  112. <th data-field="turncount" data-align="center">网络转办量</th>
  113. <th data-field="visitcount" data-align="center">回访量</th>
  114. </tr>
  115. </thead>
  116. </table>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <script src="../js/laydate/laydate.js"></script>
  122. <script>
  123. $(document).ready(function () {
  124. laydate.render({
  125. elem: "#startTimes", //指定元素
  126. type: "datetime",
  127. range: "~",
  128. });
  129. //导出
  130. $('.export').click(function () {
  131. dcexcel(this);
  132. })
  133. //搜索
  134. $(".db").click(function () {
  135. initTable();
  136. })
  137. initTable();
  138. })
  139. function initTable() {
  140. $.ajax({
  141. url: huayi.config.callcenter_url + 'WorkOrderReport/GetUserAccountAssessment',
  142. type: 'get',
  143. data: {
  144. start: $("#startTimes").val() &&
  145. $("#startTimes").val().split(" ~ ")[0],
  146. end: $("#startTimes").val() &&
  147. $("#startTimes").val().split(" ~ ")[1],
  148. token: $.cookie("token")
  149. },
  150. dataType: "json",
  151. async: true,
  152. success: function (returnValue) {
  153. //异步获取数据
  154. var resultData1 = returnValue.data.UserAssessmentReport;
  155. $('#workorderlist').bootstrapTable('load', resultData1);
  156. }
  157. });
  158. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  159. striped: true
  160. });
  161. }
  162. function dcexcel(obj) {
  163. var start = $("#startTimes").val() &&
  164. $("#startTimes").val().split(" ~ ")[0]
  165. var end = $("#startTimes").val() &&
  166. $("#startTimes").val().split(" ~ ")[1]
  167. var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie(
  168. "token");
  169. url += "&start=" + start + "&end=" + end + "&isExport=true";
  170. obj.href = url;
  171. }
  172. </script>
  173. </body>
  174. </html>