approveTest.html 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  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.min.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="http://pv.sohu.com/cityjson?ie=utf-8"></script>
  15. <script src="js/recordAction.js"></script>
  16. <script src="js/mui.min.js"></script>
  17. <!--<script src="js/jquery.min.js"></script>-->
  18. <!-- <script src="js/uploadImgs.js"></script> -->
  19. <script src="js/promptAndAlert.js"></script>
  20. <script src="js/fileImg.js"></script>
  21. <script src="js/jweixin.js"></script>
  22. <!--<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>-->
  23. <script type="text/javascript">
  24. var SEQ_REPORT_ID=0;
  25. var insertStatus=0;
  26. mui.init();
  27. var lat=Android.getLatitude();
  28. var long=Android.getLongitude();
  29. /* $.ajax({
  30. url: "http://139.196.105.31:8080/LoginService/DMWebservice",
  31. type: "post",
  32. data: {method: 'getGeolocationConfig',data:''},
  33. dataType: "json",
  34. success: function (data) {
  35. // var datad = data;
  36. wx.config({
  37. beta:true,
  38. debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来
  39. appId: data.appid, // 必填,公众号的唯一标识
  40. timestamp: data.timestamp, // 必填,生成签名的时间戳
  41. nonceStr: data.noncestr, // 必填,生成签名的随机串
  42. signature: data.signature,// 必填,签名,见附录1
  43. jsApiList: [
  44. "getLocation"
  45. ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
  46. });
  47. wx.ready(function(){
  48. // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
  49. wx.getLocation({
  50. type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
  51. success: function (res) {
  52. var latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90
  53. var longitude = res.longitude; // 经度,浮点数,范围为180 ~ -180。
  54. var speed = res.speed; // 速度,以米/每秒计
  55. var accuracy = res.accuracy; // 位置精度
  56. console.log(latitude)
  57. console.log(longitude)
  58. $("#txt_jwd2").val(latitude);
  59. $("#txt_jwd1").val(longitude);
  60. //取消loading遮罩层
  61. this.show=false;
  62. }
  63. });
  64. });
  65. wx.error(function (res) {
  66. //alert(res);
  67. });
  68. }
  69. });*/
  70. </script>
  71. <style>
  72. * {
  73. margin: 0;
  74. padding: 0;
  75. }
  76. html,
  77. body {
  78. width: 100%;
  79. height: 100%;
  80. overflow: hidden;
  81. }
  82. .logon_bg{
  83. position: absolute;
  84. width:100%;
  85. bottom: 0;
  86. }
  87. .bak{
  88. width: 100%;
  89. height: 100%;
  90. }
  91. .mainDiv{
  92. top: 0;
  93. position: absolute;
  94. width: 100%;
  95. height: 100%;
  96. margin-top: 2.375rem;
  97. }
  98. .dynamic_images ul {
  99. margin: 0;
  100. padding: 0;
  101. }
  102. .dynamic_images ul li {
  103. position: relative;
  104. display: inline-block;
  105. margin-top: 10px;
  106. margin-bottom: 10px;
  107. margin-right: 5px;
  108. margin-left: 10px;
  109. float: left;
  110. list-style: none;
  111. }
  112. .dynamic_images ul li img {
  113. width: 50px;
  114. height: 50px;
  115. border-radius: 5px;
  116. }
  117. .del {
  118. display: inline-block;
  119. position: absolute;
  120. top:6px;
  121. right: 0px;
  122. width: 12px;
  123. height: 2px;
  124. background: #ED544D;
  125. line-height: 0;
  126. font-size: 0;
  127. vertical-align: middle;
  128. -webkit-transform: rotate(45deg);
  129. }
  130. .del:after {
  131. content: "/";
  132. display: block;
  133. width: 12px;
  134. height: 2px;
  135. background: #ED544D;
  136. -webkit-transform: rotate(-90deg);
  137. }
  138. #showimg{
  139. width: 60px;
  140. height: 50px;
  141. margin: auto auto;
  142. display: table-cell;
  143. vertical-align: middle;
  144. text-align: center;
  145. margin-top: 13%;
  146. }
  147. .image-upload > input
  148. {
  149. display: none;
  150. }
  151. .image-uploads > input
  152. {
  153. display: none;
  154. }
  155. </style>
  156. <script>
  157. mui.init({
  158. swipeBack:true //启用右滑关闭功能
  159. });
  160. $(document).on("click", '#mainpage', function() {
  161. window.location="mainTest.html?date="+getDateStr() ;
  162. });
  163. $(document).on("click", '#addpage', function() {
  164. // mui.alert('模块更新中 敬请期待!!!', '系统提示', function() {});
  165. window.location="addTest.html?date="+getDateStr();
  166. });
  167. $(document).on("click", '#back', function() {
  168. window.location="mainTest.html?date="+getDateStr() ;
  169. });
  170. $(document).on("click", '#exit', function() {
  171. var btnArray = ['否', '是'];
  172. mui.confirm('是否确认退出登录?', '系统提示', btnArray, function(e) {
  173. if (e.index == 1) {
  174. window.location="loginTest.html";
  175. } else {
  176. }
  177. })
  178. });
  179. // $(document).on("click", '#back', function() {
  180. // window.location="main.html";
  181. // });
  182. var idcard;
  183. var caseid;
  184. window.onload = function (){
  185. insertStatus = 0; //重置更新状态
  186. //querySEQ_REPORT_ID();//查下一个序列
  187. //getLatLon();
  188. setInterval(onloadjwd,1000*2 );//定时查询当前经纬度
  189. var name = localStorage.getItem("name");
  190. idcard = localStorage.getItem("idcard");
  191. var address = localStorage.getItem("address");
  192. caseid = localStorage.getItem("caseid");
  193. console.log(caseid+"***")
  194. var sex = localStorage.getItem("sex");
  195. var major = localStorage.getItem("major");
  196. $("#txt_name").val(name);
  197. // $('#checkUserName').attr("val ue",sessionUser.name);
  198. $("#txt_idcard").val(idcard);
  199. var sex="";
  200. if(idcard !="" || idcard.length==18){
  201. if(idcard.substring(16,17)%2==0){
  202. sex="女";
  203. }else{
  204. sex="男";
  205. }
  206. }
  207. $("#txt_add").val(address);
  208. if(sex=='0'){
  209. $("#txt_sex").val('男');
  210. }else if(sex=='1'){
  211. $("#txt_sex").val('女');
  212. }else{
  213. if(sex==""){
  214. $("#txt_sex").val('无');
  215. }else{
  216. $("#txt_sex").val(sex);
  217. }
  218. }
  219. $("#txt_major").val(major);
  220. // loadMajor();
  221. }
  222. // 1 1 营业中
  223. // 4 4 未营业
  224. // 2 2 已搬离
  225. // 3 3 待确定
  226. var currentClickid ;
  227. var uploadobj;
  228. var bz;
  229. function updateDb(state){
  230. currentClickid = state;
  231. determineSubmit();
  232. //uploadPicture();
  233. }
  234. function onloadjwd(){
  235. $("#txt_jwd2").val(lat);
  236. $("#txt_jwd1").val(long);
  237. lat=Android.getLatitude();
  238. long=Android.getLongitude();
  239. }
  240. function commitok(){
  241. document.getElementById("syyalertDiv").remove();
  242. try{
  243. document.getElementById("alertDiv").style.display ="";
  244. }catch(e){}
  245. }
  246. function applyToDBNew() {
  247. var TaskStatus=document.getElementsByName("TaskStatus");
  248. var status="";
  249. for(var i=0;i<TaskStatus.length;i++){
  250. if(TaskStatus[i].checked==true){
  251. status=TaskStatus[i].value;
  252. }
  253. }
  254. var medicine="";
  255. var medicineScene=document.getElementsByName("medicineScene");
  256. for(var i=0;i<medicineScene.length;i++){
  257. if(medicineScene[i].checked==true){
  258. medicine=medicineScene[i].value;
  259. }
  260. }
  261. // 未取得合法资质
  262. if(hfzzStatus == 0){
  263. if(status==""){
  264. mui.alert('巡查结果必选!','提示',['确定'],null,'');
  265. //alert("巡查结果必选!");
  266. return
  267. }else if(status!="2"){
  268. if(medicine==""){
  269. mui.alert('行医人是否在现场必选!','提示',['确定'],null,'');
  270. //alert("行医人是否在现场必选!");
  271. return
  272. }
  273. }
  274. // 执业中
  275. if(status=="1"){
  276. var nk=document.getElementById("nk").checked;
  277. var yk=document.getElementById("yk").checked;
  278. var ylmr=document.getElementById("ylmr").checked;
  279. var xyqt=document.getElementById("xyqt").checked;
  280. if(nk==false && yk==false&&ylmr==false&&xyqt==false){
  281. mui.alert('行医内容必选!','提示',['确定'],null,'');
  282. return
  283. }
  284. }
  285. // 已搬离
  286. if(status == "2"){
  287. var yblStatus = document.getElementsByName("yblStatus");
  288. var _status="";
  289. for(var i=0;i<yblStatus.length;i++){
  290. if(yblStatus[i].checked==true){
  291. _status=yblStatus[i].value;
  292. }
  293. }
  294. if(_status==""){
  295. mui.alert('判断依据必选!','提示',['确定'],null,'');
  296. //alert("判断依据必选!");
  297. return
  298. }
  299. let _value = document.getElementById("yblyjContent").value;
  300. if(_status == "5"&&_value == ""){
  301. mui.alert('请填写判断依据!','提示',['确定'],null,'');
  302. //alert("请填写判断依据!");
  303. return
  304. }
  305. }
  306. // 未执业
  307. if(status == "4"){
  308. var wzyStatus = document.getElementsByName("wzyStatus");
  309. var _status="";
  310. for(var i=0;i<wzyStatus.length;i++){
  311. if(wzyStatus[i].checked==true){
  312. _status=wzyStatus[i].value;
  313. }
  314. }
  315. if(_status==""){
  316. mui.alert('判断依据必选!','提示',['确定'],null,'');
  317. //alert("判断依据必选!");
  318. return
  319. }
  320. let _value = document.getElementById("wzyyjContent").value;
  321. if(_status == "3"&&_value == ""){
  322. mui.alert('请填写判断依据!','提示',['确定'],null,'');
  323. //alert("请填写判断依据!");
  324. return
  325. }
  326. }
  327. // 可疑执业
  328. if(status == "3"){
  329. var yp = document.getElementById("yp").checked;
  330. if(yp){
  331. var _value = document.getElementById("ypNum").value;
  332. if(_value == ""){
  333. mui.alert('请填写药品数量!','提示',['确定'],null,'');
  334. //alert("请填写药品数量!");
  335. return
  336. }
  337. }
  338. var ylqx = document.getElementById("ylqx").checked;
  339. if(ylqx){
  340. var _value = document.getElementById("ylqxNum").value;
  341. if(_value == ""){
  342. mui.alert('请填写医疗器械数量!','提示',['确定'],null,'');
  343. //alert("请填写医疗器械数量!");
  344. return
  345. }
  346. }
  347. var ylfqw = document.getElementById("ylfqw").checked;
  348. if(ylfqw){
  349. var _value = document.getElementById("ylfqwNum").value;
  350. if(_value == ""){
  351. mui.alert('请填写医疗废弃物数量!','提示',['确定'],null,'');
  352. //alert("请填写医疗废弃物数量!");
  353. return
  354. }
  355. }
  356. var gpmc = document.getElementById("gpmc").checked;
  357. if(gpmc){
  358. var _value = document.getElementById("gpmcName").value;
  359. if(_value == ""){
  360. mui.alert('请填写挂牌名称!','提示',['确定'],null,'');
  361. //alert("请填写挂牌名称!");
  362. return
  363. }
  364. }
  365. var xmp = document.getElementById("xmp").checked;
  366. var yy = document.getElementById("yy").checked;
  367. var xwhqr = document.getElementById("xwhqr").checked;
  368. var xcqt = document.getElementById("xcqt").checked;
  369. if(xcqt){
  370. var _value = document.getElementById("xcqtContent").value;
  371. if(_value == ""){
  372. mui.alert('请填写其他备注!','提示',['确定'],null,'');
  373. //alert("请填写挂牌名称!");
  374. return
  375. }
  376. }
  377. if(yp==false && ylqx==false && ylfqw==false && gpmc==false && xmp==false && yy==false && xwhqr==false && xcqt==false){
  378. mui.alert('现场查见必选一项!','提示',['确定'],null,'');
  379. return
  380. }
  381. }
  382. }
  383. if(($(".dynamic_images ul li").length-0)<1) {
  384. mui.alert('照片必须上传!','提示',['确定'],null,'');
  385. return
  386. }
  387. mui.confirm('是否确认提交(提交后不可修改)','提示',['取消','确定'],function (e) {
  388. if(e.index==1){
  389. if(insertStatus=="0"){
  390. insertStatus = 1;
  391. querySEQ_REPORT_IDOne();
  392. }else{
  393. mui.toast("状态正在更新!");
  394. }
  395. /* if(SEQ_REPORT_ID=='0'){
  396. //alert(SEQ_REPORT_ID)
  397. querySEQ_REPORT_IDOne();
  398. }else{
  399. commitStatus();
  400. }*/
  401. //commitStatus();
  402. }else{
  403. return
  404. }
  405. });
  406. }
  407. function getLatLon() {
  408. navigator.geolocation.getCurrentPosition(  // 该函数有如下三个参数
  409. function (pos){  // 如果成果则执行该回调函数
  410. var txt=document.getElementById("txt_jwd1");
  411. txt.value=pos.coords.longitude;
  412. alert(pos.coords.longitude)
  413. var txt1=document.getElementById("txt_jwd2");
  414. txt1.value=pos.coords.latitude;
  415. },  function (err){  // 如果失败则执行该回调函数
  416. alert(err.message);
  417. }, {  // 附带参数
  418. enableHighAccuracy:  false ,  // 提高精度(耗费资源)
  419. timeout: 3000,  // 超过timeout则调用失败的回调函数
  420. maximumAge: 1000  // 获取到的地理信息的有效期,超过有效期则重新获取一次位置信息
  421. }
  422. );
  423. }
  424. function querySEQ_REPORT_ID() {
  425. var str = "select seq_report_id.nextval as seq from dual ";
  426. new WsCommonClass("QueryDataBaseJson", ["sql"], [str], querySuccess, "querySEQ_REPORT_ID");
  427. }
  428. function querySEQ_REPORT_IDOne() {
  429. var str = "select seq_report_id.nextval as seq from dual ";
  430. new WsCommonClass("QueryDataBaseJson", ["sql"], [str], querySuccess, "querySEQ_REPORT_IDOne");
  431. }
  432. function commitButton() {
  433. /* if(($(".dynamic_images ul li").length-0)>0){
  434. var data = new Array();
  435. for(var i=0;i<($(".dynamic_images ul li").length-0);i++){
  436. var img=$(".files_"+i+" ul li img");
  437. var obj = [];
  438. obj.img = img.src;
  439. data.push(obj);
  440. console.log(img.src)
  441. }*/
  442. /*localStorage.setItem("datas", data);
  443. localStorage.setItem("adddataimg", data);*/
  444. //applyToDBNew();
  445. //}else{
  446. //querySEQ_REPORT_IDOne();
  447. applyToDBNew();
  448. //}
  449. }
  450. function commitStatus() {
  451. var TaskStatus=document.getElementsByName("TaskStatus");
  452. var status="";
  453. for(var i=0;i<TaskStatus.length;i++){
  454. if(TaskStatus[i].checked==true){
  455. status=TaskStatus[i].value;
  456. }
  457. }
  458. // 已取得合法资质
  459. if(hfzzStatus == 1){
  460. status = 6;
  461. }
  462. var yp="0";
  463. if(document.getElementById("yp").checked==true){
  464. yp="1";
  465. }
  466. var ylqx="0";
  467. if(document.getElementById("ylqx").checked==true){
  468. ylqx="1";
  469. }
  470. var ylfqw="0";
  471. if(document.getElementById("ylfqw").checked==true){
  472. ylfqw="1";
  473. }
  474. var gpmc="0";
  475. if(document.getElementById("gpmc").checked==true){
  476. gpmc="1";
  477. }
  478. var xmp="0";
  479. if(document.getElementById("xmp").checked==true){
  480. xmp="1";
  481. }
  482. var yy="0";
  483. if(document.getElementById("yy").checked==true){
  484. yy="1";
  485. }
  486. var xwhqy = "0";
  487. if(document.getElementById("xwhqr").checked==true){
  488. xwhqy = "1";
  489. }
  490. var xcqt="0";
  491. if(document.getElementById("xcqt").checked==true){
  492. xcqt="1";
  493. }
  494. var medicine="0";
  495. var medicineScene=document.getElementsByName("medicineScene");
  496. for(var i=0;i<medicineScene.length;i++) {
  497. if(medicineScene[i].checked==true){
  498. medicine=medicineScene[i].value;
  499. }
  500. }
  501. var nk="0";
  502. if(document.getElementById("nk").checked==true){
  503. nk="1";
  504. }
  505. var yk="0";
  506. if(document.getElementById("yk").checked==true){
  507. yk="1";
  508. }
  509. var ylmr="0";
  510. if(document.getElementById("ylmr").checked==true){
  511. ylmr="1";
  512. }
  513. var xyqt="0";
  514. if(document.getElementById("xyqt").checked==true){
  515. xyqt="1";
  516. }
  517. //var objimgs=eval(uploadobj);
  518. // 未执业
  519. var yblStatus = document.getElementsByName("yblStatus");
  520. var _yblStatus = "0";
  521. for(var i=0;i<yblStatus.length;i++){
  522. if(yblStatus[i].checked==true){
  523. _yblStatus=yblStatus[i].value;
  524. }
  525. }
  526. var _yblyjContent = document.getElementById("yblyjContent").value;
  527. // 已搬离
  528. var wzyStatus = document.getElementsByName("wzyStatus");
  529. var _wzyStatus = "0";
  530. for(var i=0;i<wzyStatus.length;i++){
  531. if(wzyStatus[i].checked==true){
  532. _wzyStatus=wzyStatus[i].value;
  533. }
  534. }
  535. var _wzyyjContent = document.getElementById("wzyyjContent").value;
  536. //if(objimgs.length>0 || objimgs.length!=null || objimgs.length!="") {
  537. //if(myformList.length>0){
  538. var objimgs;
  539. if(($(".dynamic_images ul li").length-0)>0){
  540. objimgs= new Array();
  541. for(var i=0;i<($(".dynamic_images ul li").length-0);i++){
  542. var img=$("#files_"+i+" img");
  543. var obj = new Object();
  544. obj.img = img[0].src;
  545. objimgs.push(obj);
  546. }
  547. // for(i=0;i<=objimgs.length;i++){
  548. //console.log(objimgs[i].img+"===****"+objimgs[i].imge+"");
  549. if (objimgs.length == 0) {
  550. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
  551. "values( "+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','','')";
  552. console.log(strSql);
  553. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  554. } else if (objimgs.length == 1) {
  555. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
  556. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','')";
  557. //alert(strSql);
  558. console.log(strSql);
  559. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  560. } else if (objimgs.length == 2) {
  561. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
  562. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "')";
  563. console.log(strSql);
  564. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  565. } else if (objimgs.length == 3) {
  566. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3) " +
  567. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "')";
  568. console.log(strSql);
  569. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  570. }
  571. else if (objimgs.length == 4) {
  572. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3,照片4) " +
  573. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "','" + objimgs[3].img + "')";
  574. console.log(strSql);
  575. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  576. }
  577. else if (objimgs.length == 5) {
  578. var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3,照片4,照片5) " +
  579. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "','" + objimgs[3].img + "','" + objimgs[4].img + "')";
  580. console.log(strSql);
  581. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  582. }
  583. var strSql1 = "insert into health.PATROLSTATUS (ID,PATROLSTATUSID, " +
  584. "DRUG,DRUGNUM,INSTRUMENT,INSTRUMENTNUM,"+
  585. "WASTE,WASTENUM, LISTED,LISTEDNAME,"+
  586. "ADLET,DENTALCHAIR,INSIDERASK,SCENEOTHER,SCENEOTHERCONTENT,WHETHERINSCENE," +
  587. "INTERNALMEDICINE,DENTAL,MEDICAKBEAUTY, MEDICINEOTHER,MEDICINEOTHERCONTENT,"+
  588. "MOVEDACCORDING,MOVEDOTHER,NOTPRACTICINGACCORDING,NOTPRACTICINGOTHER,JD,WD)" +
  589. "values (SEQ_TASKSTATUS_ID.NEXTVAL, "+SEQ_REPORT_ID+" " +
  590. ","+yp+",'"+document.getElementById("ypNum").value+"',"+ylqx+",'"+document.getElementById("ylqxNum").value+"'" +
  591. ","+ylfqw+",'"+document.getElementById("ylfqwNum").value+"',"+gpmc+",'"+document.getElementById("gpmcName").value+"'" +
  592. ","+xmp+","+yy+","+xwhqy+","+xcqt+",'"+document.getElementById("xcqtContent").value+"',"+medicine+
  593. ","+nk+"" +","+yk+","+ylmr+","+xyqt+",'"+document.getElementById("xyqtContent").value+"'" +
  594. ","+_yblStatus+",'"+_yblyjContent+"',"+_wzyStatus+",'"+_wzyyjContent+"'"+
  595. ",'"+document.getElementById("txt_jwd1").value+"','"+document.getElementById("txt_jwd2").value+"')";
  596. console.log(strSql1);
  597. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql1], querySuccess, "queryUser1");
  598. }else{
  599. var strSql = "insert into 巡检状态(ID,一户一档ID,状态,手机,照片1,照片2 ) " +
  600. "values("+SEQ_REPORT_ID+",'" + caseid + "','" + status + "','"+localStorage.getItem("mobile")+"','','')";
  601. //new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
  602. var strSql1 = "insert into health.PATROLSTATUS (ID,PATROLSTATUSID" +
  603. ", DRUG,DRUGNUM,INSTRUMENT,INSTRUMENTNUM,WASTE,WASTENUM," +
  604. " LISTED,LISTEDNAME,ADLET,DENTALCHAIR,INSIDERASK,SCENEOTHER,SCENEOTHERCONTENT" +
  605. ",WHETHERINSCENE" +
  606. ",INTERNALMEDICINE,DENTAL,MEDICAKBEAUTY, MEDICINEOTHER,MEDICINEOTHERCONTENT,"+
  607. "MOVEDACCORDING,MOVEDOTHER,NOTPRACTICINGACCORDING,NOTPRACTICINGOTHER,JD,WD)" +
  608. "values (seq_taskstatus_id.nextval,"+SEQ_REPORT_ID+"" +
  609. ","+yp+",'"+document.getElementById("ypNum").value+"',"+ylqx+",'"+document.getElementById("ylqxNum").value+"'" +
  610. ","+ylfqw+",'"+document.getElementById("ylfqwNum").value+"',"+gpmc+",'"+document.getElementById("gpmcName").value+"'" +
  611. ","+xmp+","+yy+","+xwhqy+","+xcqt+",'"+document.getElementById("xcqtContent").value+"',"+medicine+","+nk+"" +
  612. ","+yk+","+ylmr+","+xyqt+",'"+document.getElementById("xyqtContent").value+"'" +
  613. ","+_yblStatus+",'"+_yblyjContent+"',"+_wzyStatus+",'"+_wzyyjContent+"'"+
  614. ",'"+document.getElementById("txt_jwd1").value+"','"+document.getElementById("txt_jwd2").value+"')";
  615. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser ");
  616. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql1], querySuccess, "queryUser1");
  617. }
  618. }
  619. function closefun() {
  620. document.getElementById("alertDiv").remove();
  621. }
  622. function applyToDB(){
  623. var state = currentClickid;
  624. //bz=$('#txt_bz').val();
  625. var alertInfo = "是否确认更改为营业中状态?";
  626. switch (state){
  627. case 1:
  628. alertInfo = "是否确认更改为营业中状态?\n确认请输入手机号提交";
  629. break;
  630. case 4:
  631. alertInfo = "是否确认更改未营业状态?";
  632. break;
  633. case 2:
  634. alertInfo = "是否确认更改为已搬离状态?";
  635. break;
  636. case 3:
  637. alertInfo = "是否确认更改为待确定状态?";
  638. break;
  639. }
  640. // var btnArray = ['否', '是'];
  641. // mui.confirm(alertInfo, '系统提示', btnArray, function(e) {
  642. // if (e.index == 1) {
  643. // var strSql = "insert into 巡检状态(一户一档ID,状态) values('"+caseid+"','"+state+"')";
  644. // new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
  645. // } else {
  646. // return;
  647. // }
  648. // });
  649. uploadobj = localStorage.getItem("datas");
  650. uploadobj=JSON.parse(uploadobj);
  651. var btnArray = ['确定', '取消'];
  652. prompts(alertInfo,'',commitButton,closefun,'prompt')
  653. /* mui.prompt(alertInfo, '请输入手机号码', '系统提示', btnArray, function(e) {
  654. if (e.index == 0) {
  655. if(e.value == ""){
  656. mui.alert('输入手机号为空!\n请重新提交', '系统提示', function() {
  657. });
  658. }else if(e.value.length != 11){
  659. mui.alert('手机号不正确!\n请重新提交', '系统提示', function() {
  660. });
  661. }else{
  662. var objimgs=eval(uploadobj);
  663. if(objimgs.length>0 || objimgs.length!=null || objimgs.length!=""){
  664. // for(i=0;i<=objimgs.length;i++){
  665. //console.log(objimgs[i].img+"===****"+objimgs[i].imge+"");
  666. if(objimgs.length==0){
  667. var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','','')";
  668. //console.log(strSql)
  669. new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
  670. }else if(objimgs.length==1){
  671. var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','')";
  672. //console.log(strSql)
  673. new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
  674. }else if(objimgs.length==2){
  675. var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','"+objimgs[1].img+"')";
  676. //console.log(strSql)
  677. new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
  678. }else if(objimgs.length==3){
  679. var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2,照片3) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','"+objimgs[1].img+"','"+objimgs[2].img+"')";
  680. //console.log(strSql)
  681. new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
  682. }
  683. // }
  684. }else{
  685. plus.nativeUI.alert('您还没点击上传图片,请先上传图片');
  686. }
  687. }
  688. } else {
  689. }
  690. }) */
  691. }
  692. function querySuccess(evt,keyValue){
  693. if(keyValue=="querySEQ_REPORT_ID"){
  694. SEQ_REPORT_ID=evt.data[0].SEQ;
  695. }else if(keyValue=="querySEQ_REPORT_IDOne"){
  696. SEQ_REPORT_ID=evt.data[0].SEQ;
  697. commitStatus();
  698. }
  699. else{
  700. /* var result = evt.substr(76,evtlength);
  701. var evtlength = evt.length-85;
  702. result = result.substr(0,evtlength);
  703. var jsonData = JSON.parse(result); */
  704. // var jsonObj = JSON.parse(evt)
  705. // var jsonData = jsonObj[0].data;
  706. // if(jsonData != null){
  707. // insertStatus=0; //去掉更新状态
  708. //setTimeout("mui.toast('状态正在更新')",2000);
  709. setTimeout(successinfo,2000);
  710. // }
  711. insertActionRecord('用户操作更新状态');
  712. }
  713. }
  714. function successinfo(){
  715. mui.toast("状态更新成功");
  716. window.location="mainTest.html?date="+getDateStr();
  717. }
  718. function loadMajor() {
  719. var strSql = "select t.编码 as code,t.名称 as name,t.备注 as memo from view_编码表无证对象专业 t order by code";
  720. new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccesse, "loadMajor");
  721. }
  722. var hfzzStatus = 0;
  723. function onChangeHFZZ(){
  724. var HFZZStatus = document.getElementsByName("HFZZStatus");
  725. var status = "";
  726. for(var i=0;i<HFZZStatus.length;i++){
  727. if(HFZZStatus[i].checked){
  728. status = HFZZStatus[i].value;
  729. }
  730. }
  731. //已取得
  732. if(status == "1"){
  733. var btnArray = ['否', '是'];
  734. mui.confirm('是否确认此人已获得合法资质?', '系统提示', btnArray, function(e) {
  735. // 若确认,则拍照上传结束
  736. if (e.index == 1) {
  737. hfzzStatus = 1;
  738. document.getElementById("patrolLi0").style.display = "none";
  739. } else {
  740. hfzzStatus = 0;
  741. document.getElementById("patrolLi0").style.display = "";
  742. //选项切换到未取得
  743. document.getElementById("HFZZInput").checked = "checked";
  744. }
  745. })
  746. }
  747. //未取得
  748. else if(status == "0"){
  749. hfzzStatus = 0;
  750. document.getElementById("patrolLi0").style.display = "";
  751. }
  752. }
  753. function TaskStatusChange() {
  754. var TaskStatus=document.getElementsByName("TaskStatus");
  755. var status="";
  756. for(var i=0;i<TaskStatus.length;i++){
  757. if(TaskStatus[i].checked == true){
  758. status = TaskStatus[i].value;
  759. }
  760. }
  761. // 执行中or可疑执业
  762. if(status=="1" ||status=="3"){
  763. document.getElementById("patrolLi1").style.display="";
  764. document.getElementById("patrolLi2").style.display="";
  765. document.getElementById("patrolLi3").style.display="";
  766. document.getElementById("patrolLi4").style.display="none";
  767. document.getElementById("patrolLi5").style.display="none";
  768. // 执业中
  769. if(status=="1"){
  770. document.getElementById("xynrLable").style.display="";
  771. }else{
  772. document.getElementById("xynrLable").style.display="none";
  773. }
  774. empty("3");
  775. empty("4");
  776. }
  777. // 未执业
  778. else if(status=="4"){
  779. document.getElementById("patrolLi1").style.display="none";
  780. document.getElementById("patrolLi2").style.display="";
  781. document.getElementById("patrolLi3").style.display="none";
  782. document.getElementById("patrolLi4").style.display="none";
  783. document.getElementById("patrolLi5").style.display="block";
  784. empty("4");
  785. }
  786. // 已搬离
  787. else if(status=="2"){
  788. document.getElementById("patrolLi1").style.display="none";
  789. document.getElementById("patrolLi2").style.display="none";
  790. document.getElementById("patrolLi3").style.display="none";
  791. document.getElementById("patrolLi4").style.display="block";
  792. document.getElementById("patrolLi5").style.display="none";
  793. // empty(2);
  794. empty("2");
  795. empty("3");
  796. }
  797. }
  798. function XccjSelectChange(type){
  799. //先全部隐藏
  800. document.getElementById("ypDiv").style.display = "none";
  801. document.getElementById("ylqxDiv").style.display = "none";
  802. document.getElementById("ylfqwDiv").style.display = "none";
  803. document.getElementById("gpmcDiv").style.display = "none";
  804. document.getElementById("xcqtDiv").style.display = "none";
  805. //根据类型判断
  806. if(type == 1){
  807. if(document.getElementById("yp").checked){
  808. document.getElementById("ypDiv").style.display = "block";
  809. }
  810. }
  811. if(type == 2){
  812. if(document.getElementById("ylqx").checked){
  813. document.getElementById("ylqxDiv").style.display = "block";
  814. }
  815. }
  816. if(type == 3){
  817. if(document.getElementById("ylfqw").checked){
  818. document.getElementById("ylfqwDiv").style.display = "block";
  819. }
  820. }
  821. if(type == 4){
  822. if(document.getElementById("gpmc").checked){
  823. document.getElementById("gpmcDiv").style.display = "block";
  824. }
  825. }
  826. if(type == 5){
  827. if(document.getElementById("xcqt").checked){
  828. document.getElementById("xcqtDiv").style.display = "block";
  829. }
  830. }
  831. }
  832. function empty(type) {
  833. document.getElementById("yp").checked=false;
  834. document.getElementById("ypNum").value="";
  835. document.getElementById("ylqx").checked=false;
  836. document.getElementById("ylqxNum").value="";
  837. document.getElementById("ylfqw").checked=false;
  838. document.getElementById("ylfqwNum").value="";
  839. document.getElementById("gpmc").checked=false;
  840. document.getElementById("gpmcName").value="";
  841. document.getElementById("xmp").checked=false;
  842. document.getElementById("yy").checked=false;
  843. document.getElementById("xwhqr").checked=false;
  844. document.getElementById("xcqt").checked=false;
  845. document.getElementById("xcqtContent").value="";
  846. if(type=="2"){
  847. var medicineScene=document.getElementsByName("medicineScene");
  848. for(var i=0;i<medicineScene.length;i++){
  849. // medicineScene.checked=false;
  850. medicineScene[i].checked = false;
  851. }
  852. }
  853. if(type=="3"){
  854. // 清空未执业依据选项
  855. var wzyStatus = document.getElementsByName("wzyStatus");
  856. for(var i=0;i<wzyStatus.length;i++){
  857. wzyStatus[i].checked = false;
  858. }
  859. }
  860. if(type=="4"){
  861. // 清空已搬离依据选项
  862. var yblStatus = document.getElementsByName("yblStatus");
  863. for(var i=0;i<yblStatus.length;i++){
  864. yblStatus[i].checked = false;
  865. }
  866. }
  867. document.getElementById("nk").checked=false;
  868. document.getElementById("yk").checked=false;
  869. document.getElementById("ylmr").checked=false;
  870. document.getElementById("xyqt").checked=false;
  871. document.getElementById("xyqtContent").value="";
  872. document.getElementById("yblyjContent").value="";
  873. document.getElementById("wzyyjContent").value="";
  874. }
  875. function querySuccesse(evt, keyvalue) {
  876. // var result = evt.substr(76, evtlength);
  877. // var evtlength = evt.length - 85;
  878. // result = result.substr(0, evtlength);
  879. // var jsonData = JSON.parse(result);
  880. if (keyvalue == "AddInfo") {
  881. insertActionRecord('用户操作新增排查点');
  882. mui.toast("新增排查点成功!");
  883. window.location = "mainTest.html?date=" + getDateStr();
  884. return;
  885. }
  886. // var jsonObj = JSON.parse(result)
  887. var jsonData = evt.data;
  888. if (jsonData != null) {
  889. switch (keyvalue) {
  890. case "loadMajor":
  891. Select_DyCreate("select_major", jsonData, "CODE", "NAME",true);
  892. break;
  893. }
  894. }
  895. }
  896. </script>
  897. </head>
  898. <body background="assets/image/login.png" style=" background-repeat:no-repeat ;background-size:100% 100%;background-attachment: fixed;">
  899. <header class="mui-bar mui-bar-nav">
  900. <a id="back" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  901. <h1 class="mui-title">巡查结果</h1>
  902. </header>
  903. <div class="mainDiv" style="overflow: scroll;width: 100%;height: 88%;">
  904. <div>
  905. <div class="mui-input-group" style="margin: 1.25rem 0.625rem 0.625rem 0.625rem;">
  906. <div class="mui-input-row" >
  907. <label>姓名:</label>
  908. <input id="txt_name" type="text" placeholder="姓名" readonly="true"/>
  909. </div>
  910. <div class="mui-input-row" >
  911. <label>性别:</label>
  912. <input id="txt_sex" type="text" placeholder="性别" readonly="true"/>
  913. <!-- <select id="txt_sex" class="mui-btn-block" >
  914. <option value="0">请选择</option>
  915. <option value="1">男</option>
  916. <option value="2">女</option>
  917. </select> -->
  918. </div>
  919. <!-- <div class="mui-input-row" >
  920. <label>类别:</label>
  921. <input id="txt_type" type="text" class="mui-input-clear" placeholder="主体类别"/>
  922. <select id="txt_type" class="mui-btn-block" >
  923. <option value="0">请选择</option>
  924. <option value="1">个人</option>
  925. <option value="2">单位</option>
  926. </select>
  927. </div> -->
  928. <div class="mui-input-row" >
  929. <label>专业:</label>
  930. <input id="txt_major" type="text" placeholder="从事专业" readonly="true"/>
  931. <!-- <select id="select_major" class="mui-btn-block" ></select> -->
  932. </div>
  933. <div class="mui-input-row" style="height: auto;" >
  934. <label>地址:</label>
  935. <textarea id="txt_add" placeholder="地址" readonly="true"></textarea>
  936. </div>
  937. <div class="mui-input-row" >
  938. <label>证件:</label>
  939. <input id="txt_idcard" type="text" placeholder="无" readonly="true"/>
  940. </div>
  941. <div class="mui-input-row" >
  942. <label>经度:</label>
  943. <input id="txt_jwd1" type="text" placeholder=" " readonly="true" value="121.213"/>
  944. </div>
  945. <div class="mui-input-row" >
  946. <label>纬度:</label>
  947. <input id="txt_jwd2" type="text" placeholder=" " readonly="true" value="32.2131"/>
  948. </div>
  949. <!-- <div class="mui-input-row" >
  950. <label>备注:</label>
  951. <input id="txt_bz" type="text" class="mui-input-clear" placeholder="备注"/>
  952. </div> -->
  953. </div>
  954. </div>
  955. <div style="width: 100%;height: 28%;margin: 0 auto;">
  956. <div class="mui-card" >
  957. <ul class="mui-table-view">
  958. <!--是否取得合法资质-->
  959. <li class="mui-table-view-cell mui-collapse">
  960. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 是否取得合法资质</a>
  961. <div class="mui-collapse-content" style="display: block;">
  962. <div class="mui-input-row mui-radio">
  963. <label>此人未取得合法资质</label>
  964. <input type="radio" name="HFZZStatus" value="0" onchange="onChangeHFZZ()" checked="checked" id="HFZZInput">
  965. </div>
  966. <div class="mui-input-row mui-radio">
  967. <label>此人已取得合法资质(《医师资格证书》和《医师执业证书》)</label>
  968. <input type="radio" name="HFZZStatus" value="1" onchange="onChangeHFZZ()">
  969. </div>
  970. </div>
  971. </li>
  972. <!--巡查结果-->
  973. <li class="mui-table-view-cell mui-collapse" style="display: block;" id="patrolLi0">
  974. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 巡查结果</a>
  975. <div class="mui-collapse-content">
  976. <div class="mui-input-row mui-radio">
  977. <label>执业中</label>
  978. <input type="radio" name="TaskStatus" value="1" onchange="TaskStatusChange()">
  979. </div>
  980. <div class="mui-input-row mui-radio">
  981. <label>可疑执业</label>
  982. <input type="radio" name="TaskStatus" value="3" onchange="TaskStatusChange()">
  983. </div>
  984. <div class="mui-input-row mui-radio ">
  985. <label>未执业</label>
  986. <input type="radio" name="TaskStatus" value="4" onchange="TaskStatusChange()">
  987. </div>
  988. <div class="mui-input-row mui-radio ">
  989. <label>已搬离</label>
  990. <input type="radio" name="TaskStatus" value="2" onchange="TaskStatusChange()">
  991. </div>
  992. </div>
  993. </li>
  994. <!--已搬离判断依据-->
  995. <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi4">
  996. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 判断依据</a>
  997. <div class="mui-collapse-content">
  998. <div class="mui-input-row mui-radio">
  999. <label>该点位已拆迁</label>
  1000. <input type="radio" name="yblStatus" value="1">
  1001. </div>
  1002. <div class="mui-input-row mui-radio">
  1003. <label>该点位业态已改变</label>
  1004. <input type="radio" name="yblStatus" value="2">
  1005. </div>
  1006. <div class="mui-input-row mui-radio">
  1007. <label>该点位已更换实际居住人</label>
  1008. <input type="radio" name="yblStatus" value="3">
  1009. </div>
  1010. <div class="mui-input-row mui-radio">
  1011. <label>经与知情人询问后确认</label>
  1012. <input type="radio" name="yblStatus" value="4">
  1013. </div>
  1014. <div class="mui-input-row mui-radio">
  1015. <label>其他
  1016. (备注:<input style="width: 150px" id="yblyjContent"> )
  1017. </label>
  1018. <input type="radio" name="yblStatus" value="5">
  1019. </div>
  1020. </div>
  1021. </li>
  1022. <!--未执业判断依据-->
  1023. <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi5">
  1024. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 判断依据</a>
  1025. <div class="mui-collapse-content">
  1026. <div class="mui-input-row mui-radio">
  1027. <label>无法进入现场</label>
  1028. <input type="radio" name="wzyStatus" value="1">
  1029. </div>
  1030. <div class="mui-input-row mui-radio">
  1031. <label>已进入现场,未发现可疑行医迹象</label>
  1032. <input type="radio" name="wzyStatus" value="2">
  1033. </div>
  1034. <div class="mui-input-row mui-radio">
  1035. <label>其他
  1036. (备注:<input style="width: 150px" id="wzyyjContent"> )
  1037. </label>
  1038. <input type="radio" name="wzyStatus" value="3">
  1039. </div>
  1040. </div>
  1041. </li>
  1042. <!--现场查见-->
  1043. <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi1">
  1044. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 现场查见</a>
  1045. <div class="mui-collapse-content">
  1046. <div class="mui-input-row mui-checkbox">
  1047. <label>药品
  1048. <div id="ypDiv" style="display: none;">
  1049. <input style="width: 80px;height: 26px;" id="ypNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 箱
  1050. </div>
  1051. </label>
  1052. <input type="checkbox" id="yp" onchange="XccjSelectChange(1)">
  1053. </div>
  1054. <div class="mui-input-row mui-checkbox">
  1055. <label>医疗器械
  1056. <div id="ylqxDiv" style="display: none;">
  1057. <input style="width: 80px;height: 26px;" id="ylqxNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 件
  1058. </div>
  1059. </label>
  1060. <input type="checkbox" id="ylqx" onchange="XccjSelectChange(2)">
  1061. </div>
  1062. <div class="mui-input-row mui-checkbox">
  1063. <label>医疗废弃物
  1064. <div id="ylfqwDiv" style="display: none;">
  1065. <input style="width: 80px;height: 26px;" id="ylfqwNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 件
  1066. </div>
  1067. </label>
  1068. <input type="checkbox" id="ylfqw" onchange="XccjSelectChange(3)">
  1069. </div>
  1070. <div class="mui-input-row mui-checkbox">
  1071. <label>挂牌
  1072. <div id="gpmcDiv" style="display: none;">
  1073. (名称:<input style="width: 100px;" id="gpmcName"> )
  1074. </div>
  1075. </label>
  1076. <input type="checkbox" id="gpmc" onchange="XccjSelectChange(4)">
  1077. </div>
  1078. <div class="mui-input-row mui-checkbox">
  1079. <label>小名片/小广告</label>
  1080. <input type="checkbox" id="xmp" >
  1081. </div>
  1082. <div class="mui-input-row mui-checkbox">
  1083. <label>牙椅</label>
  1084. <input type="checkbox" id="yy" >
  1085. </div>
  1086. <div class="mui-input-row mui-checkbox">
  1087. <label>经与知情人询问后确认</label>
  1088. <input type="checkbox" id="xwhqr" >
  1089. </div>
  1090. <div class="mui-input-row mui-checkbox">
  1091. <label>其他
  1092. <div id="xcqtDiv" style="display: none;">
  1093. (备注:<input style="width: 150px;" id="xcqtContent"> )
  1094. </div>
  1095. </label>
  1096. <input type="checkbox" id="xcqt" onchange="XccjSelectChange(5)">
  1097. </div>
  1098. </div>
  1099. </li>
  1100. <!--行医人是否在现场-->
  1101. <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi2">
  1102. <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 行医人是否在现场</a>
  1103. <div class="mui-collapse-content">
  1104. <div class="mui-input-row mui-radio">
  1105. <label>是</label>
  1106. <input type="radio" name="medicineScene" value="1">
  1107. </div>
  1108. <div class="mui-input-row mui-radio">
  1109. <label>否</label>
  1110. <input type="radio" name="medicineScene" value="0">
  1111. </div>
  1112. </div>
  1113. </li>
  1114. <!--行医内容-->
  1115. <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi3">
  1116. <a class="mui-navigate-right" href="#"><label style="color: red;display: none" id="xynrLable">*</label> 行医内容</a>
  1117. <div class="mui-collapse-content">
  1118. <div class="mui-input-row mui-checkbox">
  1119. <label>内科</label>
  1120. <input type="checkbox" id="nk" >
  1121. </div>
  1122. <div class="mui-input-row mui-checkbox">
  1123. <label>牙科</label>
  1124. <input type="checkbox" id="yk" >
  1125. </div>
  1126. <div class="mui-input-row mui-checkbox">
  1127. <label>医疗美容</label>
  1128. <input type="checkbox" id="ylmr" >
  1129. </div>
  1130. <div class="mui-input-row mui-checkbox">
  1131. <label>其他 <input style="width: 150px" id="xyqtContent"></label>
  1132. <input type="checkbox" id="xyqt" >
  1133. </div>
  1134. </div>
  1135. </li>
  1136. <!--拍照或上传图片-->
  1137. <li class="mui-table-view-cell mui-collapse">
  1138. <a class="mui-navigate-right" href="#"><label style="color: red">*</label>拍照或上传图片</a>
  1139. <div class="mui-collapse-content">
  1140. <div class="mui-content" style="width: 93%;height: 200px;margin: 0 auto;background-color: #91DBD9;">
  1141. <form id='from1' enctype = "multipart/form-data">
  1142. <div style="margin-top: 16px;margin-bottom: 10px;">
  1143. <div class="image-uploads" style="width: 120px;position: absolute;">
  1144. <label for="imgUploads">
  1145. <img src="img/show3.png" id="addnew" style="width: 20px;height: 20px;margin-left: 10px;margin-top: 10px;" />
  1146. </label>
  1147. <input id="imgUploads" style="width: 180px;" type="file" name="imageUpload" accept="image/*" capture="camera" onchange="loadUpImgs()" />
  1148. </div>
  1149. <span class="title" style="color: #F9FDFD;font-size: 15px;margin-top: 10px;position: absolute;margin-left: 40px;">拍照</span>
  1150. <div class="image-upload" style="width: 120px;position: absolute;margin-left: 70px;">
  1151. <label for="imgUpload">
  1152. <img src="img/imgadd.png" id="addnew1" style="width: 20px;height: 20px;margin-left: 10px;margin-top: 10px;" />
  1153. </label>
  1154. <input id="imgUpload" style="width: 180px;" type="file" name="imageUpload" accept="audio/*" capture="microphone" onchange="loadUpImg()" />
  1155. </div>
  1156. <span class="title" style="color: #F9FDFD;font-size: 15px;margin-top: 10px;position: absolute;margin-left: 110px;">从相册选取</span>
  1157. <span id="picnum" style="float: right;font-size: 12px; color: #F9FDFD;margin-top: 10px;position: absolute;margin-left: 200px;">0/5</span>
  1158. </div>
  1159. <div class="dynamic_images" style="background-color: #91DBD9;height: 70px;width: 100%;padding-left: 40px;padding-right: 15px;">
  1160. <ul class="row mui-input-row" style="width: 83%;height: 80%;margin-top: 30px;position: absolute;margin-left: -5%;">
  1161. <img src="img/show.png" id="showimg"/>
  1162. </ul>
  1163. </div>
  1164. </form>
  1165. </div>
  1166. </div>
  1167. </li>
  1168. <!--提交-->
  1169. <li class="mui-table-view-cell mui-collapse" >
  1170. <div style="margin-left: 2rem;">
  1171. <button type="button" class="mui-btn mui-btn-primary " onclick="commitButton()" style="width: 90%;">提交</button>
  1172. </div>
  1173. </li>
  1174. </ul>
  1175. </div>
  1176. </div>
  1177. <nav class="mui-bar mui-bar-tab">
  1178. <a href="firstPage.html" id="mainpage" class="mui-tab-item mui-active">
  1179. <span class="mui-icon mui-icon-home"></span>
  1180. <span class="mui-tab-label">主页</span>
  1181. </a>
  1182. <a href="projectInfo.html" id="addpage" class="mui-tab-item">
  1183. <span class="mui-icon mui-icon-chatboxes"></span>
  1184. <span class="mui-tab-label">添加</span>
  1185. </a>
  1186. <a href="myInfo.html" id="exit" class="mui-tab-item">
  1187. <span class="mui-icon mui-icon-gear"></span>
  1188. <span class="mui-tab-label">退出</span>
  1189. </a>
  1190. </nav>
  1191. </div>
  1192. </body>
  1193. </html>