Няма описание

performanceAppraisalGongYi.html 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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/WorkOrder/Search.css" rel="stylesheet">
  10. <link href="../css/init.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  12. <script src="../css/laydate/laydate.js"></script>
  13. <script src="../js/zTree/jquery.ztree.core.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .Shows {
  20. display: block !important;
  21. }
  22. .complain {
  23. display: none;
  24. }
  25. .toolLeft input {
  26. width: 200px;
  27. }
  28. th {
  29. padding: 5px;
  30. text-align: center;
  31. }
  32. td {
  33. padding: 5px;
  34. }
  35. .Borders {
  36. border: 1px solid #d7d7d7;
  37. }
  38. .daoHang {
  39. margin-bottom: 15px;
  40. }
  41. .inpBox {
  42. border: 1px solid #e5e6e7;
  43. height: 32px;
  44. width: 200px;
  45. display: inline-block;
  46. position: relative;
  47. vertical-align: middle;
  48. }
  49. .inpBox .inps1 {
  50. width: 100%;
  51. height: 30px;
  52. outline: none;
  53. border: 0;
  54. border-image-width: 0;
  55. padding: 0;
  56. padding-left: 3px;
  57. }
  58. .xl {
  59. display: inline-block;
  60. background: url(../img/dropDown.png) no-repeat;
  61. height: 100%;
  62. background-position: center center;
  63. width: 20px;
  64. position: absolute;
  65. right: 0;
  66. top: 0px;
  67. background-color: #f7bc8b;
  68. cursor: pointer;
  69. }
  70. .xl:hover {
  71. background-color: #e6d523;
  72. }
  73. .addTree {
  74. background: #fff;
  75. position: absolute;
  76. width: 100%;
  77. border: 1px solid darkgrey;
  78. right: 0;
  79. top: 30px;
  80. display: none;
  81. height: 350px;
  82. overflow-y: auto;
  83. z-index: 10;
  84. text-align: center;
  85. }
  86. .addTree .list li:hover {
  87. background: #ebebeb;
  88. color: #717171;
  89. }
  90. </style>
  91. </head>
  92. <body class="gray-bg">
  93. <div class="wrapper wrapper-content animated fadeInRight">
  94. <div class="daoHang clearfix">
  95. <div class="dhLeft">
  96. <sapn>
  97. <i class="syIcon"></i>位置:
  98. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  99. <a href="javaScript:;">业务统计</a>&gt;
  100. <a href="" class="nowPosition">绩效考核</a>
  101. </sapn>
  102. </div>
  103. <div class="dhRight">
  104. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  105. </div>
  106. </div>
  107. <div class="Content_box">
  108. <div class="complain Shows">
  109. <div class="toolBar clearfix">
  110. <div class="toolLeft">
  111. 开始时间:
  112. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" />
  113. 结束时间:
  114. <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" />
  115. 部门:
  116. <div class="inpBox">
  117. <input class="inps inps1">
  118. <input type="hidden" id="deptid" />
  119. <i class="xl xl_two"></i>
  120. <div class="addTree xlAdd_two">
  121. <ul id="deptTree" class="ztree"></ul>
  122. </div>
  123. </div>
  124. <button class="btns search_1">查询</button>
  125. <a class="btns" id="exportPublicSentiments">导出</a>
  126. <span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span>
  127. </div>
  128. </div>
  129. <!--table1-->
  130. <div style="width: 100%;padding: 10px;">
  131. <table id="publicSATable" class="tables" data-row-style="rowStyle" data-query-params="queryParams"
  132. data-pagination="true">
  133. <thead>
  134. <tr>
  135. <th data-field="deptname" data-align="center">单位名称</th>
  136. <th data-field="Additional" data-align="center">工作量附加分</th>
  137. <th data-field="tempCheckon" data-align="center">查收回复率</th>
  138. <th data-field="tempFinishontime" data-align="center">逾期率</th>
  139. <th data-field="score" data-formatter="comprehensiveScores" data-align="center">综合考评分数</th>
  140. <th data-field="ScoreRemarks" data-align="center">综合考评备注</th>
  141. <th data-field="total" data-align="center">合计</th>
  142. <!-- <th data-field="Recoveryrate" data-align="center">实时查收率</th>
  143. <th data-field="Overtimerate" data-align="center">实时退单率</th>
  144. <th data-field="Refundrate" data-align="center">重复退单率</th>
  145. <th data-field="Finishontimerate" data-align="center">按时办结率</th>
  146. <th data-field="increasespeed" data-align="center">办结提速率</th>
  147. <th data-field="satisfied" data-align="center">结果满意率</th>
  148. <th data-field="replyrate" data-align="center">知识库报送情况</th>
  149. <th data-field="ScoreRemarks" data-align="center">综合考评备注</th>
  150. <th data-field="SupervisionScore" data-formatter="supervisionScore" data-align="center">监督检查分数</th>
  151. <th data-field="ScoreSupervision" data-align="center">监督检查备注</th> -->
  152. <!-- <th data-field="Sort" data-align="center">排名</th> -->
  153. </tr>
  154. </thead>
  155. </table>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <script>
  161. $(document).ready(function () {
  162. laydate.skin('blue');
  163. laydate({
  164. elem: '#squeryTime',
  165. event: 'focus'
  166. });
  167. laydate({
  168. elem: '#equeryTime',
  169. event: 'focus'
  170. });
  171. initTable();
  172. bindtree();
  173. });
  174. //表格
  175. function initTable() {
  176. $.ajax({
  177. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptCheck',
  178. type: 'get',
  179. data: {
  180. start: $('#squeryTime').val(),
  181. end: $('#equeryTime').val(),
  182. deptid: $("#deptid").val(),
  183. token: $.cookie("token")
  184. },
  185. dataType: "json",
  186. async: true,
  187. success: function (returnValue) {
  188. //异步获取数据
  189. //debugger;
  190. console.log("returnValue", returnValue)
  191. var resultData = returnValue.data.DeptAssessment;
  192. console.log("resultData", resultData)
  193. $('#publicSATable').bootstrapTable('load', resultData);
  194. }
  195. });
  196. $('#publicSATable').bootstrapTable('destroy').bootstrapTable({
  197. striped: true,
  198. pagination: false,
  199. });
  200. }
  201. //搜索
  202. $(".search_1").click(function () {
  203. initTable();
  204. });
  205. $(".inps").focus(function () {
  206. $(this).siblings(".addTree").css("display", "block");
  207. });
  208. $(".xl").click(function () {
  209. var xl = $(this).siblings(".addTree");
  210. if (xl.css("display") == "block") {
  211. xl.css("display", "none");
  212. } else {
  213. xl.css("display", "block");
  214. }
  215. });
  216. $(".addTree").mouseleave(function () {
  217. $(this).css("display", "none");
  218. });
  219. function bindtree() {
  220. $.getJSON(
  221. huayi.config.callcenter_url + "Department/GetDeptList", {
  222. token: $.cookie("token")
  223. },
  224. function (result) {
  225. if (result.state.toLowerCase() == "success") {
  226. $.fn.zTree.init($("#deptTree"), setting, result.data);
  227. }
  228. }
  229. );
  230. }
  231. //获取所属部门
  232. var setting = {
  233. data: {
  234. key: {
  235. name: "F_DeptName",
  236. },
  237. simpleData: {
  238. enable: true,
  239. idKey: "F_DeptId",
  240. pIdKey: "F_PartentId",
  241. rootPId: 0,
  242. },
  243. },
  244. callback: {
  245. onClick: zTreeOnClick,
  246. },
  247. };
  248. function zTreeOnClick(event, treeId, treeNode) {
  249. $(".inps1").val(treeNode.F_DeptName);
  250. $("#deptid").val(treeNode.F_DeptId);
  251. }
  252. //导出
  253. $('#exportPublicSentiments').click(function () {
  254. dcexcelDispath(this);
  255. });
  256. function dcexcelDispath(obj) {
  257. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptCheck?token=" + $.cookie("token");
  258. url += "&start=" + $('#squeryTime').val() + "&end=" + $('#equeryTime').val() + "&deptid=" + $('#deptid')
  259. .val() + "&isExport=true";
  260. obj.href = url;
  261. }
  262. function comprehensiveScores(val, row) {
  263. return '<a onclick="btn_comprehensiveScores(\'' + row.deptid + '\')">' + val + '</a>'
  264. }
  265. function supervisionScore(val, row) {
  266. return '<a onclick="btn_supervisionScore(\'' + row.deptid + '\')">' + val + '</a>'
  267. }
  268. function btn_comprehensiveScores(id) {
  269. layer.open({
  270. type: 2,
  271. content: "./changeComprehensiveScoresGongYi.html?id=" + id, //iframe的url,no代表不显示滚动条
  272. title: '综合考评分数',
  273. area: ['80%', '50%'], //宽高
  274. });
  275. }
  276. function btn_supervisionScore(id) {
  277. layer.open({
  278. type: 2,
  279. content: "./changeSupervisionScore.html?id=" + id, //iframe的url,no代表不显示滚动条
  280. title: '监督检查分数',
  281. area: ['80%', '50%'], //宽高
  282. });
  283. }
  284. </script>
  285. </body>
  286. </html>