mainTest.html 67 KB

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