商丘12345 前端

Number_20190627.html 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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="../js/laydate/laydate.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. </style>
  53. </head>
  54. <body class="gray-bg">
  55. <div class="wrapper wrapper-content animated fadeInRight">
  56. <div class="daoHang clearfix">
  57. <div class="dhLeft">
  58. <sapn>
  59. <i class="syIcon"></i>位置:
  60. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  61. <a href="javaScript:;">业务统计</a>&gt;
  62. <a class="nowPosition">处理数量统计</a>
  63. </sapn>
  64. </div>
  65. <div class="dhRight">
  66. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  67. </div>
  68. </div>
  69. <div class="Content_box">
  70. <!--待处理/-->
  71. <div class="complain Shows">
  72. <div class="th-box">
  73. <div class="th-bar">
  74. <div class="seach-box">
  75. <ul>
  76. <li>
  77. 月份:
  78. <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" /></span>
  79. </li>
  80. <li>
  81. <a class="sc_btn btns db">搜索</a>
  82. <a class="sc_btn btns export">导出</a>
  83. </li>
  84. <li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  85. </ul>
  86. </div>
  87. </div>
  88. </div>
  89. <div style="width: 100%;padding: 10px;">
  90. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  91. <thead>
  92. <tr>
  93. <th data-field="deptname" data-align="center">单位名称</th>
  94. <th data-field="acceptcount" data-align="center">当月受理量</th>
  95. <th data-field="dealcount" data-align="center">当月处理量</th>
  96. <th data-field="beforedealcount" data-align="center">往月处理量</th>
  97. <th data-field="delaycount" data-align="center">当月延期量</th>
  98. <th data-field="beforedelaycount" data-align="center">往月延期量</th>
  99. <th data-field="reloadcount" data-align="center">当月重办量</th>
  100. <th data-field="beforereloadcount" data-align="center">往月重办量</th>
  101. <th data-field="endcount" data-align="center">当月办结量</th>
  102. <th data-field="dealrate" data-align="center">当月办理率</th>
  103. <th data-field="endrate" data-align="center">当月办结率</th>
  104. </tr>
  105. </thead>
  106. </table>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <script>
  112. $(document).ready(function () {
  113. laydate.render({
  114. theme: '#00a1cb',
  115. trigger: 'click',
  116. elem: '#monthDateTimes',
  117. format: 'yyyy-MM',
  118. type: 'month',
  119. value: new Date()
  120. });
  121. initTable();
  122. })
  123. function initTable() {
  124. $.ajax({
  125. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptMonthReport',
  126. type: 'get',
  127. data: {
  128. date: $("#monthDateTimes").val(),
  129. token: $.cookie("token")
  130. },
  131. dataType: "json",
  132. async: true,
  133. success: function (returnValue) {
  134. //异步获取数据
  135. var resultData1 = returnValue.data.DeptMonthReport;
  136. $('#workorderlist').bootstrapTable('load', resultData1);
  137. }
  138. });
  139. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
  140. }
  141. //代办搜索
  142. $(".db").click(function () {
  143. initTable();
  144. })
  145. //导出
  146. $('.export').click(function(){
  147. dcexcel(this);
  148. })
  149. function dcexcel(obj) {
  150. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
  151. url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
  152. obj.href = url;
  153. }
  154. </script>
  155. </body>
  156. </html>