説明なし

ZX.html 10.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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 id="starttime" class="photo x-color laydate-icon" type="text"
  90. autocomplete="off" style="height: 35px;" />-<input id="endtime"
  91. class="photo x-color laydate-icon" type="text" autocomplete="off"
  92. style="height: 35px;" />
  93. </li>
  94. <li>
  95. 坐席组:
  96. <select class="select_" id="agentGroup">
  97. <option value="">请选择</option>
  98. </select>
  99. </li>
  100. <!-- <li>
  101. 来源:
  102. <select class="select_" id="source"></select>
  103. </li> -->
  104. <li>
  105. <a class="sc_btn btns db">搜索</a>
  106. <a class="sc_btn btns export">导出</a>
  107. </li>
  108. <li><span class="text-danger"
  109. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. <div style="width: 100%;padding: 10px;">
  115. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  116. data-pagination="true">
  117. <thead>
  118. <tr>
  119. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  120. <th data-field="username" data-align="center">姓名</th>
  121. <th data-field="telcount" data-align="center">接听量</th>
  122. <th data-field="telhandcount" data-align="center">通话成单量</th>
  123. <th data-field="handcount" data-align="center">手动录单量</th>
  124. <th data-field="endcount" data-align="center">当即办理量</th>
  125. <th data-field="turncount" data-align="center">网络转办量</th>
  126. <th data-field="visitcount" data-align="center">回访量</th>
  127. <th data-field="hccount" data-align="center">呼出量</th>
  128. </tr>
  129. </thead>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <!-- <script src="../js/laydate/laydate.js"></script> -->
  136. <script src="../css/laydate/laydate.js"></script>
  137. <script>
  138. $(document).ready(function () {
  139. laydate.skin('blue');
  140. laydate({
  141. elem: '#starttime',
  142. event: 'focus',
  143. istime: true,
  144. format: 'YYYY-MM-DD hh:mm:ss'
  145. });
  146. laydate({
  147. elem: '#endtime',
  148. event: 'focus',
  149. istime: true,
  150. format: 'YYYY-MM-DD hh:mm:ss'
  151. });
  152. //导出
  153. $('.export').click(function () {
  154. dcexcel(this);
  155. })
  156. //搜索
  157. $(".db").click(function () {
  158. initTable();
  159. })
  160. //来源
  161. // LY($("#source"));
  162. //获取坐席组
  163. getAgentGroup($("#agentGroup"));
  164. initTable();
  165. })
  166. function initTable() {
  167. $.ajax({
  168. url: huayi.config.callcenter_url + 'WorkOrderReport/GetUserAccountAssessment',
  169. type: 'get',
  170. data: {
  171. start: $("#starttime").val(),
  172. end: $("#endtime").val(),
  173. // source: $("#source").val(),
  174. name: $("#agentGroup").val(),
  175. token: $.cookie("token")
  176. },
  177. dataType: "json",
  178. async: true,
  179. success: function (returnValue) {
  180. //异步获取数据
  181. var resultData1 = returnValue.data.UserAssessmentReport;
  182. $('#workorderlist').bootstrapTable('load', resultData1);
  183. }
  184. });
  185. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  186. striped: true
  187. });
  188. }
  189. //序号
  190. function serialNumber(val, row, index) {
  191. return index + 1;
  192. }
  193. //来源
  194. function LY(obj) {
  195. obj.empty();
  196. obj.append(
  197. '<option selected="selected" value="">请选择</option>'
  198. );
  199. $.getJSON(
  200. huayi.config.callcenter_url +
  201. "Dictionary/GetDicValueListById", {
  202. token: $.cookie("token"),
  203. id: 1,
  204. },
  205. function (data) {
  206. if (data.state.toLowerCase() == "success") {
  207. var content = data.data;
  208. $(content).each(function (i, n) {
  209. $(
  210. "<option value='" +
  211. n.F_ValueId +
  212. "'>" +
  213. n.F_Value +
  214. "</option>"
  215. ).appendTo(obj);
  216. });
  217. }
  218. }
  219. );
  220. }
  221. // 坐席
  222. function getAgentGroup(obj) {
  223. obj.empty();
  224. obj.append(
  225. '<option selected="selected" value="">请选择</option>'
  226. );
  227. $.getJSON(
  228. huayi.config.callcenter_url +
  229. "Dictionary/GetDicValueListById", {
  230. token: $.cookie("token"),
  231. id: 2522,
  232. },
  233. function (data) {
  234. if (data.state.toLowerCase() == "success") {
  235. var content = data.data;
  236. $(content).each(function (i, n) {
  237. $(
  238. "<option value='" +
  239. n.F_Value +
  240. "'>" +
  241. n.F_Value +
  242. "</option>"
  243. ).appendTo(obj);
  244. });
  245. }
  246. }
  247. );
  248. }
  249. function dcexcel(obj) {
  250. var start = $("#starttime").val();
  251. var end = $("#endtime").val();
  252. // var source = $("#source").val();
  253. var name = $("#agentGroup").val();
  254. var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie(
  255. "token");
  256. url += "&start=" + start + "&end=" + end + "&name=" + name +
  257. // "&source=" + source +
  258. "&isExport=true";
  259. obj.href = url;
  260. }
  261. </script>
  262. </body>
  263. </html>