main.html 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  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,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <link href="css/mui.css" rel="stylesheet" />
  8. <script src="assets/js/jquery-3.1.0.js"></script>
  9. <script src="assets/js/jquery.base64.js"></script>
  10. <script src="CommonJS/Config_JS/Config_Load.js"></script>
  11. <script src="CommonJS/DBUtil_JS/WsCommonClassJava.js"></script>
  12. <script src="CommonJS/Data_ProcessJS/CommonData.js"></script>
  13. <script src="CommonJS/HTML_ElementCommonJS/Select_Common.js"></script>
  14. <script src="js/mui.min.js"></script>
  15. <style>
  16. .leftimg{
  17. margin-top: 0.9375rem;
  18. }
  19. .maintext{
  20. /* float: left; */
  21. }
  22. .delebtn{
  23. width: 1.5625rem;
  24. margin-top: 1.25rem;
  25. }
  26. .title{
  27. background-color:gainsboro;
  28. height: 3.125rem;
  29. }
  30. .maincontent{
  31. margin-top: 3.75rem;
  32. }
  33. .headimg{
  34. float: left;
  35. margin-left: 0.3rem;
  36. margin-top: 0.8rem;
  37. }
  38. .headimg img{
  39. width: 2.1875rem;
  40. }
  41. li{
  42. display:block;
  43. /* float:left; */
  44. width:100%;
  45. margin-right:8px;
  46. white-space:normal;
  47. word-break : break-all;
  48. word-wrap: break-word;
  49. }
  50. .table {
  51. border: 1px solid #cad9ea;
  52. color: #666;
  53. }
  54. .table th {
  55. background-repeat: repeat-x;
  56. height: 30px;
  57. }
  58. .table td,
  59. .table th {
  60. border: 1px solid #cad9ea;
  61. padding: 0 1em 0;
  62. }
  63. .table tr.alter {
  64. background-color: #f5fafe;
  65. }
  66. #popover{
  67. position: absolute !important;
  68. top: 43% !important;
  69. left: 17% !important;
  70. }
  71. .mui-popover-arrow{
  72. display: none;
  73. }
  74. </style>
  75. <script>
  76. $(document).on("click", '#mainpage', function() {
  77. window.location="main.html?date="+getDateStr();
  78. });
  79. $(document).on("click", '#addpage', function() {
  80. // mui.alert('模块更新中 敬请期待!!!', '系统提示', function() {});
  81. window.location="add.html?date="+getDateStr();
  82. });
  83. $(document).on("click", '#exit', function() {
  84. var btnArray = ['否', '是'];
  85. mui.confirm('是否确认退出登录?', '系统提示', btnArray, function(e) {
  86. if (e.index == 1) {
  87. window.location="login.html";
  88. } else {
  89. }
  90. })
  91. });
  92. mui.init({
  93. //swipeBack: true //启用右滑关闭功能
  94. });
  95. (function($) {
  96. $('#scroll').scroll({
  97. indicators: true //是否显示滚动条
  98. });
  99. var segmentedControl = document.getElementById('segmentedControl');
  100. $('.mui-input-group').on('change', 'input', function() {
  101. if (this.checked) {
  102. var styleEl = document.querySelector('input[name="style"]:checked');
  103. var colorEl = document.querySelector('input[name="color"]:checked');
  104. if (styleEl && colorEl) {
  105. var style = styleEl.value;
  106. var color = colorEl.value;
  107. segmentedControl.className = 'mui-segmented-control' + (style ? (' mui-segmented-control-' + style) : '') + ' mui-segmented-control-' + color;
  108. }
  109. }
  110. });
  111. })(mui);
  112. function createNewDataList(content, address, username, idcard,id,ppzt,sex,major,street,xjzt,zdpc) {
  113. var str = "";
  114. var str1="";
  115. /* "<li id='newdatalist' class='mui-table-view-cell mui-media'>" +
  116. "<a class='mui-navigate-right'>" +
  117. "<img class='mui-media-object mui-pull-left' src='../assets/images/test.png'>" +
  118. "<div class='mui-media-body'>" +
  119. "<span class='mui-ellipsis' style='font-size: 16px;font-family: PingFang;'>" + typeName + "</span>" +
  120. "<span class='mui-ellipsis mui-pull-right' style='font-size: 13px;font-family: PingFang;'>" + time + "</span>" +
  121. "<p id='dataID' class='mui-ellipsis mui-pull-right' style='font-size: 0px;font-family: PingFang;'>" + id + "</p>" +
  122. "<p class='mui-ellipsis'>" +
  123. "<span class='mui-ellipsis' style='font-size: 13px;font-family: PingFang;'>" + projectName + "</span>" +
  124. "<span class='mui-ellipsis mui-pull-right' style='font-size: 13px;font-family: PingFang;'>" + status + "</span>" +
  125. "</p></div></a></li> "; */
  126. var enable = "";
  127. var strzt="";
  128. var strimage="";
  129. if(zdpc=="0"){
  130. strimage="<img class='mui-media-object mui-pull-left leftimg' src='assets/image/tupian.png'>" ;
  131. }
  132. if(zdpc=="1"){
  133. strimage="<img class='mui-media-object mui-pull-left leftimg' src='assets/image/tupian2.png'>" ;
  134. }
  135. if(towncode == null || towncode==""){
  136. enable =" disabled='disabled'";
  137. }else{
  138. enable = "";
  139. }
  140. if(ppzt=='1'){
  141. strzt="街道已匹配";
  142. }else{
  143. if(ppzt==''){
  144. strzt="街道未匹配";
  145. }else{
  146. strzt="街道已匹配";
  147. }
  148. }
  149. if(towncode != null && towncode!=""){
  150. str1="";
  151. }else{
  152. str1="<p id='txt_ppzt' class='mui-ellipsis' >"+strzt+"</p>";
  153. }
  154. /* str = "<li id='list' class='mui-table-view-cell mui-media'>"+
  155. "<a href='javascript:;'>"+
  156. "<img class='mui-media-object mui-pull-left leftimg' src='assets/image/tupian.png'>"+
  157. "<div class=' mui-pull-right'>"+
  158. "<div><span class='mui-badge mui-badge-success'>"+content+"</span></div>"+
  159. "<div><img src='assets/image/lajit.png' class='delebtn'/></div>"+
  160. "</div>"+
  161. "<div class='mui-media-body maintext' >"+
  162. "<p id='txt_add' class='mui-ellipsis-5' style='width: 95%;'>"+address+"</p>"+
  163. "<p id='txt_name' class='mui-ellipsis'>"+username+"</p>"+
  164. "<p id='txt_idcard' class='mui-ellipsis'>"+idcard+"</p>"+
  165. "<p id='txt_id' class='mui-ellipsis' style='display:none'>"+id+"</p>"+str1+
  166. "</div>"+
  167. "</a>"+
  168. "</li>"; */
  169. if(role=="3" || role=="21") {
  170. var str1="";
  171. var str2="";
  172. if(xjzt!=""){
  173. if(xjzt=="执业中"){
  174. str1="<div><span class='mui-badge mui-badge-danger'>" + xjzt + "</span></div>" ;
  175. }else{
  176. str1="<div><span class='mui-badge mui-badge-success'>" + xjzt + "</span></div>" ;
  177. }
  178. }
  179. if(content>0){
  180. if(xjzt=="执业中"){
  181. str2="<span class='mui-badge mui-badge-danger' >" + content + "</span>";
  182. }else{
  183. str2="<span class='mui-badge mui-badge-success' >" + content + "</span>";
  184. }
  185. }else{
  186. str2="<span class='mui-badge mui-badge-success' >" + content + "</span>";
  187. }
  188. str = "<li id='list' class='mui-table-view-cell mui-media'>" +
  189. "<a href='javascript:;'>" +strimage+
  190. "<div class=' mui-pull-right'>" +
  191. "<div onclick='conclusionPopover("+id+")'>" +str2+
  192. "</div>" +str1+
  193. //"<div><img src='assets/image/lajit.png' class='delebtn'/></div>"+
  194. "</div>" +
  195. "<div class='mui-media-body maintext' id='listDiv'>" +
  196. "<p id='txt_add' class='mui-ellipsis-5' style='width: 95%;'>" + address + "</p>" +
  197. "<p id='txt_name' class='mui-ellipsis'>" + username + "</p>" +
  198. "<p id='txt_idcard' class='mui-ellipsis'>" + idcard + "</p>" +
  199. "<p id='txt_id' class='mui-ellipsis' style='display:none'>" + id + "</p>" +
  200. "<p id='txt_sex' class='mui-ellipsis' style='display:none'>" + sex + "</p>" +
  201. "<p id='txt_major' class='mui-ellipsis' style='display:none'>" + major + "</p>" +
  202. "</div>" +
  203. "</a>" +
  204. "</li>";
  205. }else {
  206. var str1="";
  207. var str2="";
  208. var str3="";
  209. if(xjzt=="执业中"){
  210. str3="<div class='mui-media-body maintext' id='listDiv' onclick='onclickRead("+id+")'>" ;
  211. }else{
  212. str3="<div class='mui-media-body maintext' id='listDiv'>" ;
  213. }
  214. if(xjzt!=""){
  215. if(xjzt=="执业中"){
  216. str1="<div><span class='mui-badge mui-badge-danger'>" + xjzt + "</span></div>" ;
  217. }else{
  218. str1="<div><span class='mui-badge mui-badge-success'>" + xjzt + "</span></div>" ;
  219. }
  220. }
  221. if(content>0){
  222. if(xjzt=="执业中"){
  223. str2="<span class='mui-badge mui-badge-danger' >" + content + "</span>";
  224. }else{
  225. str2="<span class='mui-badge mui-badge-success' >" + content + "</span>";
  226. }
  227. }else{
  228. str2="<span class='mui-badge mui-badge-success' >" + content + "</span>";
  229. }
  230. str = "<li id='list' class='mui-table-view-cell mui-media'>" +
  231. "<a href='javascript:;'>" +strimage+
  232. "<div class=' mui-pull-right'>" +
  233. "<div onclick='conclusionPopover("+id+")'>" +str2+
  234. "</div>" +str1+
  235. //"<div><img src='assets/image/lajit.png' class='delebtn'/></div>"+
  236. "</div>" +str3+
  237. "<p id='txt_street' class='mui-ellipsis-5' style='width: 95%;'>" + street + "</p>" +
  238. "<p id='txt_add' class='mui-ellipsis-5' style='width: 95%;'>" + address + "</p>" +
  239. "<p id='txt_name' class='mui-ellipsis'>" + username + "</p>" +
  240. "<p id='txt_major' class='mui-ellipsis'>" + major + "</p>" +
  241. "<p id='txt_idcard' class='mui-ellipsis'>" + idcard + "</p>" +
  242. "<p id='txt_id' class='mui-ellipsis' style='display:none'>" + id + "</p>" +
  243. "<p id='txt_sex' class='mui-ellipsis' style='display:none'>" + sex + "</p>" +
  244. "</div>" +
  245. "</a>" +
  246. "</li>";
  247. }
  248. $("#newDataUl").append(str);
  249. }
  250. $(document).on("click", '#listDiv', function() {
  251. // mui.show("fasdfasdfasd");
  252. var listid = $(this).find('#txt_idcard').text();
  253. localStorage.setItem("name",$(this).find('#txt_name').text());
  254. localStorage.setItem("idcard",$(this).find('#txt_idcard').text());
  255. localStorage.setItem("address",$(this).find('#txt_add').text());
  256. localStorage.setItem("caseid",$(this).find('#txt_id').text());
  257. localStorage.setItem("sex",$(this).find('#txt_sex').text());
  258. localStorage.setItem("major",$(this).find('#txt_major').text());
  259. //增加判断:四小时内不能重复提交
  260. var strSql = "select count(t.ID) num from 巡检状态 t where t.一户一档ID = '"+$(this).find('#txt_id').text()+"' and t.时间 > (sysdate-(4.0/24))";
  261. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], (evt)=>{
  262. var num = Number(evt.data[0].NUM);
  263. if(num > 0){
  264. mui.alert('四小时内不能重复提交!','提示',['确定'],null,'');
  265. return;
  266. }else{
  267. var html = "approveNew.html";
  268. // var html = "./mFAHomepageParticulars.html?id=" + listid;
  269. if(role=="3" ||role=="21"){
  270. $(location).attr('href', html);
  271. }
  272. }
  273. }, "queryCount");
  274. // alert(listid);
  275. // var html = "approveNew.html";
  276. // // var html = "./mFAHomepageParticulars.html?id=" + listid;
  277. // if(role=="3" ||role=="21"){
  278. // $(location).attr('href', html);
  279. // }else{
  280. //
  281. // }
  282. // var webview_sub = plus.webview.create(
  283. // html,
  284. // 'mFAHomepageParticulars', {}, {
  285. // name: 'davis'
  286. // }); //后台创建webview并打开页面
  287. // webview_sub.show('slide-in-right', 150);
  288. });
  289. var towncode;
  290. var towncode1;
  291. var districtcode;
  292. var role;
  293. var town;
  294. window.onload = function load(){
  295. var district = localStorage.getItem("district");
  296. districtcode = localStorage.getItem("districtcode");
  297. town = localStorage.getItem("town");
  298. towncode = localStorage.getItem("towncode");
  299. var town1 = localStorage.getItem("town1");
  300. towncode1 = localStorage.getItem("towncode1");
  301. role = localStorage.getItem("ROLE");
  302. // alert(district+"/"+town);
  303. $("#towninfo").attr("placeholder",district+"/"+town);//.val("aaaa");//district+"/"+town);
  304. // 巡查员用户&区级管理员用户
  305. if(role=="3" ||role=="21"){
  306. document.getElementById("streetDiv").style.display="none";
  307. $("#div_totalcon").hide();
  308. getListInfo(towncode);
  309. queryPatrolStatus();
  310. }
  311. // 区级用户
  312. else if(role=="2"){
  313. $("#div_totalcon").show();
  314. //queryQXList(districtcode);
  315. //getListDistrictInfo(districtcode);
  316. queryPatrolStatus();
  317. queryQXListDistrict(districtcode);
  318. queryInspectorFind(district);
  319. //totalInfoArea1();
  320. }
  321. // 市级用户
  322. else if(role=="1"){
  323. $("#div_totalcon").show();
  324. // $("#item1").removeClass("mui-active");
  325. // $("#item2").addClass("mui-active");
  326. // $("#segmentedControl a").eq(1)[0].className="mui-control-item mui-active";//第二个tab设置当前页
  327. // $("#segmentedControl a").eq(0)[0].remove();//删第一个tab
  328. // 获取巡检状态
  329. queryPatrolStatus();
  330. // 获取任务清单
  331. queryQXListDistrict("");
  332. totalInfoCity();
  333. queryInspectorFindByCity( );
  334. }
  335. };
  336. function queryQXList(districtcode){
  337. var strSql = "";
  338. if(districtcode == "310")
  339. strSql = "select distinct(t.district) town,t.districtcode towncode from 系统用户信息表 t where t.districtcode !='310' order by districtcode ";
  340. else
  341. strSql = "select * from 系统用户信息表 t where districtcode='"+districtcode+"' order by towncode ";
  342. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryQXList");
  343. }
  344. function queryQXListDistrict(districtcode) {
  345. /* var strSql="select t.towncode,t.town from 系统用户信息表 t where districtcode='"+districtcode+"' " +
  346. "union select 0 towncode,to_char('未匹配') town from dual";
  347. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryQXListDis"); */
  348. // var strSql="select distinct t.towncode,to_char(t.town) town from 系统用户信息表新 t where t.districtcode='"+districtcode+"' and t.town is not null " +
  349. // "union select 0 towncode,to_char('未匹配') town from dual";
  350. var strSql="select distinct t.towncode,to_char(t.town) town from 系统用户信息表新 t where t.town is not null ";
  351. if(districtcode!=""){
  352. strSql += "and t.districtcode='"+districtcode+"'";
  353. }
  354. strSql += " union select 0 towncode,to_char('未匹配') town from dual ";
  355. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryQXListDis");
  356. }
  357. function queryPatrolStatus() {
  358. var strSql="select * from 编码表巡检状态 t where t.id!=5";
  359. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryPatrolStatus");
  360. }
  361. function queryInspectorFindByCity() {
  362. document.getElementById("newDataUlFind").innerHTML="";
  363. var datet = new Date();
  364. var monthstr = datet.getMonth()+1;
  365. var where="";
  366. /*if(monthstr=='1' || monthstr=='2' ||monthstr=='3'){
  367. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/01' and '"+datet.getFullYear()+"/03'";
  368. }else if(monthstr=='4' || monthstr=='5' ||monthstr=='6'){
  369. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/04' and '"+datet.getFullYear()+"/06'";
  370. }
  371. else if(monthstr=='7' ||monthstr=='8' ||monthstr=='9'){
  372. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/07' and '"+datet.getFullYear()+"/09'";
  373. }else if(monthstr=='10' || monthstr=='11' ||monthstr=='12'){
  374. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/10' and '"+datet.getFullYear()+"/12'";
  375. }*/
  376. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  377. where="1,2,3"
  378. }
  379. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  380. where="4,5,6"
  381. }
  382. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  383. where="7,8,9"
  384. }
  385. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  386. where="10,11,12"
  387. }
  388. //var strSql="select t.*,y.username,y.mobile from 巡检新增 t left join 系统用户信息表新 y on t.巡查员id=y.id where 1=1 "+where+" order by y.district";
  389. var strSql="select t.num 身份证,t.name 姓名,t.registere 执业地址," +
  390. "t.专业 从事专业,t.street 街道,t.时间 上报时间,t.手机 MOBILE from health.view_巡检 t " +
  391. "where t.sendyear="+datet.getFullYear()+
  392. " and t.sendmonth in ("+where+") and t.source=4 and t.sourcesub=1";
  393. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryInspectorFindByCity");
  394. }
  395. function queryInspectorFind(district) {
  396. var aa=district.substring(0, 2);
  397. document.getElementById("newDataUlFind").innerHTML="";
  398. var datet = new Date();
  399. var monthstr = datet.getMonth()+1;
  400. var where="";
  401. /* if(datet.getFullYear()=='2021'){
  402. if(monthstr=='6'){
  403. where=" and to_char(t.上报时间,'yyyy/mm') between '2021/01' and '2021/06'";
  404. }else if(monthstr=='7' || monthstr=='8' ||monthstr=='9'){
  405. where=" and to_char(t.上报时间,'yyyy/mm') between '2021/03' and '2021/09'";
  406. }else if(monthstr=='10' || monthstr=='11' ||monthstr=='12'){
  407. where=" and to_char(t.上报时间,'yyyy/mm') between '2021/05' and '2021/12'";
  408. }
  409. }else {
  410. if(monthstr=='1'||monthstr=='2'||monthstr=='3'){
  411. where=" and to_char(t.上报时间,'yyyy/mm') between '"+(datet.getFullYear()-1)+"/07' and '"+datet.getFullYear()+"/03'";
  412. }else if(monthstr=='4'||monthstr=='5'||monthstr=='6'){
  413. where=" and to_char(t.上报时间,'yyyy/mm') between '"+(datet.getFullYear()-1)+"/10' and '"+datet.getFullYear()+"/06'";
  414. }else if(monthstr=='7'||monthstr=='8'||monthstr=='9'){
  415. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/01' and '"+datet.getFullYear()+"/09'";
  416. }else if(monthstr=='10'||monthstr=='11'||monthstr=='12'){
  417. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/04' and '"+datet.getFullYear()+"/12'";
  418. }
  419. }
  420. var strSql="select t.*,y.username,y.mobile from 巡检新增 t left join 系统用户信息表 y on t.巡查员id=y.id where t.区县='"+district+"' "+where+" order by y.towncode";
  421. console.log(strSql)
  422. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryInspectorFind");
  423. */
  424. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  425. where="1,2,3"
  426. }
  427. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  428. where="4,5,6"
  429. }
  430. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  431. where="7,8,9"
  432. }
  433. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  434. where="10,11,12"
  435. }
  436. /*if(monthstr=='1' || monthstr=='2' ||monthstr=='3'){
  437. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/01' and '"+datet.getFullYear()+"/03'";
  438. }else if(monthstr=='4' || monthstr=='5' ||monthstr=='6'){
  439. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/04' and '"+datet.getFullYear()+"/06'";
  440. }
  441. else if(monthstr=='7' ||monthstr=='8' ||monthstr=='9'){
  442. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/07' and '"+datet.getFullYear()+"/09'";
  443. }else if(monthstr=='10' || monthstr=='11' ||monthstr=='12'){
  444. where=" and to_char(t.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/10' and '"+datet.getFullYear()+"/12'";
  445. }*/
  446. // var strSql="select t.*,y.username,y.mobile from 巡检新增 t left join 系统用户信息表新 y on t.巡查员id=y.id where t.区县='"+district+"' "+where+" order by y.towncode";
  447. var strSql="select t.num 身份证,t.name 姓名,t.registere 执业地址," +
  448. "t.专业 从事专业,t.street 街道,t.时间 上报时间,t.手机 MOBILE from health.view_巡检 t " +
  449. "where t.sendyear="+datet.getFullYear()+
  450. " and t.sendmonth in ("+where+") and t.source=4 and t.sourcesub=1 and t.COUNTYSSTRING='"+district.substring(0, 2)+"'";
  451. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryInspectorFind");
  452. }
  453. function getListInfo(townCode){
  454. var datet = new Date();
  455. var monthstr = datet.getMonth()+1;
  456. var monthstr1 = "";
  457. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  458. monthstr1="1,2,3"
  459. }
  460. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  461. monthstr1="4,5,6"
  462. }
  463. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  464. monthstr1="7,8,9"
  465. }
  466. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  467. monthstr1="10,11,12"
  468. }
  469. var whereStr = "";
  470. if(town=="全街镇"){
  471. whereStr+=" and t.county='"+districtcode+"'";
  472. }else if(towncode!="" && towncode1!=""){
  473. whereStr=" and (t.streetid='"+towncode+"' or t.streetid='"+towncode1+"')";
  474. }else{
  475. whereStr=" and t.streetid='"+towncode+"'";
  476. }
  477. if(document.getElementById("select_source").value!='0' ){
  478. whereStr+=" and t.source="+document.getElementById("select_source").value;
  479. }
  480. if(document.getElementById("select_patrol").value!='-1'){
  481. if(document.getElementById("select_patrol").value=='0'){
  482. whereStr+=" and t.巡检状态ID is not null ";
  483. }else {
  484. whereStr+=" and t.巡检状态ID is null ";
  485. }
  486. }
  487. if(document.getElementById("select_conclusion").value){
  488. if(document.getElementById("select_conclusion").value!='-1'){
  489. whereStr+=" and t.巡检状态ID="+document.getElementById("select_conclusion").value;
  490. }
  491. }
  492. var strSql = " select * "+
  493. "from (select to_char(t.id) id, "+
  494. "to_char(t.NAME) name, "+
  495. "to_char(t.REGISTERE) REGISTERE, "+
  496. "to_char(t.NUM) NUM, "+
  497. // "0 conent, "+
  498. "to_char(nvl(aa.content, '0')) conent, "+
  499. "'巡检' as type,t.专业,t.sex,t.street 街镇,t.巡检状态,t.排序,t.ZDPC "+
  500. "from VIEW_巡检 t "+
  501. "left join (select count(0) content, t.一户一档id "+
  502. "from 巡检状态 t where t.时间 between ADD_MONTHS(sysdate, -3) and sysdate "+
  503. "group by t.一户一档id) aa "+
  504. "on t.id = aa.一户一档id "+
  505. "where 1=1 "+whereStr+
  506. "and t.sendyear = '"+datet.getFullYear() +"' "+
  507. "and t.sendmonth in ("+monthstr1+") "+
  508. //"and (t.sendmonth = '1' or t.sendmonth = '2' or t.sendmonth = '3') "+
  509. ") t where 1=1 "+
  510. "order by t.排序 ";
  511. console.log(strSql)
  512. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
  513. // strSql = "select * from (select to_char(t.id) id, to_char(t.NAME) name, to_char(t.REGISTERE) REGISTERE, to_char(t.NUM) NUM, 0 conent, '巡检' as type from VIEW_巡检 t where t.streetid = '310118107001' and t.sendyear = '2020' and (t.sendmonth = '7' or t.sendmonth = '8') union all select to_char(a.id) as id, to_char(a.系统标题) as name, to_char(a.系统内容) as registere, '' as num, 0 conent, '推送' as type from 系统推送信息 a where a.所属街道代码 = '310118107001' ) t where 1=1 order by nlssort(t.name, 'NLS_SORT=SCHINESE_PINYIN_M') desc ";
  514. }
  515. function getListDistrictInfo(townCode){
  516. document.getElementById("newDataUl").innerHTML="";
  517. var datet = new Date();
  518. var monthstr = datet.getMonth()+1;
  519. var monthstr1 = "";
  520. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  521. monthstr1="1,2,3"
  522. }
  523. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  524. monthstr1="4,5,6"
  525. }
  526. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  527. monthstr1="7,8,9"
  528. }
  529. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  530. monthstr1="10,11,12"
  531. }
  532. var whereStr = "";
  533. console.log("streetid", document.getElementById("select_street").value);
  534. if(document.getElementById("select_street").value!='-1' ){
  535. if(document.getElementById("select_street").value=="0"){
  536. whereStr+=" and streetid is null ";
  537. }else{
  538. whereStr+=" and streetid='"+document.getElementById("select_street").value+"' ";
  539. }
  540. }
  541. if(document.getElementById("select_source").value!='0' ){
  542. whereStr+=" and source="+document.getElementById("select_source").value;
  543. }
  544. if(document.getElementById("select_patrol").value!='-1'){
  545. if(document.getElementById("select_patrol").value=='0'){
  546. whereStr+=" and 巡检状态ID is not null ";
  547. }else {
  548. whereStr+=" and 巡检状态ID is null ";
  549. }
  550. }
  551. console.log("巡检状态ID", document.getElementById("select_conclusion").value);
  552. // if (document.getElementById("select_conclusion").value != '-1') {
  553. // whereStr += " and 巡检状态ID=" + document.getElementById("select_conclusion").value;
  554. // }
  555. let xc_value = document.getElementById("select_conclusion").value;
  556. if (xc_value != '-1' && xc_value != "") {
  557. whereStr += " and 巡检状态ID=" + document.getElementById("select_conclusion").value;
  558. }
  559. var strSql = " select * "+
  560. "from (select to_char(t.id) id, "+
  561. "to_char(t.NAME) name, "+
  562. " to_char(t.streetid) street, "+
  563. "to_char(t.REGISTERE) REGISTERE, "+
  564. "to_char(t.NUM) NUM, "+
  565. // "0 conent, "+
  566. "to_char(nvl(aa.content, '0')) conent, "+
  567. "'巡检' type, " +
  568. "to_char(t.streetid) streetid,t.专业,t.sex,t.street 街镇,t.巡检状态,t.排序,t.ZDPC " +
  569. "from VIEW_巡检 t "+
  570. "left join (select count(0) content, t.一户一档id "+
  571. "from 巡检状态 t where t.时间 between ADD_MONTHS(sysdate, -3) and sysdate "+
  572. "group by t.一户一档id) aa "+
  573. "on t.id = aa.一户一档id where 1=1 ";
  574. // 市级不过滤
  575. if(role != "1"){
  576. strSql += "and t.county like '"+districtcode+"%' ";
  577. }
  578. strSql += "and t.sendyear = '"+datet.getFullYear() +"' "+
  579. "and t.sendmonth in ("+monthstr1+") "+ whereStr +
  580. //"and t.sendmonth in (1,2,3) "+ whereStr +
  581. " order by t.排序,t.streetid) t where 1=1";
  582. console.log(strSql)
  583. // strSql = "select * from (select to_char(t.id) id, to_char(t.NAME) name, to_char(t.REGISTERE) REGISTERE, to_char(t.NUM) NUM, 0 conent, '巡检' as type from VIEW_巡检 t where t.streetid = '310118107001' and t.sendyear = '2020' and (t.sendmonth = '7' or t.sendmonth = '8') union all select to_char(a.id) as id, to_char(a.系统标题) as name, to_char(a.系统内容) as registere, '' as num, 0 conent, '推送' as type from 系统推送信息 a where a.所属街道代码 = '310118107001' ) t where 1=1 order by nlssort(t.name, 'NLS_SORT=SCHINESE_PINYIN_M') desc ";
  584. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
  585. $("#total").html("总计0条");
  586. }
  587. function querySuccess(evt,token){
  588. var jsonData = evt.data;
  589. if(jsonData != null){
  590. switch (token){
  591. case "queryUser":
  592. //console.log(jsonData)
  593. $("#total").html("总计"+jsonData.length+"条");
  594. document.getElementById("newDataUl").innerHTML="";
  595. for(var i=0;i<jsonData.length;i++){
  596. var address ;
  597. var name;
  598. var idcarid;
  599. var addressInfo = jsonData[i].REGISTERE.toString();
  600. if(addressInfo.indexOf("身份证:")>0){
  601. idcarid = addressInfo.substr(addressInfo.indexOf("身份证")+4,18);
  602. address = addressInfo.substr(addressInfo.indexOf("身份证")+22,addressInfo.length-1);
  603. }else{
  604. idcarid = jsonData[i].NUM;
  605. address = jsonData[i].REGISTERE;
  606. }
  607. name = jsonData[i].NAME;
  608. // 巡查员用户&区级管理员用户
  609. if(role=="3" ||role=="21"){
  610. //createNewDataList(jsonData[i].conent,address,name,idcarid,jsonData[i].id,'0');
  611. createNewDataList(jsonData[i].CONENT,address,name,idcarid,jsonData[i].ID,'0',jsonData[i].SEX,jsonData[i].专业,jsonData[i].街镇,jsonData[i].巡检状态,jsonData[i].ZDPC);
  612. }else{
  613. if(jsonData[i].type=='推送'){
  614. //createNewDataList(jsonData[i].conent,address,name,idcarid,jsonData[i].id,'1');
  615. createNewDataList(jsonData[i].CONENT,address,name,idcarid,jsonData[i].ID,'1',jsonData[i].SEX,jsonData[i].专业,jsonData[i].街镇,jsonData[i].巡检状态,jsonData[i].ZDPC);
  616. }else{
  617. //createNewDataList(jsonData[i].conent,address,name,idcarid,jsonData[i].id,jsonData[i].streetid);
  618. createNewDataList(jsonData[i].CONENT,address,name,idcarid,jsonData[i].ID,jsonData[i].STREETID,jsonData[i].SEX,jsonData[i].专业,jsonData[i].街镇,jsonData[i].巡检状态,jsonData[i].ZDPC);
  619. }
  620. }
  621. }
  622. break;
  623. case "queryQXList":
  624. Select_DyCreate("select_jd",jsonData,"towncode","town",true);
  625. // Select_DyCreate("select_jd1",jsonData,"towncode","town",true);
  626. break;
  627. case "queryQXListDis" :
  628. Select_DyCreate("select_street",jsonData,"TOWNCODE","TOWN",true);
  629. //区级
  630. if(role=="2"){
  631. // 获取完成情况
  632. totalInfoArea();
  633. getListDistrictInfo(districtcode);
  634. }else{
  635. getListDistrictInfo("");
  636. }
  637. break;
  638. case "queryPatrolStatus":
  639. Select_DyCreate("select_conclusion",jsonData,"ID","状态",true);
  640. break;
  641. case "queryConclusion":
  642. if(jsonData.length>0){
  643. document.getElementById("newDataUl1").innerHTML="";
  644. for(var i=0;i<jsonData.length;i++) {
  645. var strTask="";
  646. var xc="";
  647. if(jsonData[i].现场查见=='1'){
  648. xc="在联";
  649. }
  650. if(jsonData[i].现场查见=='0'){
  651. xc="失联";
  652. }
  653. var zy="";
  654. if(jsonData[i].内科=='1'){
  655. zy+="内科,"
  656. }
  657. if(jsonData[i].牙科=='1'){
  658. zy+="牙科,"
  659. }
  660. if(jsonData[i].医美=='1'){
  661. zy+="医美,"
  662. }
  663. if(jsonData[i].其他=='1'){
  664. zy+=jsonData[i].内容;
  665. }
  666. var height=40;
  667. if(jsonData[i].状态!="已搬离"){
  668. if(zy=="" &&xc==""){
  669. height=40;
  670. }else{
  671. strTask="<label style='width: 65%'>"+zy+"</label><label style='width: 35%'>"+xc+"</label>";
  672. height=80;
  673. }
  674. }
  675. var str = " <div class='mui-input-row' style='height:"+height+"px;'>"+
  676. "<label style='width: 65%'>"+jsonData[i].时间.substr(0,11)+"</label><label style='width: 35%'>"+jsonData[i].状态+"</label>"+strTask+
  677. "</div>";
  678. $("#newDataUl1").append(str);
  679. }
  680. mui("#conclusionpopover").popover('toggle', document.getElementById("ta"));
  681. }
  682. break;
  683. case "totalInfo":
  684. for(var i=0;i<jsonData.length;i++){
  685. var table = "<tr><td>"+jsonData[i].所属街道.toString()+"</td>"+
  686. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  687. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  688. "<td>"+jsonData[i].未排查.toString()+"</td></tr>";
  689. $("#tablebody").append(table);
  690. }
  691. break;
  692. case "queryInspectorFindByCity":{
  693. for(var i=0;i<jsonData.length;i++) {
  694. var sfz='';
  695. if(jsonData[i].身份证=="undefined" ||jsonData[i].身份证==''){
  696. sfz='';
  697. }else{
  698. sfz=jsonData[i].身份证;
  699. }
  700. var str = "<li id='list' class='mui-table-view-cell mui-media'>" +
  701. "<a href='javascript:;'>" +
  702. /*"<div class=' mui-pull-right'>" +
  703. "</div>" +*/
  704. "<div class='mui-media-body maintext' >" +
  705. "<p class='mui-ellipsis'>" +
  706. "<table style='font-size: 14px;color: grey;'>" +
  707. "<tr><td>所属街道:</td><td>"+jsonData[i].街道+"</td></tr>" +
  708. "<tr><td>行医人姓名:</td><td>"+jsonData[i].姓名+"</td></tr>" +
  709. "<tr><td>地址:</td><td>"+jsonData[i].执业地址+"</td></tr>" +
  710. "<tr><td>专业:</td><td>"+jsonData[i].从事专业+"</td></tr>" +
  711. "<tr><td>身份证:</td><td>"+sfz+"</td></tr>" +
  712. "<tr><td>上报时间:</td><td>"+jsonData[i].上报时间.substring(0,19)+"</td></tr>" +
  713. "<tr><td>巡查员手机:</td><td>"+jsonData[i].MOBILE+"</td></tr>" +
  714. "</table>" +
  715. "</p>"+
  716. "</div>" +
  717. "</a>" +
  718. "</li>";
  719. $("#newDataUlFind").append(str);
  720. }
  721. break;
  722. }
  723. case "queryInspectorFind":
  724. /* for(var i=0;i<jsonData.length;i++) {
  725. var str = "<li id='list' class='mui-table-view-cell mui-media'>" +
  726. "<a href='javascript:;'>" +
  727. "<div class='mui-media-body maintext' >" +
  728. "<p class='mui-ellipsis-'>" + jsonData[i].街道 + "</p>" +
  729. "<p class='mui-ellipsis'>" + jsonData[i].姓名 + "</p>" +
  730. "<p class='mui-ellipsis'>" + jsonData[i].执业地址 + "</p>" +
  731. "<p class='mui-ellipsis'>" + jsonData[i].从事专业 + "</p>" +
  732. "<p class='mui-ellipsis' >" + jsonData[i].身份证 + "</p>" +
  733. "<p class='mui-ellipsis' >" + jsonData[i].上报时间 + "</p>" +
  734. "<p class='mui-ellipsis' >" + jsonData[i].MOBILE + "</p>" +
  735. "</div>" +
  736. "</a>" +
  737. "</li>";
  738. $("#newDataUlFind").append(str);
  739. } */
  740. for(var i=0;i<jsonData.length;i++) {
  741. var sfz='';
  742. if(jsonData[i].身份证=="undefined" ||jsonData[i].身份证==''){
  743. sfz='';
  744. }else{
  745. sfz=jsonData[i].身份证;
  746. }
  747. var str = "<li id='list' class='mui-table-view-cell mui-media'>" +
  748. "<a href='javascript:;'>" +
  749. /*"<div class=' mui-pull-right'>" +
  750. "</div>" +*/
  751. "<div class='mui-media-body maintext' >" +
  752. "<p class='mui-ellipsis'>" +
  753. "<table style='font-size: 14px;color: grey;'>" +
  754. "<tr><td>所属街道:</td><td>"+jsonData[i].街道+"</td></tr>" +
  755. "<tr><td>行医人姓名:</td><td>"+jsonData[i].姓名+"</td></tr>" +
  756. "<tr><td>地址:</td><td>"+jsonData[i].执业地址+"</td></tr>" +
  757. "<tr><td>专业:</td><td>"+jsonData[i].从事专业+"</td></tr>" +
  758. "<tr><td>身份证:</td><td>"+sfz+"</td></tr>" +
  759. "<tr><td>上报时间:</td><td>"+jsonData[i].上报时间.substring(0,19)+"</td></tr>" +
  760. "<tr><td>巡查员手机:</td><td>"+jsonData[i].MOBILE+"</td></tr>" +
  761. "</table>" +
  762. "</p>"+
  763. /*"<p class='mui-ellipsis'>所属街道:" + jsonData[i].街道 + "</p>" +
  764. "<p class='mui-ellipsis'>行医人姓名:" + jsonData[i].姓名 + "</p>" +
  765. "<p class='mui-ellipsis'>地址:" + jsonData[i].执业地址 + "</p>" +
  766. "<p class='mui-ellipsis'>专业:" + jsonData[i].从事专业 + "</p>" +
  767. "<p class='mui-ellipsis' >身份证:" + jsonData[i].身份证 + "</p>" +
  768. "<p class='mui-ellipsis' >上报时间:" + jsonData[i].上报时间 + "</p>" +
  769. "<p class='mui-ellipsis' >巡查员手机:" + jsonData[i].MOBILE + "</p>" +*/
  770. "</div>" +
  771. "</a>" +
  772. "</li>";
  773. $("#newDataUlFind").append(str);
  774. }
  775. break;
  776. case "totalInfoCity":{
  777. var xfs=0;
  778. var ybc=0;
  779. var xcy=0;
  780. for(var i=0;i<jsonData.length;i++){
  781. if(jsonData[i].街道.toString()==""){
  782. var table="<li class='mui-table-view-cell mui-media'>"+
  783. "<div class='mui-media-body'>"+
  784. "<span style='font-size: 16px'>未匹配</span>"+
  785. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  786. "<tr>" +
  787. "<td style='width: 40%'>下发数:"+jsonData[i].下发数.toString()+"</td>" +
  788. "<td style='border:80px'>已巡查:"+jsonData[i].已排查.toString()+"</td>" +
  789. "</tr>" +
  790. "<tr>" +
  791. "<td style='width: 40%'>巡查率:"+(jsonData[i].已排查/jsonData[i].下发数*100).toFixed(1)+"%</td>" +
  792. "<td style='border:80px'>巡查员发现:0</td>" +
  793. "</tr>" +
  794. "</table></p>"+
  795. "</div>"+
  796. "</li>";
  797. $("#tablebody").append(table);
  798. }else{
  799. var table="<li class='mui-table-view-cell mui-media'>"+
  800. "<div class='mui-media-body'>"+
  801. "<span style='font-size: 16px'>区域:"+jsonData[i].街道.toString()+"</span>"+
  802. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  803. "<tr>" +
  804. "<td style='width: 40%'>下发数:"+jsonData[i].下发数.toString()+"</td>" +
  805. "<td style='border:80px'>已巡查:"+jsonData[i].已排查.toString()+"</td>" +
  806. "</tr>" +
  807. "<tr>" +
  808. "<td style='width: 40%'>巡查率:"+(jsonData[i].已排查/jsonData[i].下发数*100).toFixed(1)+"%</td>" +
  809. "<td style='border:80px'>巡查员发现:"+jsonData[i].巡查员发现.toString()+"</td>" +
  810. "</tr>" +
  811. "</table></p>"+
  812. "</div>"+
  813. "</li>";
  814. $("#tablebody").append(table);
  815. }
  816. xfs+=jsonData[i].下发数-0;
  817. ybc+=jsonData[i].已排查-0;
  818. xcy+=jsonData[i].巡查员发现-0;
  819. }
  820. /*var table = "<tr><td>合计</td>"+
  821. "<td>"+xfs+"</td>"+
  822. "<td>"+ybc+"</td>"+
  823. "<td>"+(ybc/xfs*100).toFixed(1)+"%</td>" +
  824. "<td>"+xcy+"</td>" +
  825. "</tr>";*/
  826. var table="<li class='mui-table-view-cell mui-media'>"+
  827. "<div class='mui-media-body'>"+
  828. "<span style='font-size: 16px'>合计</span>"+
  829. "<p class='mui-ellipsis'style='margin-left: 22%'><span>下发数:"+xfs+" </span><span style='margin-left: 30%'>已巡查:"+ybc+"</span></p>"+
  830. "<p class='mui-ellipsis'style='margin-left: 22%'><span>巡查率:"+(ybc/xfs*100).toFixed(1)+"%</span><span style='margin-left: 22%'>巡查员发现:"+xcy+"</span></p>"+
  831. "</div>"+
  832. "</li>";
  833. var table="<li class='mui-table-view-cell mui-media'>"+
  834. "<div class='mui-media-body'>"+
  835. "<span style='font-size: 16px'>合计</span>"+
  836. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  837. "<tr>" +
  838. "<td style='width: 40%'>下发数:"+xfs+"</td>" +
  839. "<td style='border:80'>已巡查:"+ybc+"</td>" +
  840. "</tr>" +
  841. "<tr>" +
  842. "<td style='width: 40%'>巡查率:"+(ybc/xfs*100).toFixed(1)+"%</td>" +
  843. "<td style='border:80px'>巡查员发现:"+xcy+"</td>" +
  844. "</tr>" +
  845. "</table></p>"+
  846. "</div>"+
  847. "</li>";
  848. $("#tablebody").append(table);
  849. break
  850. }
  851. case "totalInfoArea":
  852. // var xfs=0;
  853. // var ybc=0;
  854. // var xcy=0;
  855. /* for(var i=0;i<jsonData.length;i++){
  856. var table = "<tr><td>"+jsonData[i].COUNTYSSTRING.toString()+"</td>"+
  857. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  858. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  859. "<td>"+jsonData[i].未排查.toString()+"</td></tr>";
  860. $("#tablebody").append(table);
  861. } */
  862. /* for(var i=0;i<jsonData.length;i++){
  863. if(jsonData[i].STREET.toString()==""){
  864. var table = "<tr><td>未匹配</td>"+
  865. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  866. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  867. "<td>"+jsonData[i].巡查率.toString()+"</td>" +
  868. "<td>0</td>" +
  869. "</tr>";
  870. $("#tablebody").append(table);
  871. }else{
  872. var table = "<tr><td>"+jsonData[i].STREET.toString()+"</td>"+
  873. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  874. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  875. "<td>"+jsonData[i].巡查率.toString()+"</td>" +
  876. "<td>"+jsonData[i].巡查员发现.toString()+"</td>" +
  877. "</tr>";
  878. $("#tablebody").append(table);
  879. }
  880. xfs+=jsonData[i].下发数-0;
  881. ybc+=jsonData[i].已排查-0;
  882. xcy+=jsonData[i].巡查员发现-0;
  883. }
  884. var table = "<tr><td>合计</td>"+
  885. "<td>"+xfs+"</td>"+
  886. "<td>"+ybc+"</td>"+
  887. "<td>"+(ybc/xfs*100).toFixed(1)+"%</td>" +
  888. "<td>"+xcy+"</td>" +
  889. "</tr>";
  890. $("#tablebody").append(table);
  891. getListDistrictInfo(districtcode); */
  892. var xfs=0;
  893. var ybc=0;
  894. var xcy=0;
  895. for(var i=0;i<jsonData.length;i++){
  896. if(jsonData[i].STREET.toString()==""){
  897. var table="<li class='mui-table-view-cell mui-media'>"+
  898. "<div class='mui-media-body'>"+
  899. "<span style='font-size: 16px'>未匹配</span>"+
  900. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  901. "<tr>" +
  902. "<td style='width: 40%'>下发数:"+jsonData[i].下发数.toString()+"</td>" +
  903. "<td style='border:80px'>已巡查:"+jsonData[i].已排查.toString()+"</td>" +
  904. "</tr>" +
  905. "<tr>" +
  906. "<td style='width: 40%'>巡查率:"+(jsonData[i].已排查/jsonData[i].下发数*100).toFixed(1)+"%</td>" + "<td style='border:80px'>巡查员发现:0</td>" +
  907. "<td style='border:80px'>巡查员发现:0</td>" +
  908. "</tr>" +
  909. "</table></p>"+
  910. "</div>"+
  911. "</li>";
  912. $("#tablebody").append(table);
  913. }else{
  914. var table="<li class='mui-table-view-cell mui-media'>"+
  915. "<div class='mui-media-body'>"+
  916. "<span style='font-size: 16px'>区域:"+jsonData[i].STREET.toString()+"</span>"+
  917. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  918. "<tr>" +
  919. "<td style='width: 40%'>下发数:"+jsonData[i].下发数.toString()+"</td>" +
  920. "<td style='border:80px'>已巡查:"+jsonData[i].已排查.toString()+"</td>" +
  921. "</tr>" +
  922. "<tr>" +
  923. "<td style='width: 40%'>巡查率:"+(jsonData[i].已排查/jsonData[i].下发数*100).toFixed(1)+"%</td>" +
  924. "<td style='border:80px'>巡查员发现:"+jsonData[i].巡查员发现.toString()+"</td>" +
  925. "</tr>" +
  926. "</table></p>"+
  927. "</div>"+
  928. "</li>";
  929. $("#tablebody").append(table);
  930. }
  931. xfs+=jsonData[i].下发数-0;
  932. ybc+=jsonData[i].已排查-0;
  933. xcy+=jsonData[i].巡查员发现-0;
  934. }
  935. /*var table = "<tr><td>合计</td>"+
  936. "<td>"+xfs+"</td>"+
  937. "<td>"+ybc+"</td>"+
  938. "<td>"+(ybc/xfs*100).toFixed(1)+"%</td>" +
  939. "<td>"+xcy+"</td>" +
  940. "</tr>";*/
  941. var table="<li class='mui-table-view-cell mui-media'>"+
  942. "<div class='mui-media-body'>"+
  943. "<span style='font-size: 16px'>合计</span>"+
  944. "<p class='mui-ellipsis'style='margin-left: 22%'><span>下发数:"+xfs+" </span><span style='margin-left: 30%'>已巡查:"+ybc+"</span></p>"+
  945. "<p class='mui-ellipsis'style='margin-left: 22%'><span>巡查率:"+(ybc/xfs*100).toFixed(1)+"%</span><span style='margin-left: 22%'>巡查员发现:"+xcy+"</span></p>"+
  946. "</div>"+
  947. "</li>";
  948. var table="<li class='mui-table-view-cell mui-media'>"+
  949. "<div class='mui-media-body'>"+
  950. "<span style='font-size: 16px'>合计</span>"+
  951. "<p class='mui-ellipsis'style='margin-left: 22%'><table style='margin-left: 22%;font-size: 14px;color: grey;border-collapse:collapse;width: 100%'>" +
  952. "<tr>" +
  953. "<td style='width: 40%'>下发数:"+xfs+"</td>" +
  954. "<td style='border:80'>已巡查:"+ybc+"</td>" +
  955. "</tr>" +
  956. "<tr>" +
  957. "<td style='width: 40%'>巡查率:"+(ybc/xfs*100).toFixed(1)+"%</td>" +
  958. "<td style='border:80px'>巡查员发现:"+xcy+"</td>" +
  959. "</tr>" +
  960. "</table></p>"+
  961. "</div>"+
  962. "</li>";
  963. $("#tablebody").append(table);
  964. // getListDistrictInfo(districtcode);
  965. break;
  966. case "totalInfoArea1":
  967. for(var i=0;i<jsonData.length;i++){
  968. var table = "<tr><td>"+jsonData[i].TOWN.toString()+"</td>"+
  969. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  970. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  971. "<td>"+jsonData[i].未排查.toString()+"</td></tr>";
  972. $("#tablebody1").append(table);
  973. }
  974. break;
  975. case "totalInfo1":
  976. for(var i=0;i<jsonData.length;i++){
  977. var table = "<tr><td>"+jsonData[i].TOWN.toString()+"</td>"+
  978. "<td>"+jsonData[i].下发数.toString()+"</td>"+
  979. "<td>"+jsonData[i].已排查.toString()+"</td>"+
  980. "<td>"+jsonData[i].未排查.toString()+"</td></tr>";
  981. $("#tablebody1").append(table);
  982. }
  983. break;
  984. case "updateRead":
  985. getListDistrictInfo(districtcode);
  986. break;
  987. default:
  988. break;
  989. }
  990. }
  991. }
  992. function jdchange(){
  993. $("#tablebody").html('');
  994. if(Select_GetSelectText("select_jd") == "全部"){
  995. document.getElementById("tablebody").innerHTML="";
  996. totalInfoArea("全部");
  997. getListDistrictInfo(districtcode);
  998. }else{
  999. document.getElementById("tablebody").innerHTML="";
  1000. totalInfo(Select_GetSelectValue("select_jd"));
  1001. }
  1002. }
  1003. function totalInfoArea() {
  1004. var datet = new Date();
  1005. var monthstr = datet.getMonth()+1;
  1006. var monthstr1 = "";
  1007. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  1008. monthstr1="1,2,3"
  1009. }
  1010. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  1011. monthstr1="4,5,6"
  1012. }
  1013. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  1014. monthstr1="7,8,9"
  1015. }
  1016. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  1017. monthstr1="10,11,12"
  1018. }
  1019. var where = "";
  1020. var where1="";
  1021. if(monthstr=='1' || monthstr=='2' || monthstr=='3'){
  1022. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/01' and '"+datet.getFullYear()+"/03'";
  1023. }else if(monthstr=='4' || monthstr=='5' ||monthstr=='6'){
  1024. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/04' and '"+datet.getFullYear()+"/06'";
  1025. }
  1026. else if(monthstr=='7' || monthstr=='8' ||monthstr=='9'){
  1027. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/07' and '"+datet.getFullYear()+"/09'";
  1028. }else if(monthstr=='10' ||monthstr=='11' ||monthstr=='12'){
  1029. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/10' and '"+datet.getFullYear()+"/12'";
  1030. }
  1031. var strSql ="select aa.STREET,aa.下发数,NVL(bb.已排查,0) 已排查,round(NVL(bb.已排查, 0)/NVL(aa.下发数, 0),3)*100 || '%' 巡查率,NVL(巡查员发现,0) 巡查员发现 from ( "+
  1032. "select count(1) 下发数,t.STREETID 街道编码,t.STREET from view_巡检 t where t.sendyear='"+new Date().getFullYear()+"' " +
  1033. "and t.sendmonth in ("+datet.getMonth()+","+monthstr+","+monthstr1+") and t.county like '"+districtcode+"%' group by t.STREET,t.STREETID) aa "+
  1034. //"and t.sendmonth in (1,2,3) and t.county like '"+districtcode+"%' group by t.STREET,t.STREETID) aa "+
  1035. "left join (select count(1) 已排查,t.STREETID 街道编码 from (select distinct(t.一户一档id) from 巡检状态 t ) aa left join view_巡检 t on t.id=aa.一户一档id "+
  1036. "where t.sendyear='"+new Date().getFullYear()+"' and t.county like '"+districtcode+"%' and t.sendmonth in ("+monthstr1+") group by t.STREETID) bb "+
  1037. //"where t.sendyear='"+new Date().getFullYear()+"' and t.county like '"+districtcode+"%' and t.sendmonth in (1,2,3) group by t.STREETID) bb "+
  1038. "on aa.街道编码=bb.街道编码 " +
  1039. " left join (select yy.街道 ,count(yy.街道) 巡查员发现 from 巡检新增 yy "+where1+" group by yy.街道) cc on aa.STREET=cc.街道 order by aa.STREET";
  1040. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"totalInfoArea");
  1041. }
  1042. function totalInfoCity() {
  1043. var datet = new Date();
  1044. var monthstr = datet.getMonth()+1;
  1045. var monthstr1 = "";
  1046. if(monthstr=="1" ||monthstr=="2" ||monthstr=="3" ){
  1047. monthstr1="1,2,3"
  1048. }
  1049. if(monthstr=="4" ||monthstr=="5" ||monthstr=="6" ){
  1050. monthstr1="4,5,6"
  1051. }
  1052. if(monthstr=="7" ||monthstr=="8" ||monthstr=="9" ){
  1053. monthstr1="7,8,9"
  1054. }
  1055. if(monthstr=="10" ||monthstr=="11" ||monthstr=="12" ){
  1056. monthstr1="10,11,12"
  1057. }
  1058. var where = "";
  1059. var where1="";
  1060. if(monthstr=='1' || monthstr=='2' || monthstr=='3'){
  1061. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/01' and '"+datet.getFullYear()+"/03'";
  1062. }else if(monthstr=='4' || monthstr=='5' ||monthstr=='6'){
  1063. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/04' and '"+datet.getFullYear()+"/06'";
  1064. }
  1065. else if(monthstr=='7' || monthstr=='8' ||monthstr=='9'){
  1066. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/07' and '"+datet.getFullYear()+"/09'";
  1067. }else if(monthstr=='10' ||monthstr=='11' ||monthstr=='12'){
  1068. where1=" where to_char(yy.上报时间,'yyyy/mm') between '"+datet.getFullYear()+"/10' and '"+datet.getFullYear()+"/12'";
  1069. }
  1070. var strSql ="select aa.街道,aa.下发数,NVL(bb.已排查,0) 已排查,round(NVL(bb.已排查, 0)/NVL(aa.下发数, 0),3)*100 || '%' 巡查率,NVL(巡查员发现,0) 巡查员发现 from ( "+
  1071. "select count(1) 下发数,t.COUNTYSSTRING 街道 ,t.COUNTY from view_巡检 t where t.sendyear='"+new Date().getFullYear()+"' " +
  1072. "and t.sendmonth in ("+datet.getMonth()+","+monthstr+","+monthstr1+") group by t.COUNTYSSTRING,t.COUNTY) aa "+
  1073. "left join (select count(1) 已排查,t.county 街道编码 from (select distinct(t.一户一档id) from 巡检状态 t ) aa left join view_巡检 t on t.id=aa.一户一档id "+
  1074. "where t.sendyear='"+new Date().getFullYear()+"' and t.sendmonth in ("+monthstr1+") group by t.county) bb "+
  1075. "on aa.county=bb.街道编码 " +
  1076. " left join (select yy.区县 ,count(yy.区县) 巡查员发现 from 巡检新增 yy "+where1+" group by yy.区县) cc on '%'||aa.county||'%' like cc.区县 order by aa.county";
  1077. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"totalInfoCity");
  1078. }
  1079. function totalInfo(street){
  1080. var where = "";
  1081. if(street == "全部"){
  1082. where = " and streetid like '"+districtcode+"%'";
  1083. }else{
  1084. where = " and streetid like '"+street+"%'";
  1085. }
  1086. /* var strSql = "select aa.*,NVL(bb.已排查,0) 已排查,NVL(aa.下发数,0)-NVL(bb.已排查,0) 未排查 from (select count(1) 下发数,aa.town 所属街道,aa.towncode from (select streetid,town,towncode from view_巡检 t left join 系统用户信息表 x on t.streetid=x.towncode where t.sendyear='"+new Date().getFullYear()+"' "+where+") aa group by aa.town,aa.towncode) aa"+
  1087. " left join "+
  1088. " (select count(1) 已排查,x.town 所属街道 from (select distinct(t.一户一档id) from 巡检状态 t ) aa left join view_巡检 t on t.id=aa.一户一档id left join 系统用户信息表 x on t.streetid=x.towncode where t.sendyear='"+new Date().getFullYear()+"' "+where+" group by x.town ) bb"+
  1089. " on aa.所属街道=bb.所属街道 order by aa.towncode asc"; */
  1090. var strSql = "select aa.*,NVL(bb.已排查,0) 已排查,NVL(aa.下发数,0)-NVL(bb.已排查,0) 未排查 from (select count(1) 下发数,aa.town 所属街道,aa.towncode from (select streetid,town,towncode from view_巡检 t left join 系统用户信息表 x on t.streetid=x.towncode where t.sendyear='"+new Date().getFullYear()+"' "+where+") aa group by aa.town,aa.towncode) aa"+
  1091. " left join "+
  1092. " (select count(1) 已排查,x.town 所属街道 from (select distinct(t.一户一档id) from 巡检状态 t ) aa left join view_巡检 t on t.id=aa.一户一档id left join 系统用户信息表 x on t.streetid=x.towncode where t.sendyear='"+new Date().getFullYear()+"' "+where+" group by x.town ) bb"+
  1093. " on aa.所属街道=bb.所属街道 order by aa.towncode asc";
  1094. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"totalInfo");
  1095. }
  1096. function jdchange1(){
  1097. /* $("#tablebody1").html('');
  1098. if(Select_GetSelectText("select_jd1") == "全部"){
  1099. document.getElementById("tablebody1").innerHTML="";
  1100. totalInfoArea1("全部");
  1101. }else{
  1102. document.getElementById("tablebody1").innerHTML="";
  1103. totalInfo1(Select_GetSelectValue("select_jd1"));
  1104. } */
  1105. $("#tablebody1").html('');
  1106. if(Select_GetSelectText("select_jd1") == "全部"){
  1107. document.getElementById("tablebody1").innerHTML="";
  1108. totalInfoArea1("全部");
  1109. }else{
  1110. document.getElementById("tablebody1").innerHTML="";
  1111. totalInfo1(Select_GetSelectValue("select_jd1"));
  1112. }
  1113. }
  1114. function totalInfoArea1() {
  1115. var datet = new Date();
  1116. var monthstr = datet.getMonth()+1;
  1117. var where = "";
  1118. /* var strSql ="select t.下发数,y.town,NVL(t1.已排查,0) 已排查,NVL(t.下发数,0)-NVL(t1.已排查,0) 未排查 from (select count(*) 下发数,a.所属区县代码 from 系统推送信息 a where 1=1 "+
  1119. "and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate group by a.所属区县代码) t "+
  1120. "left join (select count(a.所属区县代码) 已排查,a.所属区县代码 from JSWGISDATA.系统推送信息 a "+
  1121. "left join (select distinct t.一户一档id from 巡检状态 t "+
  1122. "where 1 = 1 and t.时间 between ADD_MONTHS(sysdate, -2) and sysdate ) aa on a.id = aa.一户一档id "+
  1123. "where 1 = 1 and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate group by a.所属区县代码 "+
  1124. ") t1 on t.所属区县代码=t1.所属区县代码 "+
  1125. "left join (select distinct(t.district) town,t.districtcode countysstring from 系统用户信息表 t where t.districtcode !='310' order by districtcode) y "+
  1126. "on t.所属区县代码=y.countysstring"; */
  1127. var strSql ="select t.下发数,y.town,NVL(t1.已排查,0) 已排查,NVL(t.下发数,0)-NVL(t1.已排查,0) 未排查 from (select count(*) 下发数,a.所属区县代码 from 系统推送信息 a where 1=1 "+
  1128. "and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate group by a.所属区县代码) t "+
  1129. "left join (select count(a.所属区县代码) 已排查,a.所属区县代码 from 系统推送信息 a "+
  1130. "left join (select distinct t.一户一档id from 巡检状态 t "+
  1131. "where 1 = 1 and t.时间 between ADD_MONTHS(sysdate, -2) and sysdate ) aa on a.id = aa.一户一档id "+
  1132. "where 1 = 1 and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate group by a.所属区县代码 "+
  1133. ") t1 on t.所属区县代码=t1.所属区县代码 "+
  1134. "left join (select distinct(t.district) town,t.districtcode countysstring from 系统用户信息表 t where t.districtcode !='310' order by districtcode) y "+
  1135. "on t.所属区县代码=y.countysstring";
  1136. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"totalInfoArea1");
  1137. }
  1138. function totalInfo1(street){
  1139. var where = "";
  1140. /* if(street == "全部"){
  1141. where = " and streetid like '"+districtcode+"%'";
  1142. }else{
  1143. where = " and 所属街道代码 like '"+street+"%' ";
  1144. } */
  1145. if(street == "全部"){
  1146. where = " and streetid like '"+districtcode+"%'";
  1147. }else{
  1148. where = " and 所属街道代码 like '"+street+"%' ";
  1149. }
  1150. /* var strSql ="select t.下发数,y.town,NVL(t1.已排查,0) 已排查,NVL(t.下发数,0)-NVL(t1.已排查,0) 未排查 from (select count(*) 下发数,a.所属街道代码 from 系统推送信息 a where 1=1 "+
  1151. "and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate "+where+" group by a.所属街道代码) t "+
  1152. "left join (select count(a.所属街道代码) 已排查,a.所属街道代码 from JSWGISDATA.系统推送信息 a "+
  1153. "left join (select distinct t.一户一档id from 巡检状态 t "+
  1154. "where 1 = 1 and t.时间 between ADD_MONTHS(sysdate, -2) and sysdate ) aa on a.id = aa.一户一档id "+
  1155. "where 1 = 1 and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate "+where+" group by a.所属街道代码 "+
  1156. ") t1 on t.所属街道代码=t1.所属街道代码 "+
  1157. "left join (select distinct(t.town) town,t.towncode from 系统用户信息表 t where t.districtcode !='310' order by t.towncode) y "+
  1158. "on t.所属街道代码=y.towncode"; */
  1159. var strSql ="select t.下发数,y.town,NVL(t1.已排查,0) 已排查,NVL(t.下发数,0)-NVL(t1.已排查,0) 未排查 from (select count(*) 下发数,a.所属街道代码 from 系统推送信息 a where 1=1 "+
  1160. "and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate "+where+" group by a.所属街道代码) t "+
  1161. "left join (select count(a.所属街道代码) 已排查,a.所属街道代码 from 系统推送信息 a "+
  1162. "left join (select distinct t.一户一档id from 巡检状态 t "+
  1163. "where 1 = 1 and t.时间 between ADD_MONTHS(sysdate, -2) and sysdate ) aa on a.id = aa.一户一档id "+
  1164. "where 1 = 1 and a.推送时间 between ADD_MONTHS(sysdate,-2) and sysdate "+where+" group by a.所属街道代码 "+
  1165. ") t1 on t.所属街道代码=t1.所属街道代码 "+
  1166. "left join (select distinct(t.town) town,t.towncode from 系统用户信息表 t where t.districtcode !='310' order by t.towncode) y "+
  1167. "on t.所属街道代码=y.towncode";
  1168. new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"totalInfo1");
  1169. }
  1170. function conditionSearch(){
  1171. // if( role=="1"){
  1172. // mui.alert('模块更新中 敬请期待!!!', '系统提示', function() {});
  1173. // }else{
  1174. // mui("#popover").popover('toggle', document.getElementById("ta"));
  1175. // }
  1176. mui("#popover").popover('toggle', document.getElementById("ta"));
  1177. }
  1178. function conclusionPopover(id) {
  1179. var sql="select t.时间,y.状态,y1.WHETHERINSCENE 现场查见," +
  1180. "INTERNALMEDICINE 内科,DENTAL 牙科,MEDICAKBEAUTY 医美," +
  1181. "MEDICINEOTHER 其他,MEDICINEOTHERCONTENT 内容 from 巡检状态 t " +
  1182. "left join 编码表巡检状态 y on t.状态=y.id " +
  1183. "left join PATROLSTATUS y1 on t.id=y1.PATROLSTATUSID where t.一户一档id="+id;
  1184. new WsCommonClass("QueryDataBaseJson",["sql"],[sql],querySuccess,"queryConclusion");
  1185. }
  1186. function onclickRead(id) {
  1187. mui.confirm('是否已读','提示',['取消','确定'],function (e) {
  1188. if(e.index==1){
  1189. var sql="update 一户一档 t set t.read=1 where id="+id;
  1190. new WsCommonClass("QueryDataBaseJson",["sql"],[sql],querySuccess,"updateRead");
  1191. }else{
  1192. return
  1193. }
  1194. });
  1195. }
  1196. function closeSearch() {
  1197. // if( role=="2"){
  1198. if( role=="2" || role=="1"){
  1199. getListDistrictInfo('');
  1200. }else if(role=="21" || role=="3"){
  1201. getListInfo('');
  1202. }
  1203. mui('#popover').popover('hide');
  1204. }
  1205. function changePass(){
  1206. window.location="changePass.html?date="+getDateStr();
  1207. }
  1208. function help(){
  1209. window.location="help.html?date="+getDateStr();
  1210. }
  1211. </script>
  1212. </head>
  1213. <body>
  1214. <header class="mui-bar mui-bar-nav" style="height: 3.75rem;">
  1215. <div style="float: left;margin-top: 0.6rem;margin-left:-0.4375rem;">
  1216. <input type="text" id="towninfo" class="mui-input-clear" placeholder="青浦区/华新镇" style="width: 8.75rem;" disabled="disabled">
  1217. </div>
  1218. <div id="total" style="margin-top: 1.3rem;margin-left: 0.3rem;width:4.6875rem;float: left;font-size: 15px">
  1219. 总计0条
  1220. </div>
  1221. <div class="headimg">
  1222. <img onclick="conditionSearch()" src="assets/image/sousuo.png" />
  1223. </div>
  1224. <div class="headimg">
  1225. <img onclick="help()" src="assets/image/help.png"/>
  1226. </div>
  1227. <div class="headimg" >
  1228. <img onclick="changePass()" src="assets/image/update.png"/>
  1229. </div>
  1230. </header>
  1231. <div class="maincontent">
  1232. <div style="padding: 10px 10px;display:none" id="div_totalcon" >
  1233. <div id="segmentedControl" class="mui-segmented-control">
  1234. <a class="mui-control-item mui-active" href="#item1">任务清单</a>
  1235. <a class="mui-control-item" href="#item2">完成情况</a>
  1236. <a class="mui-control-item" href="#item3">巡查员发现</a>
  1237. </div>
  1238. </div>
  1239. <div id="item1" class="mui-control-content mui-active" style="padding-bottom: 3.125rem;">
  1240. <ul class="mui-table-view" id="newDataUl"></ul>
  1241. </div>
  1242. <div id="item2" class="mui-control-content" style="padding-left: 0.3125rem;padding-right: 0.3125rem;padding-bottom: 3.125rem">
  1243. <!-- <select id="select_jd" onchange="jdchange()" ></select> -->
  1244. <ul width="100%" id="tablebody" class="mui-table-view" style="line-height:25px;"></ul>
  1245. <!-- <table width="100%" class="table" id="tablevalue">
  1246. <tr>
  1247. <th width=40%>区域</th>
  1248. <th width=20%>下发数</th>
  1249. <th width=20%>已巡查</th>
  1250. <th width=20%>巡查率</th>
  1251. <th width=20%>巡查员发现</th>
  1252. </tr>
  1253. <tbody id="tablebody"></tbody>
  1254. </table> -->
  1255. </div>
  1256. <div id="item3" class="mui-control-content" style="padding-left: 0.3125rem;padding-right: 0.3125rem;padding-bottom: 3.125rem">
  1257. <!-- <select id="select_jd1" onchange="jdchange1()" ></select> -->
  1258. <ul class="mui-table-view" id="newDataUlFind"></ul>
  1259. <!-- <table width="100%" class="table" id="tablevalue1">
  1260. <tr>
  1261. <th width=40%>区域</th>
  1262. <th width=20%>下发数</th>
  1263. <th width=20%>已排查</th>
  1264. <th width=20%>未排查</th>
  1265. </tr>
  1266. <tbody id="tablebody1"></tbody>
  1267. </table> -->
  1268. </div>
  1269. </div>
  1270. <nav class="mui-bar mui-bar-tab">
  1271. <a href="firstPage.html" id="mainpage" class="mui-tab-item mui-active">
  1272. <span class="mui-icon mui-icon-home"></span>
  1273. <span class="mui-tab-label">主页</span>
  1274. </a>
  1275. <a href="projectInfo.html" id="addpage" class="mui-tab-item">
  1276. <span class="mui-icon mui-icon-chatboxes"></span>
  1277. <span class="mui-tab-label">添加</span>
  1278. </a>
  1279. <a href="myInfo.html" id="exit" class="mui-tab-item">
  1280. <span class="mui-icon mui-icon-gear"></span>
  1281. <span class="mui-tab-label">退出</span>
  1282. </a>
  1283. </nav>
  1284. <div id="popover" class="mui-popover " style="height:100px;">
  1285. <form class="mui-input-group" style="border-radius: 8px;">
  1286. <!-- <div class="mui-input-row">
  1287. <label>地址</label>
  1288. <input type="text" class="mui-input-clear" placeholder="请输入地址" id="address">
  1289. </div>
  1290. <div class="mui-input-row">
  1291. <label>姓名</label>
  1292. <input type="text" class="mui-input-clear" placeholder="请输入姓名" id="name">
  1293. </div>
  1294. <div class="mui-button-row">
  1295. <button type="button" class="mui-btn mui-btn-primary" onclick="closeSearch('')">确认</button>
  1296. </div> -->
  1297. <div class="mui-input-row" id="streetDiv">
  1298. <label>街镇</label>
  1299. <select id="select_street" ></select>
  1300. </div>
  1301. <div class="mui-input-row">
  1302. <label>任务来源</label>
  1303. <select id="select_source" >
  1304. <option value="0">全部</option>
  1305. <option value="1">一户一档</option>
  1306. <option value="2">迁移比对</option>
  1307. <option value="3">既往未巡查</option>
  1308. <option value="4">其他</option>
  1309. <option value="5">区所新增</option>
  1310. </select>
  1311. </div>
  1312. <div class="mui-input-row">
  1313. <label>是否巡查</label>
  1314. <select id="select_patrol" >
  1315. <option value="-1">全部</option>
  1316. <option value="0">已巡查</option>
  1317. <option value="1">未巡查</option>
  1318. </select>
  1319. </div>
  1320. <div class="mui-input-row">
  1321. <label>巡查结论</label>
  1322. <select id="select_conclusion" ></select>
  1323. </div>
  1324. <div class="mui-button-row">
  1325. <button type="button" class="mui-btn mui-btn-primary" onclick="closeSearch('')">确认</button>
  1326. </div>
  1327. </form>
  1328. </div>
  1329. <div id="conclusionpopover" class="mui-popover " style="height:100px;">
  1330. <form class="mui-input-group" style="border-radius: 8px;" id="newDataUl1">
  1331. </form>
  1332. </div>
  1333. <nav class="mui-bar mui-bar-tab" style="margin: 0 auto;margin-bottom: 100%;border: #6641E2;width: 0px;height: 0px;" id="ta">
  1334. </nav>
  1335. </body>
  1336. </html>