Нет описания

GX.html 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. </style>
  54. </head>
  55. <body class="gray-bg">
  56. <div class="wrapper wrapper-content animated fadeInRight">
  57. <div class="daoHang clearfix">
  58. <div class="dhLeft">
  59. <sapn>
  60. <i class="syIcon"></i>位置:
  61. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  62. <a href="javaScript:;">业务统计</a>&gt;
  63. <a href="" class="nowPosition">办理效率统计</a>
  64. </sapn>
  65. </div>
  66. <div class="dhRight">
  67. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  68. </div>
  69. </div>
  70. <div class="Content_box">
  71. <!--待处理/-->
  72. <div class="complain Shows">
  73. <div class="th-box">
  74. <div class="th-bar">
  75. <div class="seach-box">
  76. <ul>
  77. <li>
  78. 创建时间:
  79. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
  80. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
  81. </li>
  82. <li>
  83. 来源:
  84. <select class="select_" id="source"></select>
  85. </li>
  86. <li>
  87. <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
  88. <a class="sc_btn btns export">导出</a>
  89. </li>
  90. <li><span class="text-danger"
  91. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. <div style="width: 100%;padding: 10px;">
  97. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  98. data-pagination="true">
  99. <thead>
  100. <tr>
  101. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  102. <th data-field="deptname" data-align="center">单位名称</th>
  103. <th data-field="completedcount" data-align="center">办理总量</th>
  104. <th data-field="timelycount" data-align="center">及时量</th>
  105. <th data-field="timeoutcount" data-align="center">延时量</th>
  106. <th data-field="timelyrate" data-align="center">及时办理率</th>
  107. </tr>
  108. </thead>
  109. </table>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <script>
  115. initTable();
  116. var keys;
  117. $(document).ready(function () {
  118. laydate.skin('blue');
  119. laydate({
  120. elem: '#startTimes',
  121. event: 'focus',
  122. istime: true,
  123. format: 'YYYY-MM-DD hh:mm:ss'
  124. });
  125. laydate({
  126. elem: '#endTimes',
  127. event: 'focus',
  128. istime: true,
  129. format: 'YYYY-MM-DD hh:mm:ss'
  130. });
  131. LY($("#source"));
  132. initTable();
  133. })
  134. function initTable() {
  135. $.ajax({
  136. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptEfficiency',
  137. type: 'get',
  138. data: {
  139. start: $("#startTimes").val(),
  140. end: $("#endTimes").val(),
  141. source: $("#source").val(),
  142. token: $.cookie("token")
  143. },
  144. dataType: "json",
  145. async: true,
  146. success: function (returnValue) {
  147. //异步获取数据
  148. var resultData1 = returnValue.data.DeptEfficiencyReport;
  149. $('#workorderlist').bootstrapTable('load', resultData1);
  150. }
  151. });
  152. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  153. striped: true
  154. });
  155. }
  156. //序号
  157. function serialNumber(val, row, index) {
  158. return index + 1;
  159. }
  160. ////表格一
  161. //function initTable(keys) {
  162. // //先销毁表格
  163. // $('#workorderlist').bootstrapTable('destroy');
  164. // //初始化表格,动态从服务器加载数据
  165. // $("#workorderlist").bootstrapTable({
  166. // method: "get", //使用get请求到服务器获取数据
  167. // url: huayi.config.callcenter_url + "WorkOrderReport/GetDeptEfficiency",
  168. // contentType: "application/x-www-form-urlencoded", striped: true, //表格显示条纹
  169. // pagination: true, //启动分页
  170. // pageSize: 10, //每页显示的记录数
  171. // pageNumber: 1, //当前第几页
  172. // pageList: [10, 20, 50, 100], //记录数可选列表
  173. // search: false, //是否启用查询
  174. // showColumns: false, //显示下拉框勾选要显示的列
  175. // showRefresh: false, //显示刷新按钮
  176. // sidePagination: "server", //表示服务端请求
  177. // //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  178. // //设置为limit可以获取limit, offset, search, sort, order
  179. // queryParamsType: "undefined",
  180. // queryParams: function queryParams(params) { //设置查询参数
  181. // var param = {
  182. // pageIndex: params.pageNumber,
  183. // pageSize: params.pageSize,
  184. // start: $("#startTimes").val(),
  185. // end: $("#endTimes").val(),
  186. // token: $.cookie("token")
  187. // };
  188. // return param;
  189. // },
  190. // onLoadSuccess: function () { //加载成功时执行
  191. // //layer.msg("加载成功");
  192. // },
  193. // onLoadError: function () { //加载失败时执行
  194. // //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  195. // }
  196. // });
  197. //}
  198. //来源
  199. function LY(obj) {
  200. obj.empty();
  201. obj.append(
  202. '<option selected="selected" value="">请选择</option>'
  203. );
  204. $.getJSON(
  205. huayi.config.callcenter_url +
  206. "Dictionary/GetDicValueListById", {
  207. token: $.cookie("token"),
  208. id: 1,
  209. },
  210. function (data) {
  211. if (data.state.toLowerCase() == "success") {
  212. var content = data.data;
  213. $(content).each(function (i, n) {
  214. $(
  215. "<option value='" +
  216. n.F_ValueId +
  217. "'>" +
  218. n.F_Value +
  219. "</option>"
  220. ).appendTo(obj);
  221. });
  222. }
  223. }
  224. );
  225. }
  226. //代办搜索
  227. $(".db").click(function () {
  228. initTable();
  229. })
  230. //导出
  231. $('.export').click(function () {
  232. dcexcel(this);
  233. })
  234. function dcexcel(obj) {
  235. var source = $("#source").val();
  236. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptEfficiency?token=" + $.cookie("token");
  237. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  238. obj.href = url;
  239. }
  240. </script>
  241. </body>
  242. </html>