永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

UnitSign-Census.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <!doctype html>
  2. <html lang="en" class="feedback">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>数据统计</title>
  7. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
  9. <style>
  10. .mui-control-content {
  11. background-color: white;
  12. min-height: 215px;
  13. }
  14. .mui-control-content .mui-loading {
  15. margin-top: 50px;
  16. }
  17. .chart {
  18. height: 260px;
  19. margin: 0px;
  20. padding: 0px;
  21. }
  22. .mui-slider .mui-slider-group {
  23. height: 500px;
  24. }
  25. #CS {
  26. position: absolute;
  27. right: 0;
  28. height: 100%;
  29. padding: 0;
  30. padding-left: 5px;
  31. border: none;
  32. z-index: 30;
  33. width: 100%;
  34. }
  35. .mui-scroll {
  36. height: 100%;
  37. }
  38. #lineChart {
  39. position: absolute;
  40. top: 0;
  41. right: 0;
  42. bottom: 0;
  43. left: 0;
  44. padding: 10px;
  45. -webkit-box-sizing: border-box;
  46. box-sizing: border-box;
  47. }
  48. .mui-grid-bottom {
  49. height: 2px;
  50. background-color: #57cebf;
  51. display: block;
  52. width: 20px;
  53. margin: 0 auto;
  54. }
  55. </style>
  56. </head>
  57. <body>
  58. <header class="mui-bar mui-bar-nav">
  59. <h1 id="title" class="mui-title">职能单位已签收统计报表</h1>
  60. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  61. </header>
  62. <div class="mui-content ">
  63. <form id='login-form' class="mui-input-group">
  64. <!--logo-->
  65. <div class="mui-input-row">
  66. <label>职能单位:</label>
  67. <select name="" class="mui-select">
  68. </select>
  69. </div>
  70. <div class="mui-input-row mui-password">
  71. <label>开始时间:</label>
  72. <!--<input id='password' type="datetime-local" class=" mui-input" >-->
  73. <input id='demo1' data-options='{}' type="text" class="mui-input-clear btns contact" />
  74. </div>
  75. <div class="mui-input-row mui-password">
  76. <label>结束时间:</label>
  77. <!--<input id='password' type="datetime-local" class=" mui-input" >-->
  78. <input id='demo2' data-options='{}' type="text" class="mui-input-clear btn contact" />
  79. </div>
  80. </form>
  81. <div id="slider" class="mui-slider" >
  82. <div class="mui-slider-group">
  83. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  84. <div id="scroll1" class="mui-scroll-wrapper">
  85. <div class="mui-scroll" style="margin-top: 20px;">
  86. <div class="chart" id="pieChart"></div>
  87. <div>
  88. 策划
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <script src="../js/zepto.js"></script>
  97. <script src="../js/mui.min.js"></script>
  98. <script src="../js/echarts-all.js"></script>
  99. <script src="../js/huayi.config.js"></script>
  100. <script src="../js/mui.picker.min.js"></script>
  101. <script type="text/javascript">
  102. mui.init();
  103. window.onload = function() {
  104. mui('.mui-scroll-wrapper').scroll({
  105. deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
  106. });
  107. }
  108. var goodslist;
  109. //本月
  110. mui.plusReady(function() {
  111. var wv = plus.webview.currentWebview();
  112. var index = wv.index;
  113. console.log(index);
  114. plus.nativeUI.closeWaiting();
  115. //显示当前页面
  116. mui.currentWebview.show();
  117. //下拉框
  118. $.ajax({
  119. type: "get",
  120. url: huayi.config.callcenter_url + '/APP/GetDeptList',
  121. async: false,
  122. dataType: 'json',
  123. data: {
  124. usercode: 8000,
  125. },
  126. success: function(data) {
  127. console.log(data.state);
  128. if(data.state == "success") {
  129. goodslist = data.data;
  130. bindseat($(".mui-select"));
  131. }
  132. },
  133. error: function(data) {
  134. console.log(data.message);
  135. }
  136. });
  137. //下拉框
  138. function bindseat(obj) {
  139. obj.empty();
  140. obj.append('<option value="" selected="true">所有单位</option>');
  141. $(goodslist).each(function(i, n) {
  142. obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
  143. })
  144. }
  145. //日期
  146. var dates = new Date();
  147. var time = dates.getFullYear() + "-" + (dates.getMonth() + 1) + '-' + dates.getDate();
  148. $("#demo1").val(time);
  149. //下拉框
  150. $(".mui-select").on('change', function() {
  151. console.log($('.mui-select').val());
  152. Usercode();
  153. })
  154. Usercode();
  155. //时间选择
  156. var btns = mui('.btns');
  157. btns.each(function(i, btn) {  
  158. btn.addEventListener('tap', function() {   
  159. var dtPicker = new mui.DtPicker({    
  160. type: "date", //设置日历初始视图模式
  161.   
  162. });  
  163. dtPicker.show(function(e) {
  164. $("#demo1").val(e);
  165. Usercode();
  166. }); 
  167. }, false);
  168. })
  169. var btn = mui('.btn');
  170. btn.each(function(i, btn) {  
  171. btn.addEventListener('tap', function() {   
  172. var dtPicker = new mui.DtPicker({    
  173. type: "date", //设置日历初始视图模式
  174.   
  175. });  
  176. dtPicker.show(function(e) {
  177. $("#demo2").val(e);
  178. Usercode();
  179. }); 
  180. }, false);
  181. })
  182. //本周
  183. function Usercode(){
  184. $.ajax({
  185. type: "get",
  186. url: huayi.config.callcenter_url + '/APP/GetAPPDeptSureReport',
  187. async: true,
  188. dataType: 'json',
  189. data: {
  190. usercode: 8000,
  191. sdate:$("#demo1").val(),
  192. edate: $("#demo2").val(),
  193. id:$('.mui-select').val()
  194. },
  195. success: function(data) {
  196. console.log(data.state);
  197. if(data.state == "success") {
  198. var xAxis = [];
  199. var yAxis_1 = [];
  200. var yAxis_2 = [];
  201. var yAxis_3 = [];
  202. var yAxis_4 = [];
  203. var yAxis_5 = [];
  204. var yAxis_6 = [];
  205. // console.log(data.data.APPSeatReport[0].djblcount);
  206. var a=0,b=0,c=0,d=0,e=0;f=0;
  207. if(data.data.APPDeptSureReport.length>1){
  208. xAxis.push('所有单位');
  209. }else{
  210. xAxis.push(data.data.APPDeptSureReport[0].deptname);
  211. }
  212. for(var i = 0; i < data.data.APPDeptSureReport.length; i++) {
  213. a+=data.data.APPDeptSureReport[i].jscount;
  214. b+=data.data.APPDeptSureReport[i].thshcount;
  215. c+=data.data.APPDeptSureReport[i].xqblzcount;
  216. d+=data.data.APPDeptSureReport[i].yblcount;
  217. e+=data.data.APPDeptSureReport[i].yqblzcount;
  218. f+=data.data.APPDeptSureReport[i].ysshcount;
  219. }
  220. yAxis_1.push(a);
  221. yAxis_2.push(b);
  222. yAxis_3.push(c);
  223. yAxis_4.push(d);
  224. yAxis_5.push(e);
  225. yAxis_6.push(f);
  226. var option = {
  227. grid: {
  228. x: '3%',
  229. x2: '3%',
  230. y: '25%',
  231. y2: 25,
  232. borderWidth: 0
  233. },
  234. toolbox: {
  235. show: false,
  236. feature: {
  237. mark: {
  238. show: true
  239. },
  240. dataView: {
  241. show: true,
  242. readOnly: false
  243. },
  244. magicType: {
  245. show: true,
  246. type: ['line']
  247. },
  248. restore: {
  249. show: true
  250. },
  251. saveAsImage: {
  252. show: true
  253. }
  254. }
  255. },
  256. legend: {
  257. top: 0,
  258. data: ['接收总量','召回审核中', '限期办理中','已办理', '逾期办理中','延期审核中' ]
  259. },
  260. calculable: false,
  261. xAxis: [{
  262. axisLabel: {
  263. interval: 0
  264. },
  265. splitArea: {
  266. show: false,
  267. },
  268. splitLine: {
  269. show: false
  270. }, //去除网格线
  271. type: 'category',
  272. data: xAxis
  273. }],
  274. yAxis: [{
  275. show: false,
  276. splitLine: {
  277. show: false
  278. }, //去除网格线
  279. type: 'value',
  280. splitArea: {
  281. show: false,
  282. }
  283. }],
  284. series: [{
  285. name: '接收总量',
  286. type: 'bar',
  287. barWidth: 20, //柱图宽度
  288. itemStyle: {
  289. normal: {
  290. label: {
  291. show: true
  292. }
  293. }
  294. },
  295. data: yAxis_1
  296. }, {
  297. name: '召回审核中',
  298. type: 'bar',
  299. barWidth: 20, //柱图宽度
  300. itemStyle: {
  301. normal: {
  302. label: {
  303. show: true
  304. }
  305. }
  306. },
  307. data: yAxis_2
  308. }, {
  309. name: '限期办理中',
  310. type: 'bar',
  311. itemStyle: {
  312. normal: {
  313. label: {
  314. show: true
  315. }
  316. }
  317. },
  318. data: yAxis_3
  319. }, {
  320. name: '已办理',
  321. type: 'bar',
  322. itemStyle: {
  323. normal: {
  324. label: {
  325. show: true
  326. }
  327. }
  328. },
  329. data: yAxis_4
  330. }, {
  331. name: '逾期办理中',
  332. type: 'bar',
  333. itemStyle: {
  334. normal: {
  335. label: {
  336. show: true
  337. }
  338. }
  339. },
  340. data: yAxis_5
  341. }, {
  342. name: '延期审核中',
  343. type: 'bar',
  344. itemStyle: {
  345. normal: {
  346. label: {
  347. show: true
  348. }
  349. }
  350. },
  351. data: yAxis_6
  352. }]
  353. };
  354. echartsPie = echarts.init(document.getElementById('pieChart'));
  355. echartsPie.clear();
  356. echartsPie.setOption(option,true);
  357. }
  358. },
  359. error: function(data) {
  360. console.log(data.message);
  361. }
  362. });
  363. }
  364. //本月
  365. //部门
  366. // $.ajax({
  367. // type: "get",
  368. // url: huayi.config.callcenter_url + 'WorkOrder/GetReportByDept',
  369. // async: true,
  370. // dataType: 'json',
  371. // data: {
  372. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  373. // },
  374. // success: function(data) {
  375. // console.log(data.state);
  376. // if(data.state == "success") {
  377. // console.log(data.data[0].unfinish);
  378. // var xAxis_fl = [];
  379. // var yAxis_ = [];
  380. // var yAxiss_ = [];
  381. // // $("#Workfinish").text(data.data[7].finish);
  382. // // $("#Workunfinifh").text(data.data[7].unfinish);
  383. // // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
  384. // for(var i = 0; i < data.data.length; i++) {
  385. // xAxis_fl.push(data.data[i].dept);
  386. // yAxis_.push(data.data[i].unfinish);
  387. // yAxiss_.push(data.data[i].finish)
  388. // }
  389. //
  390. // var option = {
  391. // grid: {
  392. // x: 35,
  393. // x2: 10,
  394. // y: 30,
  395. // y2: 50,
  396. // borderWidth: 0
  397. // },
  398. // toolbox: {
  399. // show: false,
  400. // feature: {
  401. // mark: {
  402. // show: true
  403. // },
  404. // dataView: {
  405. // show: true,
  406. // readOnly: false
  407. // },
  408. // magicType: {
  409. // show: true,
  410. // type: ['line', 'bar']
  411. // },
  412. // restore: {
  413. // show: true
  414. // },
  415. // saveAsImage: {
  416. // show: true
  417. // }
  418. // }
  419. // },
  420. // legend: {
  421. // top: 20,
  422. // data: ['已完成', '未完成', ]
  423. // },
  424. //
  425. // calculable: false,
  426. // xAxis: [{
  427. // axisLabel: {
  428. // interval: 0
  429. // },
  430. // axisLabel: {
  431. // rotate: 40, //字体倾斜度数
  432. // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
  433. // textStyle: {
  434. // color: "red", //字体颜色
  435. // fontSize: 10 //字体大小
  436. // }
  437. // },
  438. // splitArea: {
  439. // show: false,
  440. // },
  441. // splitLine: {
  442. // show: false
  443. // }, //去除网格线
  444. // type: 'category',
  445. // data: xAxis_fl
  446. // }],
  447. // yAxis: [{
  448. // show: false,
  449. // splitLine: {
  450. // show: false
  451. // }, //去除网格线
  452. // type: 'value',
  453. // splitArea: {
  454. // show: false,
  455. // }
  456. // }],
  457. // series: [{
  458. // name: '已完成',
  459. // type: 'bar',
  460. // barWidth: 10, //柱图宽度
  461. // itemStyle: {
  462. // normal: {
  463. // label: {
  464. // show: true
  465. // }
  466. // }
  467. // },
  468. // data: yAxis_
  469. // }, {
  470. // name: '未完成',
  471. // type: 'bar',
  472. // barWidth: 10, //柱图宽度
  473. // itemStyle: {
  474. // normal: {
  475. // label: {
  476. // show: true
  477. // }
  478. // }
  479. // },
  480. // data: yAxiss_
  481. // }]
  482. // };
  483. // echartsPie = echarts.init(document.getElementById('bar-Chart2'));
  484. // echartsPie.setOption(option);
  485. // }
  486. //
  487. // },
  488. // error: function(data) {
  489. // console.log(data.message);
  490. // }
  491. // });
  492. //获取区域
  493. });
  494. </script>
  495. </body>
  496. </html>