暫無描述

assessmentDataStatisticsNew.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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="../js/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. /*树形下拉样式开始*/
  42. .inpBox {
  43. border: 1px solid #e5e6e7;
  44. height: 32px;
  45. width: 200px;
  46. display: inline-block;
  47. position: relative;
  48. vertical-align: middle;
  49. }
  50. .inpBox .inps1 {
  51. width: 100%;
  52. height: 30px;
  53. outline: none;
  54. border: 0;
  55. border-image-width: 0;
  56. padding: 0;
  57. padding-left: 3px;
  58. }
  59. .xl_two {
  60. display: inline-block;
  61. background: url(../img/dropDown.png) no-repeat;
  62. height: 100%;
  63. background-position: center center;
  64. width: 20px;
  65. position: absolute;
  66. right: 0;
  67. top: 0px;
  68. background-color: #f7bc8b;
  69. cursor: pointer;
  70. }
  71. .xl_two:hover {
  72. background-color: #e6d523;
  73. }
  74. .xlAdd_two {
  75. background: #fff;
  76. position: absolute;
  77. width: 100%;
  78. border: 1px solid darkgrey;
  79. right: 0;
  80. top: 30px;
  81. display: none;
  82. height: 350px;
  83. overflow-y: auto;
  84. z-index: 10;
  85. text-align: center;
  86. }
  87. .xlAdd_two .list li:hover {
  88. background: #ebebeb;
  89. color: #717171;
  90. }
  91. /*树形下拉样式结束*/
  92. .Content_box .title {
  93. font-size: 24px;
  94. text-align: center;
  95. }
  96. .Content_box h5 {
  97. font-size: 16px;
  98. text-align: center;
  99. }
  100. .select {
  101. width: 200px;
  102. height: 32px;
  103. border: 1px solid rgb(229, 230, 231);
  104. }
  105. .footerDataStatistics {
  106. /* padding: 0 0 0 20px; */
  107. margin: 10px 0 0 10px;
  108. font-size: 18px;
  109. }
  110. .tables .th-inner {
  111. white-space: normal !important;
  112. }
  113. </style>
  114. </head>
  115. <body class="gray-bg">
  116. <div class="wrapper wrapper-content animated fadeInRight">
  117. <div class="daoHang clearfix">
  118. <div class="dhLeft">
  119. <sapn>
  120. <i class="syIcon"></i>位置:
  121. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  122. <a href="javaScript:;">报表管理</a>&gt;
  123. <a href="" class="nowPosition">月考核报表数据统计</a>
  124. </sapn>
  125. </div>
  126. <div class="dhRight">
  127. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  128. </div>
  129. </div>
  130. <div class="Content_box">
  131. <div class="complain Shows">
  132. <div class="toolBar clearfix">
  133. <div class="toolLeft">
  134. 开始日期:
  135. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
  136. 部门:
  137. <div class="inpBox">
  138. <input class="inps inps1">
  139. <input type="hidden" id="deptid" />
  140. <i class="xl xl_two"></i>
  141. <div class="addTree xlAdd_two">
  142. <ul id="deptTree" class="ztree"></ul>
  143. </div>
  144. </div>
  145. <button class="btns search_1">查询</button>
  146. <a class="btns" id="exportPublicSentiments">导出</a>
  147. </div>
  148. </div>
  149. <div class="title" id="titleText">12345联动服务工作考核数据表</div>
  150. <div class="title">统计周期:<span class="statisticalPeriod"></span></div>
  151. <h5>一、县(市、区)联动单位</h5>
  152. <div style="width: 100%;padding: 10px;">
  153. <table id="workorderlist_1" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  154. </table>
  155. </div>
  156. <h5>二、市直机关联动单位一组</h5>
  157. <div style="width: 100%;padding: 10px;">
  158. <table id="workorderlist_2" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  159. </table>
  160. </div>
  161. <h5>三、市直机关联动单位二组</h5>
  162. <div style="width: 100%;padding: 10px;">
  163. <table id="workorderlist_3" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  164. </table>
  165. </div>
  166. <h5>四、公共事业企业联动单位</h5>
  167. <div style="width: 100%;padding: 10px;">
  168. <table id="workorderlist_4" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  169. </table>
  170. </div>
  171. <h5>总计</h5>
  172. <div style="width: 100%;padding: 10px;">
  173. <table id="workorderlist_5" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  174. </table>
  175. </div>
  176. <div class="footerDataStatistics">统计时段:00:00—23:59:59</div>
  177. </div>
  178. </div>
  179. </div>
  180. <script src="./js/reportCommon.js"></script>
  181. <script>
  182. var tableColumns = [
  183. { title: '序号', align: 'center',
  184. formatter: function(value, row, index) {
  185. return index+1
  186. }
  187. },
  188. { field: 'deptname', title: '联动单位', align: 'center'
  189. },
  190. { field: 'Undertakers', title: '承办件', align: 'center',
  191. formatter: function(value, row, index) {
  192. return handleOrderList(value, row, 0);
  193. }
  194. },
  195. { field: 'Undertakersrate', title: '承办率', align: 'center'},
  196. { field: 'Undertakersscore', title: '得分(3分)', align: 'center'},
  197. { field: 'signfor', title: '及时签收件', align: 'center',
  198. formatter: function(value, row, index) {
  199. return handleOrderList(value, row, 1);
  200. }
  201. },
  202. { field: 'oversignfor', title: '超时签收件 ', align: 'center',
  203. formatter: function(value, row, index) {
  204. return handleOrderList(value, row, 2);
  205. }
  206. },
  207. { field: 'signforrate', title: '及时签收率', align: 'center'},
  208. { field: 'signforscore', title: '得分(5分)', align: 'center'},
  209. { field: 'overdue', title: '按时反馈件', align: 'center',
  210. formatter: function(value, row, index) {
  211. return handleOrderList(value, row, 3);
  212. }
  213. },
  214. { field: 'overfeedback', title: '超时反馈件', align: 'center',
  215. formatter: function(value, row, index) {
  216. return handleOrderList(value, row, 4);
  217. }
  218. },
  219. { field: 'overduerate', title: '按时反馈率', align: 'center'},
  220. { field: 'overduescore', title: '得分(15分)', align: 'center'},
  221. { field: 'conclude', title: '办结件', align: 'center',
  222. formatter: function(value, row, index) {
  223. return handleOrderList(value, row, 5);
  224. }
  225. },
  226. { field: 'noconclude', title: '未办结件', align: 'center',
  227. formatter: function(value, row, index) {
  228. return handleOrderList(value, row, 6);
  229. }
  230. },
  231. { field: 'unsuccessfulrate', title: '办结率', align: 'center'},
  232. { field: 'unsuccessfulscore', title: '办结得分(10分)', align: 'center'},
  233. { field: 'one', title: '一次办结件', align: 'center',
  234. formatter: function(value, row, index) {
  235. return handleOrderList(value, row, 7);
  236. }
  237. },
  238. { field: 'noone', title: '非一次办结件', align: 'center',
  239. formatter: function(value, row, index) {
  240. return handleOrderList(value, row, 8);
  241. }
  242. },
  243. { field: 'onerate', title: '一次办结率', align: 'center'},
  244. { field: 'onescore', title: '得分(12分)', align: 'center'},
  245. { field: 'noexamine', title: '不计入考核件', align: 'center',
  246. formatter: function(value, row, index) {
  247. return handleOrderList(value, row, 9);
  248. }
  249. },
  250. { field: 'review', title: '评议件', align: 'center',
  251. formatter: function(value, row, index) {
  252. return handleOrderList(value, row, 10);
  253. }
  254. },
  255. { field: 'satisfied', title: '满意件', align: 'center',
  256. formatter: function(value, row, index) {
  257. return handleOrderList(value, row, 11);
  258. }
  259. },
  260. { field: 'nosatisfied', title: '不满意件', align: 'center',
  261. formatter: function(value, row, index) {
  262. return handleOrderList(value, row, 12);
  263. }
  264. },
  265. { field: 'satisfiedrates', title: '满意率', align: 'center'},
  266. { field: 'satisfiedscore', title: '得分(55分)', align: 'center'},
  267. { field: 'total', title: '总分', align: 'center'},
  268. { title: '排名', align: 'center',
  269. formatter: function(value, row, index) {
  270. return index+1
  271. }
  272. },
  273. ]
  274. var exportParams = {}
  275. var treeInputParam = {
  276. classInps:'.inps',
  277. classId:'#deptid',
  278. treeApi:'Department/GetDeptList',
  279. classAddTree:'.addTree',
  280. classXl:'.xl',
  281. treeId:'#deptTree',
  282. treeObj:{
  283. name:'F_DeptName',
  284. id:'F_DeptId',
  285. pid:'F_PartentId',
  286. onclick:zTreeOnClick
  287. }
  288. }
  289. var nowMonthData
  290. var dataParams = {}
  291. var apiUrl = 'DataAssessment/GetExamine'
  292. $(document).ready(function () {
  293. var myDate = new Date();
  294. var YY = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
  295. var MM = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)
  296. MM = MM<10?"0"+MM:MM
  297. var DD = myDate.getDate(); //获取当前日(1-31)
  298. DD = DD<10?"0"+DD:DD
  299. nowMonthData = YY + "-" + MM
  300. $("#squeryTime").val(nowMonthData)
  301. laydate.render({
  302. elem: '#squeryTime',
  303. theme: '#00a1cb',
  304. type: 'month',
  305. done: function(value){
  306. console.log(nowMonthData,value)
  307. if (nowMonthData === value) {
  308. apiUrl = 'DataAssessment/GetExamine'
  309. dataParams = {}
  310. dataParams.starttime = nowMonthData+"-01 00:00:00"
  311. dataParams.endtime = nowMonthData+"-"+DD+" 23:59:59"
  312. initTable();
  313. }else{
  314. apiUrl = 'DataAssessment/GetEvaluation'
  315. dataParams = {}
  316. dataParams.date = value
  317. initTable();
  318. }
  319. }
  320. });
  321. dataParams.starttime = nowMonthData+"-01 00:00:00"
  322. dataParams.endtime = nowMonthData+"-"+DD+" 23:59:59"
  323. initTable();
  324. bindtree();
  325. });
  326. //搜索
  327. $(".search_1").click(function () {
  328. initTable();
  329. });
  330. //导出
  331. $('#exportPublicSentiments').click(function () {
  332. exportParams.isdc = true
  333. exportFileFun(apiUrl,exportParams)
  334. });
  335. function handleOrderList(val,row,tab){
  336. if (row.deptname !=='合计'&&row.deptname !=='总计') {
  337. return '<div class="imgs" ><a class="" onclick="viewList(\'' + row.deptid + '\', \''+tab+'\')" >' + val +
  338. '</a></div>'
  339. }else{
  340. return val
  341. }
  342. }
  343. // 查看列表
  344. function viewList(deptid, tab) {
  345. console.log(deptid, tab)
  346. var deptid = encodeURIComponent(deptid)
  347. var source = encodeURIComponent($("#source").val());
  348. var urlSuffix
  349. if (apiUrl ==='DataAssessment/GetExamine') {
  350. var starttime = encodeURIComponent(dataParams.starttime);
  351. var endtime = encodeURIComponent(dataParams.endtime);
  352. urlSuffix = "&starttime=" + starttime + "&endtime=" + endtime
  353. } else if(apiUrl ==='DataAssessment/GetEvaluation'){
  354. var data = encodeURIComponent(dataParams.date);
  355. urlSuffix = "&data=" + data
  356. }
  357. layer.open({
  358. type: 2,
  359. content: "./comhtml/reportOrderList.html?deptid=" + deptid + "&tab=" + tab+ "&source=" + source +urlSuffix,
  360. title: '考核统计分析列表',
  361. area: ['90%', '90%'], //宽高
  362. });
  363. }
  364. //表格
  365. function initTable() {
  366. dataParams.deptid = $("#deptid").val()
  367. dataParams.source = $("#source").val()
  368. dataParams.token = $.cookie("token")
  369. exportParams = dataParams
  370. $.ajax({
  371. url: huayi.config.callcenter_url + apiUrl,
  372. type: 'get',
  373. data: dataParams,
  374. dataType: "json",
  375. async: true,
  376. success: function (returnValue) {
  377. //异步获取数据
  378. //debugger;
  379. var resultData = returnValue.rows;
  380. var resultData_1 = []
  381. var resultData_2 = []
  382. var resultData_3 = []
  383. var resultData_4 = []
  384. var resultData_5 = []
  385. if (returnValue.edate) {
  386. $(".statisticalPeriod").text(returnValue.strdate + " 至 " + returnValue.edate)
  387. }else{
  388. $(".statisticalPeriod").text(helper.DateFormat.getPreMonth(dataParams.date+"-21") +"至"+dataParams.date+"-20" )
  389. }
  390. $("#titleText").text("12345联动服务工作" + returnValue.month + "月份考核数据表")
  391. resultData.forEach(function (v, i) {
  392. if (v.category === 1) {
  393. resultData_1.push(v)
  394. } else if (v.category === 2) {
  395. resultData_2.push(v)
  396. } else if (v.category === 3) {
  397. resultData_3.push(v)
  398. } else if (v.category === 4) {
  399. resultData_4.push(v)
  400. }else {
  401. resultData_5.push(v)
  402. }
  403. })
  404. $('#workorderlist_1').bootstrapTable('load', resultData_1);
  405. $('#workorderlist_2').bootstrapTable('load', resultData_2);
  406. $('#workorderlist_3').bootstrapTable('load', resultData_3);
  407. $('#workorderlist_4').bootstrapTable('load', resultData_4);
  408. $('#workorderlist_5').bootstrapTable('load', resultData_5);
  409. }
  410. });
  411. $('#workorderlist_1').bootstrapTable('destroy').bootstrapTable({
  412. striped: true,
  413. pagination: false,
  414. columns:tableColumns
  415. });
  416. $('#workorderlist_2').bootstrapTable('destroy').bootstrapTable({
  417. striped: true,
  418. pagination: false,
  419. columns:tableColumns
  420. });
  421. $('#workorderlist_3').bootstrapTable('destroy').bootstrapTable({
  422. striped: true,
  423. pagination: false,
  424. columns:tableColumns
  425. });
  426. $('#workorderlist_4').bootstrapTable('destroy').bootstrapTable({
  427. striped: true,
  428. pagination: false,
  429. columns:tableColumns
  430. });
  431. $('#workorderlist_5').bootstrapTable('destroy').bootstrapTable({
  432. striped: true,
  433. pagination: false,
  434. columns:tableColumns
  435. });
  436. }
  437. </script>
  438. </body>
  439. </html>