123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="css/mui.min.css" rel="stylesheet" />
- <script src="assets/js/jquery-3.1.0.js"></script>
- <script src="assets/js/jquery.base64.js"></script>
- <script src="CommonJS/Config_JS/Config_Load.js"></script>
- <script src="CommonJS/DBUtil_JS/WsCommonClassJava.js"></script>
- <script src="CommonJS/Data_ProcessJS/CommonData.js"></script>
- <script src="CommonJS/HTML_ElementCommonJS/Select_Common.js"></script>
- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
- <script src="js/recordAction.js"></script>
- <script src="js/mui.min.js"></script>
- <!--<script src="js/jquery.min.js"></script>-->
- <!-- <script src="js/uploadImgs.js"></script> -->
- <script src="js/promptAndAlert.js"></script>
- <script src="js/fileImg.js"></script>
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- html,
- body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .logon_bg{
- position: absolute;
- width:100%;
- bottom: 0;
- }
- .bak{
- width: 100%;
- height: 100%;
- }
- .mainDiv{
- top: 10px;
- position: absolute;
- width: 100%;
- height: 100%;
- margin-top: 2.375rem;
- }
- .dynamic_images ul {
- margin: 0;
- padding: 0;
- }
- .dynamic_images ul li {
- position: relative;
- display: inline-block;
- margin-top: 10px;
- margin-bottom: 10px;
- margin-right: 5px;
- margin-left: 10px;
- float: left;
- list-style: none;
- }
- .dynamic_images ul li img {
- width: 50px;
- height: 50px;
- border-radius: 5px;
- }
- .del {
- display: inline-block;
- position: absolute;
- top:6px;
- right: 0px;
- width: 12px;
- height: 2px;
- background: #ED544D;
- line-height: 0;
- font-size: 0;
- vertical-align: middle;
- -webkit-transform: rotate(45deg);
- }
- .del:after {
- content: "/";
- display: block;
- width: 12px;
- height: 2px;
- background: #ED544D;
- -webkit-transform: rotate(-90deg);
- }
- #showimg{
- width: 60px;
- height: 50px;
- margin: auto auto;
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- margin-top: 13%;
- }
- .image-upload > input
- {
- display: none;
- }
- .image-uploads > input
- {
- display: none;
- }
- </style>
- <script>
- var addStatus=0;
- mui.init({
- swipeBack:true //启用右滑关闭功能
- });
- $(document).on("click", '#mainpage', function() {
- window.location = "main.html?date=" + getDateStr();
- });
- $(document).on("click", '#addpage', function() {
- // mui.alert('模块更新中 敬请期待!!!', '系统提示', function() {});
- window.location = "add.html?date=" + getDateStr();
- });
- $(document).on("click", '#exit', function() {
- var btnArray = ['否', '是'];
- mui.confirm('是否确认退出登录?', '系统提示', btnArray, function(e) {
- if (e.index == 1) {
- window.location = "login.html";
- insertActionRecord('用户退出');
- } else {}
- })
- });
- function AddNew(){
- // if(role!="21" || role!="3") {
- if (document.getElementById("txt_address").value == "") {
- mui.alert('执业地址必填!', '提示', ['确定'], null, '');
- //alert("巡查结果必选!");
- return
- }
- if (document.getElementById("txt_name").value == "") {
- mui.alert('姓名必填!', '提示', ['确定'], null, '');
- //alert("巡查结果必选!");
- return
- }
- if (document.getElementById("select_major").value == "") {
- mui.alert('从事专业必填!', '提示', ['确定'], null, '');
- //alert("巡查结果必选!");
- return
- }
- if (document.getElementById("select_district").value == "") {
- mui.alert('所属区县必填!', '提示', ['确定'], null, '');
- //alert("巡查结果必选!");
- return
- }
- if (document.getElementById("select_town").value == "") {
- mui.alert('所属街镇必填!', '提示', ['确定'], null, '');
- //alert("巡查结果必选!");
- return
- }
- /*if(document.getElementById("select_num").value==""){
- mui.alert('身份证必填!','提示',['确定'],null,'');
- //alert("巡查结果必选!");
- return
- }*/
- // }else{
- // 巡查员用户&区级管理员用户
- if(role == "21" || role == "3") {
- // var TaskStatus=document.getElementsByName("TaskStatus");
- // var status="";
- // for(var i=0;i<TaskStatus.length;i++){
- // if(TaskStatus[i].checked==true){
- // status=TaskStatus[i].value;
- // }
- // }
- var medicine="";
- var medicineScene=document.getElementsByName("medicineScene");
- for(var i=0;i<medicineScene.length;i++){
- if(medicineScene[i].checked==true){
- medicine=medicineScene[i].value;
- }
- }
- // if(status==""){
- // mui.alert('巡查结果必选!','提示',['确定'],null,'');
- // //alert("巡查结果必选!");
- // return
- // }else if(status!="2"){
- // if(medicine==""){
- // mui.alert('行医人是否在现场必选!','提示',['确定'],null,'');
- // //alert("行医人是否在现场必选!");
- // return
- // }
- // }
- if(medicine==""){
- mui.alert('行医人是否在现场必选!','提示',['确定'],null,'');
- //alert("行医人是否在现场必选!");
- return
- }
- // 执业中
- // if(status=="1"){
- // var nk=document.getElementById("nk").checked;
- // var yk=document.getElementById("yk").checked;
- // var ylmr=document.getElementById("ylmr").checked;
- // var xyqt=document.getElementById("xyqt").checked;
- // if(nk==false && yk==false&&ylmr==false&&xyqt==false){
- // mui.alert('行医内容必选!','提示',['确定'],null,'');
- // return
- // }
- // }
- var nk=document.getElementById("nk").checked;
- var yk=document.getElementById("yk").checked;
- var ylmr=document.getElementById("ylmr").checked;
- var xyqt=document.getElementById("xyqt").checked;
- if(nk==false && yk==false&&ylmr==false&&xyqt==false){
- mui.alert('行医内容必选!','提示',['确定'],null,'');
- return
- }
- // 已搬离
- // if(status == "2"){
- // var yblStatus = document.getElementsByName("yblStatus");
- // var _status="";
- // for(var i=0;i<yblStatus.length;i++){
- // if(yblStatus[i].checked==true){
- // _status=yblStatus[i].value;
- // }
- // }
- // if(_status==""){
- // mui.alert('判断依据必选!','提示',['确定'],null,'');
- // //alert("判断依据必选!");
- // return
- // }
- // let _value = document.getElementById("yblyjContent").value;
- // if(_status == "5"&&_value == ""){
- // mui.alert('请填写判断依据!','提示',['确定'],null,'');
- // //alert("请填写判断依据!");
- // return
- // }
- // }
- // 未执业
- // if(status == "4"){
- // var wzyStatus = document.getElementsByName("wzyStatus");
- // var _status="";
- // for(var i=0;i<wzyStatus.length;i++){
- // if(wzyStatus[i].checked==true){
- // _status=wzyStatus[i].value;
- // }
- // }
- // if(_status==""){
- // mui.alert('判断依据必选!','提示',['确定'],null,'');
- // //alert("判断依据必选!");
- // return
- // }
- // let _value = document.getElementById("wzyyjContent").value;
- // if(_status == "3"&&_value == ""){
- // mui.alert('请填写判断依据!','提示',['确定'],null,'');
- // //alert("请填写判断依据!");
- // return
- // }
- // }
- // 可疑执业
- // if(status == "3"){
- var yp = document.getElementById("yp").checked;
- if(yp){
- var _value = document.getElementById("ypNum").value;
- if(_value == ""){
- mui.alert('请填写药品数量!','提示',['确定'],null,'');
- //alert("请填写药品数量!");
- return
- }
- }
- var ylqx = document.getElementById("ylqx").checked;
- if(ylqx){
- var _value = document.getElementById("ylqxNum").value;
- if(_value == ""){
- mui.alert('请填写医疗器械数量!','提示',['确定'],null,'');
- //alert("请填写医疗器械数量!");
- return
- }
- }
- var ylfqw = document.getElementById("ylfqw").checked;
- if(ylfqw){
- var _value = document.getElementById("ylfqwNum").value;
- if(_value == ""){
- mui.alert('请填写医疗废弃物数量!','提示',['确定'],null,'');
- //alert("请填写医疗废弃物数量!");
- return
- }
- }
- var gpmc = document.getElementById("gpmc").checked;
- if(gpmc){
- var _value = document.getElementById("gpmcName").value;
- if(_value == ""){
- mui.alert('请填写挂牌名称!','提示',['确定'],null,'');
- //alert("请填写挂牌名称!");
- return
- }
- }
- var xmp = document.getElementById("xmp").checked;
- var yy = document.getElementById("yy").checked;
- var xwhqr = document.getElementById("xwhqr").checked;
- var xcqt = document.getElementById("xcqt").checked;
- if(xcqt){
- var _value = document.getElementById("xcqtContent").value;
- if(_value == ""){
- mui.alert('请填写其他备注!','提示',['确定'],null,'');
- //alert("请填写挂牌名称!");
- return
- }
- }
- if(yp==false && ylqx==false && ylfqw==false && gpmc==false && xmp==false && yy==false && xwhqr==false && xcqt==false){
- mui.alert('现场查见必选一项!','提示',['确定'],null,'');
- return
- }
- // }
- // 照片必须上传
- if(($(".dynamic_images ul li").length-0)<1) {
- mui.alert('照片必须上传!','提示',['确定'],null,'');
- return
- }
- }
- mui.confirm('是否确认提交(提交后不可修改)','提示',['取消','确定'],function (e) {
- if(e.index==1){
- if(addStatus=="0"){
- addStatus=1;
- if(role=="21" || role=="3"){
- querySEQ_REPORT_ID();
- }else{
- querySEQ_TASK_ID();
- }
- }else{
- mui.toast("状态正在更新!");
- }
- }else{
- return
- }
- });
- }
- function commitok(){
- document.getElementById("syyalertDiv").remove();
- try{
- document.getElementById("alertDiv").style.display ="";
- }catch (e){}
- }
- function closefun() {
- document.getElementById("alertDiv").remove();
- }
-
-
-
- function commitButton() {
- // var TaskStatus=document.getElementsByName("TaskStatus");
- var status = "";
- // for(var i=0;i<TaskStatus.length;i++){
- // if(TaskStatus[i].checked==true){
- // status=TaskStatus[i].value;
- // }
- // }
- var yp="0";
- if(document.getElementById("yp").checked==true){
- yp="1";
- }
- var ylqx="0";
- if(document.getElementById("ylqx").checked==true){
- ylqx="1";
- }
- var ylfqw="0";
- if(document.getElementById("ylfqw").checked==true){
- ylfqw="1";
- }
- var gpmc="0";
- if(document.getElementById("gpmc").checked==true){
- gpmc="1";
- }
- var xmp="0";
- if(document.getElementById("xmp").checked==true){
- xmp="1";
- }
- var yy="0";
- if(document.getElementById("yy").checked==true){
- yy="1";
- }
- var xwhqy = "0";
- if(document.getElementById("xwhqr").checked==true){
- xwhqy = "1";
- }
- var xcqt="0";
- if(document.getElementById("xcqt").checked==true){
- xcqt="1";
- }
- var medicine="0";
- var medicineScene=document.getElementsByName("medicineScene");
- for(var i=0;i<medicineScene.length;i++) {
- if(medicineScene[i].checked==true){
- medicine=medicineScene[i].value;
- }
- }
- var nk="0";
- if(document.getElementById("nk").checked==true){
- nk="1";
- }
- var yk="0";
- if(document.getElementById("yk").checked==true){
- yk="1";
- }
- var ylmr="0";
- if(document.getElementById("ylmr").checked==true){
- ylmr="1";
- }
- var xyqt="0";
- if(document.getElementById("xyqt").checked==true){
- xyqt="1";
- }
- // 未执业
- // var yblStatus = document.getElementsByName("yblStatus");
- var _yblStatus = "0";
- // for(var i=0;i<yblStatus.length;i++){
- // if(yblStatus[i].checked==true){
- // _yblStatus=yblStatus[i].value;
- // }
- // }
- var _yblyjContent = "";
- // var _yblyjContent = document.getElementById("yblyjContent").value;
- // 已搬离
- // var wzyStatus = document.getElementsByName("wzyStatus");
- var _wzyStatus = "0";
- // for(var i=0;i<wzyStatus.length;i++){
- // if(wzyStatus[i].checked==true){
- // _wzyStatus=wzyStatus[i].value;
- // }
- // }
- var _wzyyjContent = "";
- // var _wzyyjContent = document.getElementById("wzyyjContent").value;
- var role = localStorage.getItem("ROLE");
- var souce;
- var soucesub=1;
- if(role=="21"||role=="3"){
- souce=4;
- }
- if(role=="2" || role=="1"){
- souce=5;
- // soucesub="";
- soucesub=0;
- }
- var date=new Date();
- var year=date.getFullYear();
- var month=date.getMonth()+1;
- var objimgs;
- if(($(".dynamic_images ul li").length-0)>0){
- objimgs= new Array();
- for(var i=0;i<($(".dynamic_images ul li").length-0);i++){
- var img=$("#files_"+i+" img");
- var obj = new Object();
- obj.img = img[0].src;
- objimgs.push(obj);
- }
- var strSqlTask="insert INTO HEALTH.一户一档 (ID,NAME,BODY," +
- "REGISTERE,IDTYPE,COUNTY,COUNTYSSTRING," +
- "MAJOR,STREET,STREETID,SENDMONTH,SENDYEAR,SENDTIME,SOURCE,SOURCESUB,NUM)" +
- "values ("+SEQ_TASK_ID+",'"+document.getElementById("txt_name").value+"','个人'" +
- ",'"+document.getElementById("txt_address").value+"','身份证','"+$("#select_district option:selected").val()+"'" +
- ",'"+$("#select_district option:selected").text().replace('区','').replace('新','')+"','"+$("#select_major option:selected").val()+"'" +
- ",'"+$("#select_town option:selected").text()+"','"+$("#select_town option:selected").val()+"',"+month+","+year+",sysdate,"+souce+","+soucesub+
- ",'"+document.getElementById("select_num").value+"')";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSqlTask], querySuccess, "AddInfo");
- //alert(strSqlTask)
- // for(i=0;i<=objimgs.length;i++){
- //console.log(objimgs[i].img+"===****"+objimgs[i].imge+"");
- if (objimgs.length == 0) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
- "values( "+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','','')";
- console.log(strSql);
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- } else if (objimgs.length == 1) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','')";
- //alert(strSql)
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- } else if (objimgs.length == 2) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "')";
- console.log(strSql);
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- } else if (objimgs.length == 3) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "')";
- console.log(strSql);
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- }
- else if (objimgs.length == 4) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3,照片4) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "','" + objimgs[3].img + "')";
- console.log(strSql);
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- }
- else if (objimgs.length == 5) {
- var strSql = "insert into health.巡检状态(ID,一户一档ID,状态,手机,照片1,照片2,照片3,照片4,照片5) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + currentClickid + "','"+localStorage.getItem("mobile")+"','" + objimgs[0].img + "','" + objimgs[1].img + "','" + objimgs[2].img + "','" + objimgs[3].img + "','" + objimgs[4].img + "')";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- }
- var strSql1 = "insert into health.PATROLSTATUS (ID,PATROLSTATUSID" +
- ", DRUG,DRUGNUM,INSTRUMENT,INSTRUMENTNUM,WASTE,WASTENUM," +
- " LISTED,LISTEDNAME,ADLET,DENTALCHAIR,INSIDERASK,SCENEOTHER,SCENEOTHERCONTENT" +
- ",WHETHERINSCENE" +
- ",INTERNALMEDICINE,DENTAL,MEDICAKBEAUTY, MEDICINEOTHER,MEDICINEOTHERCONTENT,"+
- "MOVEDACCORDING,MOVEDOTHER,NOTPRACTICINGACCORDING,NOTPRACTICINGOTHER)" +
- "values (SEQ_TASKSTATUS_ID.NEXTVAL, "+SEQ_REPORT_ID+" " +
- ","+yp+",'"+document.getElementById("ypNum").value+"',"+ylqx+",'"+document.getElementById("ylqxNum").value+"'" +
- ","+ylfqw+",'"+document.getElementById("ylfqwNum").value+"',"+gpmc+",'"+document.getElementById("gpmcName").value+"'" +
- ","+xmp+","+yy+","+xwhqy+","+xcqt+",'"+document.getElementById("xcqtContent").value+"',"+medicine+","+nk+"" +
- ","+yk+","+ylmr+","+xyqt+",'"+document.getElementById("xyqtContent").value+"'"+
- ","+_yblStatus+",'"+_yblyjContent+"',"+_wzyStatus+",'"+_wzyyjContent+"')";
- //alert(strSql1)
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql1], querySuccess, "AddInfo");
- }else{
- var strSqlTask="insert INTO HEALTH.一户一档 (ID,NAME,BODY," +
- "REGISTERE,IDTYPE,COUNTY,COUNTYSSTRING," +
- "MAJOR,STREET,STREETID,SENDMONTH,SENDYEAR,SENDTIME,SOURCE,SOURCESUB,NUM)" +
- "values ("+SEQ_TASK_ID+",'"+document.getElementById("txt_name").value+"','个人'" +
- ",'"+document.getElementById("txt_address").value+"','身份证','"+$("#select_district option:selected").val()+"'" +
- ",'"+$("#select_district option:selected").text().replace('区','').replace('新','')+"','"+$("#select_major option:selected").val()+"'" +
- ",'"+$("#select_town option:selected").text()+"','"+$("#select_town option:selected").val()+"',"+month+","+year+",sysdate,"+souce+","+soucesub+
- ",'"+document.getElementById("select_num").value+"')";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSqlTask], querySuccess, "AddInfo");
- //alert(strSqlTask)
- var strSql = "insert into 巡检状态(ID,一户一档ID,状态,手机,照片1,照片2 ) " +
- "values("+SEQ_REPORT_ID+",'" + SEQ_TASK_ID + "','" + status + "','"+localStorage.getItem("mobile")+"','','')";
- //new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "queryUser");
- var strSql1 = "insert into health.PATROLSTATUS (ID,PATROLSTATUSID" +
- ", DRUG,DRUGNUM,INSTRUMENT,INSTRUMENTNUM,WASTE,WASTENUM," +
- " LISTED,LISTEDNAME,ADLET,DENTALCHAIR,INSIDERASK,SCENEOTHER,SCENEOTHERCONTENT" +
- ",WHETHERINSCENE" +
- ",INTERNALMEDICINE,DENTAL,MEDICAKBEAUTY, MEDICINEOTHER,MEDICINEOTHERCONTENT,"+
- "MOVEDACCORDING,MOVEDOTHER,NOTPRACTICINGACCORDING,NOTPRACTICINGOTHER)" +
- "values (seq_taskstatus_id.nextval,"+SEQ_REPORT_ID+"" +
- ","+yp+",'"+document.getElementById("ypNum").value+"',"+ylqx+",'"+document.getElementById("ylqxNum").value+"'" +
- ","+ylfqw+",'"+document.getElementById("ylfqwNum").value+"',"+gpmc+",'"+document.getElementById("gpmcName").value+"'" +
- ","+xmp+","+yy+","+xwhqy+","+xcqt+",'"+document.getElementById("xcqtContent").value+"',"+medicine+","+nk+"" +
- ","+yk+","+ylmr+","+xyqt+",'"+document.getElementById("xyqtContent").value+"'"+
- ","+_yblStatus+",'"+_yblyjContent+"',"+_wzyStatus+",'"+_wzyyjContent+"')";
- //alert(strSql)
- //alert(strSql1)
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "AddInfo");
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql1], querySuccess, "AddInfo");
- }
- }
- var address;
- var name;
- var major;
- var district;
- var town;
- var userid;
- var txt_nums;
- function Addfuntion(){
-
- address = $("#txt_address").val();
- name = $("#txt_name").val();
- txt_nums = $("#select_num").val();
- major = Select_GetSelectText("select_major");
- district = localStorage.getItem("district");
- town = localStorage.getItem("town");
- userid = localStorage.getItem("userid");
- adddataimg = localStorage.getItem("adddataimg");
-
- if(address == ""||name == ""||major == ""){
- alerts('请输入完整信息',commitok)
- //mui.alert('!', '系统提示', function() {});
- }else{
- //alerts('是否确认新增排查点',commitButton)
- sprompt('是否确认新增排查点','',commitButton,closefun,'alert')
- }
- }
- function loadMajor() {
- var strSql = "select t.编码 as code,t.名称 as name,t.备注 as memo from view_编码表无证对象专业 t order by code";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "loadMajor");
- }
- function loadDistrict() {
- var strSql = "select DISTINCT t.district,t.districtcode from 系统用户信息表新 t where t.DISTRICT!='上海市' ";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "loadDistrict");
- }
- function loadTown(districtcode) {
- var strSql = "select DISTINCT t.TOWN,t.TOWNCODE from 系统用户信息表新 t " +
- "where t.TOWNCODE is not null and t.districtcode='"+districtcode+"'";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [strSql], querySuccess, "loadTown");
- }
- function successinfo(){
- mui.toast("新增排查点成功!");
- window.location="main.html?date="+getDateStr();
- }
- function querySuccess(evt, keyvalue) {
- var jsonData = evt.data;
- if (jsonData != null) {
- switch (keyvalue) {
- case "loadMajor":
- Select_DyCreate("select_major", jsonData, "CODE", "NAME");
- break;
- case "AddInfo":
- addStatus=0;
- setTimeout(successinfo,3000);
- insertActionRecord('用户操作新增排查点');
- break;
- case "loadDistrict":
- Select_DyCreate("select_district", jsonData, "DISTRICTCODE", "DISTRICT");
- var districtcode=localStorage.getItem("districtcode");
- if(districtcode!=""){
- document.getElementById("select_district").value=districtcode;
- }
- break;
- case "loadTown":
- Select_DyCreate("select_town", jsonData, "TOWNCODE", "TOWN");
- var towncode=localStorage.getItem("towncode");
- if(towncode!=""){
- document.getElementById("select_town").value=towncode;
- }
- break;
- case "querySEQ_REPORT_ID":
- SEQ_REPORT_ID=evt.data[0].SEQ;
- querySEQ_TASK_ID();
- break;
- case "querySEQ_TASK_ID":
- SEQ_TASK_ID=evt.data[0].SEQ;
- commitButton();
- break;
- }
- }
- }
- function TaskStatusChange() {
- var TaskStatus=document.getElementsByName("TaskStatus");
- var status="";
- for(var i=0;i<TaskStatus.length;i++){
- if(TaskStatus[i].checked==true){
- status=TaskStatus[i].value;
- }
- }
- // 执行中or可疑执业
- if(status=="1" ||status=="3"){
- document.getElementById("patrolLi1").style.display="";
- document.getElementById("patrolLi2").style.display="";
- document.getElementById("patrolLi3").style.display="";
- document.getElementById("patrolLi4").style.display="none";
- document.getElementById("patrolLi5").style.display="none";
- if(status=="1"){
- document.getElementById("xynrLable").style.display="";
- }else{
- document.getElementById("xynrLable").style.display="none";
- }
- empty("3");
- empty("4");
- }
- // 未执业
- else if(status=="4"){
- document.getElementById("patrolLi1").style.display="none";
- document.getElementById("patrolLi2").style.display="";
- document.getElementById("patrolLi3").style.display="none";
- document.getElementById("patrolLi4").style.display="none";
- document.getElementById("patrolLi5").style.display="block";
- // empty(4);
- empty("4");
- }
- // 已搬离
- else if(status=="2"){
- document.getElementById("patrolLi1").style.display="none";
- document.getElementById("patrolLi2").style.display="none";
- document.getElementById("patrolLi3").style.display="none";
- document.getElementById("patrolLi4").style.display="block";
- document.getElementById("patrolLi5").style.display="none";
- // empty(2);
- empty("2");
- empty("3");
- }
- }
- function XccjSelectChange(type){
- //先全部隐藏
- document.getElementById("ypDiv").style.display = "none";
- document.getElementById("ylqxDiv").style.display = "none";
- document.getElementById("ylfqwDiv").style.display = "none";
- document.getElementById("gpmcDiv").style.display = "none";
- document.getElementById("xcqtDiv").style.display = "none";
- //根据类型判断
- if(type == 1){
- if(document.getElementById("yp").checked){
- document.getElementById("ypDiv").style.display = "block";
- }
- }
- if(type == 2){
- if(document.getElementById("ylqx").checked){
- document.getElementById("ylqxDiv").style.display = "block";
- }
- }
- if(type == 3){
- if(document.getElementById("ylfqw").checked){
- document.getElementById("ylfqwDiv").style.display = "block";
- }
- }
- if(type == 4){
- if(document.getElementById("gpmc").checked){
- document.getElementById("gpmcDiv").style.display = "block";
- }
- }
- if(type == 5){
- if(document.getElementById("xcqt").checked){
- document.getElementById("xcqtDiv").style.display = "block";
- }
- }
- }
- function empty(type) {
- document.getElementById("yp").checked=false;
- document.getElementById("ypNum").value="";
- document.getElementById("ylqx").checked=false;
- document.getElementById("ylqxNum").value="";
- document.getElementById("ylfqw").checked=false;
- document.getElementById("ylfqwNum").value="";
- document.getElementById("gpmc").checked=false;
- document.getElementById("gpmcName").value="";
- document.getElementById("xmp").checked=false;
- document.getElementById("yy").checked=false;
- document.getElementById("xwhqr").checked=false;
- document.getElementById("xcqt").checked=false;
- document.getElementById("xcqtContent").value="";
- if(type=="2"){
- var medicineScene=document.getElementsByName("medicineScene");
- for(var i=0;i<medicineScene.length;i++){
- medicineScene.checked=false;
- }
- }
- if(type=="3"){
- // 清空未执业依据选项
- var wzyStatus = document.getElementsByName("wzyStatus");
- for(var i=0;i<wzyStatus.length;i++){
- wzyStatus[i].checked = false;
- }
- }
- if(type=="4"){
- // 清空已搬离依据选项
- var yblStatus = document.getElementsByName("yblStatus");
- for(var i=0;i<yblStatus.length;i++){
- yblStatus[i].checked = false;
- }
- }
- document.getElementById("nk").checked=false;
- document.getElementById("yk").checked=false;
- document.getElementById("ylmr").checked=false;
- document.getElementById("xyqt").checked=false;
- document.getElementById("xyqtContent").value="";
- document.getElementById("yblyjContent").value="";
- document.getElementById("wzyyjContent").value="";
- }
- var SEQ_REPORT_ID=0;
- var SEQ_TASK_ID=0;
- var role;
- window.onload = function init() {
- loadMajor();
- loadDistrict();
- var districtcode=localStorage.getItem("districtcode");
- loadTown(districtcode);
- role = localStorage.getItem("ROLE");
- if(role=="3" ||role=="21"){
- document.getElementById("xcjgDiv").style.display="block";
- document.getElementById("buttonCommit").style.display="none";
- }else{
- document.getElementById("xcjgDiv").style.display="none";
- document.getElementById("buttonCommit").style.display="block";
- }
- //querySEQ_REPORT_ID();
- //querySEQ_TASK_ID();
- }
- function onchangedistrict() {
- var select_district=document.getElementById("select_district").value;
- loadTown(select_district);
- }
- function querySEQ_REPORT_ID() {
- var str = "select seq_report_id.nextval as seq from dual ";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [str], querySuccess, "querySEQ_REPORT_ID");
- }
- function querySEQ_TASK_ID() {
- var str = "select SEQ_TASK_ID.nextval as seq from dual ";
- new WsCommonClass("QueryDataBaseJson", ["sql"], [str], querySuccess, "querySEQ_TASK_ID");
- }
- </script>
- </head>
- <body background="assets/image/login.png" style=" background-repeat:no-repeat ;background-size:100% 100%;background-attachment: fixed;">
- <header class="mui-bar mui-bar-nav">
- <h1 class="mui-title">新增排查点</h1>
- </header>
- <div class="mainDiv" style="overflow: scroll;width: 100%;height: 88%; ">
- <div style="width: 100%;margin: 0 auto;">
- <div class="mui-input-group" style="margin: 1.25rem 0.625rem 0.625rem 0.625rem;">
- <div class="mui-input-row" >
- <label><sapn style="color: red">*</sapn>执业地址:</label>
- <input id="txt_address" type="text" class="mui-input-clear" value="" placeholder="请输入执业地址">
- </div>
- <div class="mui-input-row">
- <label><sapn style="color: red">*</sapn>姓名:</label>
- <input id="txt_name" type="text" class="mui-input-clear" value="" placeholder="请输入姓名">
- </div>
- <div class="mui-input-row">
- <label>身份证:</label>
- <input id="select_num" type="text" class="mui-input-clear" value="" placeholder="请输入身份证">
- </div>
- <div class="mui-input-row">
- <label><sapn style="color: red">*</sapn>从事专业:</label>
- <select id="select_major" class="mui-btn-block" ></select>
- </div>
- <div class="mui-input-row">
- <label><sapn style="color: red">*</sapn>所属区县:</label>
- <select id="select_district" class="mui-btn-block" onchange="onchangedistrict()"></select>
- </div>
- <div class="mui-input-row">
- <label><sapn style="color: red">*</sapn>所属街镇:</label>
- <select id="select_town" class="mui-btn-block" ></select>
- </div>
- </div>
- </div>
- <div style="width: 100%;height: 30%;margin: 0 auto;" id="xcjgDiv">
- <div class="mui-card" >
- <ul class="mui-table-view">
- <!--巡查结果-->
- <!-- <li class="mui-table-view-cell mui-collapse" style="display: block;" id="patrolLi0">-->
- <!-- <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 巡查结果</a>-->
- <!-- <div class="mui-collapse-content">-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>执业中</label>-->
- <!-- <input type="radio" name="TaskStatus" value="1" onchange="TaskStatusChange()">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>可疑执业</label>-->
- <!-- <input type="radio" name="TaskStatus" value="3" onchange="TaskStatusChange()">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio ">-->
- <!-- <label>未执业</label>-->
- <!-- <input type="radio" name="TaskStatus" value="4" onchange="TaskStatusChange()">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio ">-->
- <!-- <label>已搬离</label>-->
- <!-- <input type="radio" name="TaskStatus" value="2" onchange="TaskStatusChange()">-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- </li>-->
- <!--已搬离判断依据-->
- <!-- <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi4">-->
- <!-- <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 判断依据</a>-->
- <!-- <div class="mui-collapse-content">-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>该点位已拆迁</label>-->
- <!-- <input type="radio" name="yblStatus" value="1">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>该点位业态已改变</label>-->
- <!-- <input type="radio" name="yblStatus" value="2">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>该点位已更换实际居住人</label>-->
- <!-- <input type="radio" name="yblStatus" value="3">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>经与知情人询问后确认</label>-->
- <!-- <input type="radio" name="yblStatus" value="4">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>其他请填写备注(必填) <input style="width: 150px" id="yblyjContent"></label>-->
- <!-- <input type="radio" name="yblStatus" value="5">-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- </li>-->
- <!--未执业判断依据-->
- <!-- <li class="mui-table-view-cell mui-collapse" style="display: none" id="patrolLi5">-->
- <!-- <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 判断依据</a>-->
- <!-- <div class="mui-collapse-content">-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>无法进入现场</label>-->
- <!-- <input type="radio" name="wzyStatus" value="1">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>已进入现场,未发现可疑行医迹象</label>-->
- <!-- <input type="radio" name="wzyStatus" value="2">-->
- <!-- </div>-->
- <!-- <div class="mui-input-row mui-radio">-->
- <!-- <label>其他请填写备注(必填) <input style="width: 150px" id="wzyyjContent"></label>-->
- <!-- <input type="radio" name="wzyStatus" value="3">-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- </li>-->
- <!--现场查见-->
- <li class="mui-table-view-cell mui-collapse" id="patrolLi1"><!--style="display: none"-->
- <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 现场查见</a>
- <div class="mui-collapse-content">
- <div class="mui-input-row mui-checkbox">
- <label>药品
- <div id="ypDiv" style="display: none;">
- <input style="width: 80px;height: 30px" id="ypNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 箱
- </div>
- </label>
- <input type="checkbox" id="yp" onchange="XccjSelectChange(1)">
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>医疗器械
- <div id="ylqxDiv" style="display: none;">
- <input style="width: 80px;height: 30px" id="ylqxNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 件
- </div>
- </label>
- <input type="checkbox" id="ylqx" onchange="XccjSelectChange(2)">
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>医疗废弃物
- <div id="ylfqwDiv" style="display: none;">
- <input style="width: 80px;height: 30px" id="ylfqwNum" type="number" oninput="if(value>1000)value='';if(value<0)value='';"> 件
- </div>
- </label>
- <input type="checkbox" id="ylfqw" onchange="XccjSelectChange(3)">
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>挂牌
- <div id="gpmcDiv" style="display: none;">
- (名称:<input style="width: 100px" id="gpmcName"> )
- </div>
- </label>
- <input type="checkbox" id="gpmc" onchange="XccjSelectChange(4)">
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>小名片/小广告</label>
- <input type="checkbox" id="xmp" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>牙椅</label>
- <input type="checkbox" id="yy" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>经与知情人询问后确认</label>
- <input type="checkbox" id="xwhqr" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>其他
- <div id="xcqtDiv" style="display: none;">
- (备注:<input style="width: 150px" id="xcqtContent"> )
- </div>
- </label>
- <input type="checkbox" id="xcqt" onchange="XccjSelectChange(5)">
- </div>
- </div>
- </li>
- <!--行医人是否在现场-->
- <li class="mui-table-view-cell mui-collapse" id="patrolLi2"><!--style="display: none"-->
- <a class="mui-navigate-right" href="#"><label style="color: red">*</label> 行医人是否在现场</a>
- <div class="mui-collapse-content">
- <div class="mui-input-row mui-radio">
- <label>是</label>
- <input type="radio" name="medicineScene" value="1">
- </div>
- <div class="mui-input-row mui-radio">
- <label>否</label>
- <input type="radio" name="medicineScene" value="0">
- </div>
- </div>
- </li>
- <!--行医内容-->
- <li class="mui-table-view-cell mui-collapse" id="patrolLi3"><!--style="display: none"-->
- <a class="mui-navigate-right" href="#"><label style="color: red;" id="xynrLable">*</label> 行医内容</a>
- <div class="mui-collapse-content">
- <div class="mui-input-row mui-checkbox">
- <label>内科</label>
- <input type="checkbox" id="nk" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>牙科</label>
- <input type="checkbox" id="yk" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>医疗美容</label>
- <input type="checkbox" id="ylmr" >
- </div>
- <div class="mui-input-row mui-checkbox">
- <label>其他 <input style="width: 150px" id="xyqtContent"></label>
- <input type="checkbox" id="xyqt" >
- </div>
- </div>
- </li>
- <!--拍照或上传图片-->
- <li class="mui-table-view-cell mui-collapse">
- <a class="mui-navigate-right" href="#"><label style="color: red">*</label>拍照或上传图片</a>
- <div class="mui-collapse-content">
- <div class="mui-content" style="width: 93%;height: 200px;margin: 0 auto;background-color: #91DBD9;">
- <form id='from1' enctype = "multipart/form-data">
- <div style="margin-top: 16px;margin-bottom: 10px;">
- <div class="image-uploads" style="width: 120px;position: absolute;">
- <label for="imgUploads">
- <img src="img/show3.png" id="addnew" style="width: 20px;height: 20px;margin-left: 10px;margin-top: 10px;" />
- </label>
- <input id="imgUploads" style="width: 180px;" type="file" name="imageUpload" accept="image/*" capture="camera" onchange="loadUpImgs()" />
- </div>
- <span class="title" style="color: #F9FDFD;font-size: 15px;margin-top: 10px;position: absolute;margin-left: 40px;">拍照</span>
- <div class="image-upload" style="width: 120px;position: absolute;margin-left: 70px;">
- <label for="imgUpload">
- <img src="img/imgadd.png" id="addnew1" style="width: 20px;height: 20px;margin-left: 10px;margin-top: 10px;" />
- </label>
- <input id="imgUpload" style="width: 180px;" type="file" name="imageUpload" accept="image/*" onchange="loadUpImg()" />
- </div>
- <span class="title" style="color: #F9FDFD;font-size: 15px;margin-top: 10px;position: absolute;margin-left: 110px;">从相册选取</span>
- <span id="picnum" style="float: right;font-size: 12px; color: #F9FDFD;margin-top: 10px;position: absolute;margin-left: 200px;">0/5</span>
- </div>
- <div class="dynamic_images" style="background-color: #91DBD9;height: 70px;width: 100%;padding-left: 40px;padding-right: 15px;">
- <ul class="row mui-input-row" style="width: 83%;height: 80%;margin-top: 30px;position: absolute;margin-left: -5%;">
- <img src="img/show.png" id="showimg"/>
- </ul>
- </div>
- </form>
- </div>
- </div>
- </li>
- <!--提交-->
- <li class="mui-table-view-cell mui-collapse " >
- <div style="margin-left: 2rem;" >
- <button type="button" class="mui-btn mui-btn-primary " onclick="AddNew()" style="width: 90%;">提交</button>
- </div>
- </li>
- </ul>
- </div>
- </div>
- <div style="margin-left: 2rem;" id="buttonCommit">
- <button type="button" class="mui-btn mui-btn-primary " onclick="AddNew()" style="width: 90%;">提交</button>
- </div>
- <nav class="mui-bar mui-bar-tab">
- <a href="firstPage.html" id="mainpage" class="mui-tab-item ">
- <span class="mui-icon mui-icon-home"></span>
- <span class="mui-tab-label">主页</span>
- </a>
- <a href="projectInfo.html" id="addpage" class="mui-tab-item mui-active">
- <span class="mui-icon mui-icon-chatboxes"></span>
- <span class="mui-tab-label">添加</span>
- </a>
- <a href="myInfo.html" id="exit" class="mui-tab-item">
- <span class="mui-icon mui-icon-gear"></span>
- <span class="mui-tab-label">退出</span>
- </a>
- </nav>
- </div>
- </body>
- </html>
|