Нет описания

threeworkMY.html 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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="count" data-align="center">处理总量</th>
  104. <th data-field="satisfiedcount" data-align="center">满意总量</th>
  105. <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
  106. <th data-field="satisfiedrate" data-align="center">满意度</th>
  107. </tr>
  108. </thead>
  109. </table>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <script>
  115. $(document).ready(function () {
  116. laydate.skin('blue');
  117. laydate({
  118. elem: '#startTimes',
  119. event: 'focus',
  120. istime: true,
  121. format: 'YYYY-MM-DD hh:mm:ss'
  122. });
  123. laydate({
  124. elem: '#endTimes',
  125. event: 'focus',
  126. istime: true,
  127. format: 'YYYY-MM-DD hh:mm:ss'
  128. });
  129. //来源
  130. LY($("#source"));
  131. initTable();
  132. })
  133. function initTable() {
  134. $.ajax({
  135. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDept3SatisfiedReport',
  136. type: 'get',
  137. data: {
  138. sdate: $("#startTimes").val(),
  139. edate: $("#endTimes").val(),
  140. source: $("#source").val(),
  141. token: $.cookie("token")
  142. },
  143. dataType: "json",
  144. async: true,
  145. success: function (returnValue) {
  146. if (returnValue.state.toLowerCase() === "success") {
  147. //异步获取数据
  148. var resultData1 = returnValue.data.Dept3SatisfiedReport;
  149. $('#workorderlist').bootstrapTable('load', resultData1);
  150. }
  151. }
  152. });
  153. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  154. striped: true
  155. });
  156. }
  157. //序号
  158. function serialNumber(val, row, index) {
  159. return index + 1;
  160. }
  161. //来源
  162. function LY(obj) {
  163. obj.empty();
  164. obj.append(
  165. '<option selected="selected" value="">请选择</option>'
  166. );
  167. $.getJSON(
  168. huayi.config.callcenter_url +
  169. "Dictionary/GetDicValueListById", {
  170. token: $.cookie("token"),
  171. id: 1,
  172. },
  173. function (data) {
  174. if (data.state.toLowerCase() == "success") {
  175. var content = data.data;
  176. $(content).each(function (i, n) {
  177. $(
  178. "<option value='" +
  179. n.F_ValueId +
  180. "'>" +
  181. n.F_Value +
  182. "</option>"
  183. ).appendTo(obj);
  184. });
  185. }
  186. }
  187. );
  188. }
  189. //代办搜索
  190. $(".db").click(function () {
  191. initTable();
  192. })
  193. //导出
  194. $('.export').click(function () {
  195. dcexcel(this);
  196. })
  197. function dcexcel(obj) {
  198. var source = $("#source").val();
  199. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDept3SatisfiedReport?token=" + $.cookie(
  200. "token");
  201. url += "&sdate=" + $("#startTimes").val() + "&edate=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  202. obj.href = url;
  203. }
  204. </script>
  205. </body>
  206. </html>