Brak opisu

dispatchingWorkStatistics.html 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. #list tbody tr td {
  58. text-align: center;
  59. }
  60. #list tfoot tr td {
  61. text-align: center;
  62. }
  63. </style>
  64. </head>
  65. <body class="gray-bg">
  66. <div class="wrapper wrapper-content animated fadeInRight">
  67. <div class="daoHang clearfix">
  68. <div class="dhLeft">
  69. <sapn>
  70. <i class="syIcon"></i>位置:
  71. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  72. <a href="javaScript:;">业务统计</a>&gt;
  73. <a href="" class="nowPosition">调度工作统计</a>
  74. </sapn>
  75. </div>
  76. <div class="dhRight">
  77. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  78. </div>
  79. </div>
  80. <div class="Content_box">
  81. <!--待处理/-->
  82. <div class="complain Shows">
  83. <div class="th-box">
  84. <div class="th-bar">
  85. <div class="seach-box">
  86. <ul>
  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. 来源:
  94. <select class="select_" id="source"></select>
  95. </li>
  96. <li>
  97. <a class="sc_btn btns db">搜索</a>
  98. <a class="sc_btn btns export" id="exportDispathingWorks">导出</a>
  99. </li>
  100. <li><span class="text-danger"
  101. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  102. </ul>
  103. </div>
  104. </div>
  105. </div>
  106. <div style="width: 100%;padding: 10px;">
  107. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  108. data-pagination="true">
  109. <thead>
  110. <tr>
  111. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  112. <th data-field="username" data-align="center">姓名</th>
  113. <th data-field="returncount" data-align="center">回退量</th>
  114. <th data-field="assigncount" data-align="center">交办量</th>
  115. <th data-field="backauditcount" data-align="center">退回审核量</th>
  116. <th data-field="delayauditcount" data-align="center">延时审核量</th>
  117. <th data-field="reloadcount" data-align="center">重办量</th>
  118. <th data-field="endcount" data-align="center">结案量</th>
  119. </tr>
  120. </thead>
  121. </table>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <script>
  127. $(document).ready(function () {
  128. laydate.skin('blue');
  129. laydate({
  130. elem: '#startTimes',
  131. event: 'focus'
  132. });
  133. laydate({
  134. elem: '#endTimes',
  135. event: 'focus'
  136. });
  137. //来源
  138. LY($("#source"));
  139. initTable();
  140. });
  141. function initTable() {
  142. $.ajax({
  143. url: huayi.config.callcenter_url + 'WorkOrderReport/GetWorkLoad',
  144. type: 'get',
  145. data: {
  146. start: $("#startTimes").val(),
  147. end: $("#endTimes").val(),
  148. source: $("#source").val(),
  149. token: $.cookie("token")
  150. },
  151. dataType: "json",
  152. async: true,
  153. success: function (returnValue) {
  154. //异步获取数据
  155. var resultData1 = returnValue.data.LeaderAssessmentReport;
  156. $('#workorderlist').bootstrapTable('load', resultData1);
  157. }
  158. });
  159. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  160. striped: true
  161. });
  162. }
  163. //序号
  164. function serialNumber(val, row, index) {
  165. return index + 1;
  166. }
  167. //来源
  168. function LY(obj) {
  169. obj.empty();
  170. obj.append(
  171. '<option selected="selected" value="">请选择</option>'
  172. );
  173. $.getJSON(
  174. huayi.config.callcenter_url +
  175. "Dictionary/GetDicValueListById", {
  176. token: $.cookie("token"),
  177. id: 1,
  178. },
  179. function (data) {
  180. if (data.state.toLowerCase() == "success") {
  181. var content = data.data;
  182. $(content).each(function (i, n) {
  183. $(
  184. "<option value='" +
  185. n.F_ValueId +
  186. "'>" +
  187. n.F_Value +
  188. "</option>"
  189. ).appendTo(obj);
  190. });
  191. }
  192. }
  193. );
  194. }
  195. //导出
  196. $('#exportDispathingWorks').click(function () {
  197. dcexcelDispathing(this);
  198. })
  199. function dcexcelDispathing(obj) {
  200. var source = $("#source").val();
  201. var url = huayi.config.callcenter_url + "WorkOrderReport/GetWorkLoad?token=" + $.cookie("token");
  202. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  203. //debugger;
  204. obj.href = url;
  205. }
  206. //搜索
  207. $(".db").click(function () {
  208. initTable();
  209. })
  210. </script>
  211. </body>
  212. </html>