Aucune description

incomingReport.html 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. .seach-box input {
  54. width: 200px;
  55. height: 34px;
  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. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />
  84. </li>
  85. <li>
  86. <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
  87. <a class="sc_btn btns export">导出</a>
  88. </li>
  89. <li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前日的信息</span></li>
  90. </ul>
  91. </div>
  92. </div>
  93. </div>
  94. <div style="width: 100%;padding: 10px;">
  95. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams">
  96. <thead>
  97. <tr>
  98. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  99. <th data-field="time" data-align="center">时间段</th>
  100. <th data-field="newIncomingCount" data-align="center">来电总量</th>
  101. <th data-field="newOncapacity" data-align="center">接听总量</th>
  102. <th data-field="IncomingCount" data-align="center">12345来电量</th>
  103. <th data-field="Oncapacity" data-align="center">12345接听量</th>
  104. <th data-field="newseatsCount" data-align="center">专线坐席个数</th>
  105. <th data-field="newseats" data-align="center">专线坐席姓名</th>
  106. <th data-field="seatsCount" data-align="center">12345坐席个数</th>
  107. <th data-field="seats" data-align="center">12345坐席姓名</th>
  108. </tr>
  109. </thead>
  110. </table>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <script>
  116. $(document).ready(function () {
  117. laydate.skin('blue');
  118. laydate({
  119. elem: '#startTimes',
  120. event: 'focus',
  121. format: 'YYYY-MM-DD'
  122. });
  123. initTable();
  124. })
  125. function initTable() {
  126. $.ajax({
  127. url: huayi.config.callcenter_url + 'WorkOrderReport/IncomingCalls',
  128. type: 'get',
  129. data: {
  130. date: $("#startTimes").val(),
  131. token: $.cookie("token")
  132. },
  133. dataType: "json",
  134. async: true,
  135. success: function (returnValue) {
  136. //异步获取数据
  137. var resultData1 = returnValue.data;
  138. $('#workorderlist').bootstrapTable('load', resultData1);
  139. }
  140. });
  141. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  142. striped: true
  143. });
  144. }
  145. //序号
  146. function serialNumber(val, row, index) {
  147. return index + 1;
  148. }
  149. //代办搜索
  150. $(".db").click(function () {
  151. initTable();
  152. })
  153. //导出
  154. $('.export').click(function () {
  155. dcexcel(this);
  156. })
  157. function dcexcel(obj) {
  158. var url = huayi.config.callcenter_url + "WorkOrderReport/IncomingCalls?token=" + $.cookie("token");
  159. url += "&date=" + $("#startTimes").val()+ "&isdc=1";
  160. obj.href = url;
  161. }
  162. </script>
  163. </body>
  164. </html>