Açıklama Yok

treatmentEffeciency.html 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 href="../css/reportCommon/Search.css" rel="stylesheet">
  10. <link href="../css/reportCommon/common.css" rel="stylesheet">
  11. <link rel="stylesheet" href="../css/bootstrap-select.css" />
  12. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  13. <link href="../css/init.css" rel="stylesheet" />
  14. <script src="../js/laydate/laydate.js"></script>
  15. <script src="../js/bootstrap-select.js"></script>
  16. <style>
  17. thead th {
  18. background: #00a0cd;
  19. color: #fff;
  20. }
  21. .th-inner {
  22. white-space: normal !important;
  23. }
  24. .seach-box ul li ul li{
  25. float: none;
  26. width: 100%;
  27. display: block;
  28. }
  29. </style>
  30. </head>
  31. <body class="gray-bg">
  32. <div class="wrapper wrapper-content animated fadeInRight">
  33. <div class="daoHang clearfix">
  34. <div class="dhLeft">
  35. <sapn>
  36. <i class="syIcon"></i>位置:
  37. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  38. <a href="javaScript:;">业务管理</a>&gt;
  39. <a href="" class="nowPosition">处理效率统计</a>
  40. </sapn>
  41. </div>
  42. <div class="dhRight">
  43. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  44. </div>
  45. </div>
  46. <div class="Content_box">
  47. <!--待处理/-->
  48. <div class="complain Shows">
  49. <div class="th-box">
  50. <div class="th-bar">
  51. <ul style="display: flex;">
  52. <li>
  53. 选择时间:
  54. <input class="photo x-color inputs laydate-icon" style="width: 400px;" autocomplete="off" type="text" id="startTimes" />
  55. </li>
  56. <li style="width: 360px;display: flex;">
  57. <div style="width: 100px;line-height: 34px;">承办单位:</div>
  58. <div style="position: relative; width: 220px;">
  59. <div class="inpBox">
  60. <input type="text" class="inps" id="organizer" autocomplete="off" />
  61. <i class="Cleans fa fa-close"></i>
  62. <i class="xl xl_one"></i>
  63. <div class="addTree xlAdd">
  64. <ul id="addTreeDemo" class="ztree"></ul>
  65. </div>
  66. </div>
  67. <div class="selDpart1">
  68. <ul id="sponsor"></ul>
  69. </div>
  70. </div>
  71. </li>
  72. <li style="width: 320px;display: flex;">
  73. <div style="width: 100px;line-height: 34px;">选择来源:</div>
  74. <div style="width: 220px">
  75. <select name="select_" id="source" class="selectpicker show-tick form-control" com data-live-search="true"></select>
  76. </div>
  77. </li>
  78. <li>
  79. <a class="sc_btn btns db">搜索</a>
  80. <a class="sc_btn btns export">导出</a>
  81. </li>
  82. </ul>
  83. </div>
  84. </div>
  85. <ul class="nav nav-tabs ul_tab" role="tablist">
  86. <li class="active">
  87. <a>二级单位办理效率</a>
  88. </li>
  89. <li>
  90. <a>三级单位办理效率</a>
  91. </li>
  92. </ul>
  93. <div style="width: 100%;padding: 10px;">
  94. <table id="workorderlist" data-toggle="table"></table>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <input type="hidden" id="PID" />
  100. <script src="../js/reportCommon/common.js"></script>
  101. <script src="../js/zTree/jquery.ztree.core.js"></script>
  102. <script>
  103. var columnsArray = [];
  104. var columnsWidth
  105. var iscbdw =1
  106. var apiUrl = "WorkOrderReport/GetProcessingEfficiency"
  107. var zxSelectObj = {
  108. id:'source',
  109. apiUrl:'Dictionary/GetDicValueListById',
  110. params:{
  111. id: 1
  112. },
  113. selectValue:'F_ValueId',
  114. selectName:'F_Value'
  115. }
  116. $(document).ready(function() {
  117. laydate.render({
  118. elem: '#startTimes',
  119. theme: '#00a1cb',
  120. type: 'datetime',
  121. format: 'yyyy-MM-dd HH:mm:ss',
  122. range: '~',
  123. calendar: true,
  124. ready: function(date) {
  125. $(".layui-laydate-footer [lay-type='datetime'].laydate-btns-time").click();
  126. $(".laydate-main-list-1 .layui-laydate-content li ol li:last-child").click();
  127. $(".layui-laydate-footer [lay-type='date'].laydate-btns-time").click();
  128. }
  129. });
  130. tree()
  131. initTable()
  132. selectCommon(zxSelectObj)
  133. })
  134. $('.ul_tab li').click(function() {
  135. $(this).addClass("active").siblings().removeClass("active");
  136. var index = $(this).index();
  137. if(index === 0) {
  138. apiUrl = "WorkOrderReport/GetProcessingEfficiency";
  139. iscbdw =1
  140. tree()
  141. } else if(index === 1) {
  142. iscbdw =3
  143. tree()
  144. apiUrl = "WorkOrderReport/GetSJProcessingEfficiency";
  145. }
  146. initTable();
  147. })
  148. function dataParam() {
  149. var stime, etime
  150. if($("#startTimes").val()) {
  151. stime = $("#startTimes").val().split('~')[0].trim()
  152. etime = $("#startTimes").val().split('~')[1].trim()
  153. }
  154. var obj = {
  155. stime,
  156. etime,
  157. source: $("#source").val(),
  158. deptid: $("#PID").val(),
  159. token: $.cookie("token")
  160. };
  161. return obj
  162. }
  163. // function selectCommon(obj){
  164. // params = Object.assign(obj.params,{
  165. // token: $.cookie("token"),
  166. // })
  167. // $.getJSON(
  168. // huayi.config.callcenter_url + obj.apiUrl,params ,
  169. // function(data) {
  170. // if(data.state.toLowerCase() == "success") {
  171. // var content = data.data;
  172. // $("<option value=''>请选择</option>").appendTo($("#"+obj.id));
  173. // $(content).each(function(i, n) {
  174. // $(
  175. // "<option value='" +
  176. // n[obj.selectValue] +
  177. // "'>" +
  178. // n[obj.selectName] +
  179. // "</option>"
  180. // ).appendTo($("#"+obj.id));
  181. // });
  182. // $("#"+obj.id).selectpicker({
  183. // noneSelectedText: "请选择", //默认显示内容
  184. // });
  185. // $("#"+obj.id).selectpicker("refresh");
  186. // }
  187. // }
  188. // );
  189. // }
  190. </script>
  191. </body>
  192. </html>