123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529 |
- <!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.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="js/mui.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>
- <script type="text/javascript">
- mui.init()
- </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: 0;
- 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>
- 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", '#back', function() {
- window.location="main.html?date="+getDateStr() ;
- });
- $(document).on("click", '#exit', function() {
- var btnArray = ['否', '是'];
- mui.confirm('是否确认退出登录?', '系统提示', btnArray, function(e) {
- if (e.index == 1) {
- window.location="login.html";
- } else {
- }
- })
- });
- // $(document).on("click", '#back', function() {
- // window.location="main.html";
- // });
- var idcard;
- var caseid;
- window.onload = function initInfo(){
- var name = localStorage.getItem("name");
- idcard = localStorage.getItem("idcard");
- var address = localStorage.getItem("address");
- caseid = localStorage.getItem("caseid");
- console.log(caseid+"***")
-
- var sex = localStorage.getItem("sex");
- var major = localStorage.getItem("major");
-
- $("#txt_name").val(name);
- // $('#checkUserName').attr("val ue",sessionUser.name);
- $("#txt_idcard").val(idcard);
- $("#txt_add").val(address);
- if(sex=='0'){
- $("#txt_sex").val('男');
- }else if(sex=='1'){
- $("#txt_sex").val('女');
- }else{
- $("#txt_sex").val('无');
- }
- $("#txt_major").val(major);
-
-
- // loadMajor();
- }
- // 1 1 营业中
- // 4 4 未营业
- // 2 2 已搬离
- // 3 3 待确定
- var currentClickid ;
- var uploadobj;
- var bz;
- function updateDb(state){
- currentClickid = state;
- determineSubmit();
- //uploadPicture();
- }
- function commitok(){
- document.getElementById("syyalertDiv").remove();
- try{
- document.getElementById("alertDiv").style.display ="";
- }catch{}
- }
-
- function commitButton() {
- var inputsj=document.getElementById("syyInput").value;
- if(inputsj==""){
-
- alerts('输入手机号为空!请重新提交',commitok)
- }else if(inputsj.length!=11){
- alerts("手机号不正确!请重新提交",commitok)
- }else{
- var objimgs=eval(uploadobj);
-
- if(objimgs.length>0 || objimgs.length!=null || objimgs.length!=""){
- // for(i=0;i<=objimgs.length;i++){
- //console.log(objimgs[i].img+"===****"+objimgs[i].imge+"");
- if(objimgs.length==0){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,照片1,照片2) values('"+caseid+"','"+currentClickid+"','"+inputsj+"','','')";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==1){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,照片1,照片2) values('"+caseid+"','"+currentClickid+"','"+inputsj+"','"+objimgs[0].img+"','')";
- console.log(strSql)
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==2){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,照片1,照片2) values('"+caseid+"','"+currentClickid+"','"+inputsj+"','"+objimgs[0].img+"','"+objimgs[1].img+"')";
- console.log(strSql)
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==3){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,照片1,照片2,照片3) values('"+caseid+"','"+currentClickid+"','"+inputsj+"','"+objimgs[0].img+"','"+objimgs[1].img+"','"+objimgs[2].img+"')";
- console.log(strSql)
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- }
- //}
- }else{
- alerts('您还没点击上传图片,请先上传图片',commitok);
- }
- }
-
- }
- function closefun() {
-
- document.getElementById("alertDiv").remove();
- }
-
- function applyToDB(){
- var state = currentClickid;
-
- //bz=$('#txt_bz').val();
- var alertInfo = "是否确认更改为营业中状态?";
- switch (state){
- case 1:
- alertInfo = "是否确认更改为营业中状态?\n确认请输入手机号提交";
- break;
- case 4:
- alertInfo = "是否确认更改未营业状态?";
- break;
- case 2:
- alertInfo = "是否确认更改为已搬离状态?";
- break;
- case 3:
- alertInfo = "是否确认更改为待确定状态?";
- break;
- }
- // var btnArray = ['否', '是'];
- // mui.confirm(alertInfo, '系统提示', btnArray, function(e) {
- // if (e.index == 1) {
- // var strSql = "insert into 巡检状态(一户一档ID,状态) values('"+caseid+"','"+state+"')";
- // new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- // } else {
- // return;
- // }
- // });
- uploadobj = localStorage.getItem("datas");
- uploadobj=JSON.parse(uploadobj);
-
- var btnArray = ['确定', '取消'];
- prompts(alertInfo,'',commitButton,closefun,'prompt')
- /* mui.prompt(alertInfo, '请输入手机号码', '系统提示', btnArray, function(e) {
- if (e.index == 0) {
- if(e.value == ""){
- mui.alert('输入手机号为空!\n请重新提交', '系统提示', function() {
- });
- }else if(e.value.length != 11){
- mui.alert('手机号不正确!\n请重新提交', '系统提示', function() {
- });
- }else{
- var objimgs=eval(uploadobj);
- if(objimgs.length>0 || objimgs.length!=null || objimgs.length!=""){
- // for(i=0;i<=objimgs.length;i++){
- //console.log(objimgs[i].img+"===****"+objimgs[i].imge+"");
- if(objimgs.length==0){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','','')";
- //console.log(strSql)
- new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==1){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','')";
- //console.log(strSql)
- new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==2){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','"+objimgs[1].img+"')";
- //console.log(strSql)
- new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
- }else if(objimgs.length==3){
- var strSql = "insert into 巡检状态(一户一档ID,状态,手机,备注,照片1,照片2,照片3) values('"+caseid+"','"+state+"','"+e.value+"','"+bz+"','"+objimgs[0].img+"','"+objimgs[1].img+"','"+objimgs[2].img+"')";
- //console.log(strSql)
- new WsCommonClassSP("QueryDataBase",["sql"],[strSql],querySuccess,"queryUser");
- }
-
-
- // }
- }else{
- plus.nativeUI.alert('您还没点击上传图片,请先上传图片');
- }
-
- }
- } else {
-
- }
- }) */
- }
-
- function querySuccess(evt){
- /* var result = evt.substr(76,evtlength);
- var evtlength = evt.length-85;
- result = result.substr(0,evtlength);
- var jsonData = JSON.parse(result); */
- // var jsonObj = JSON.parse(evt)
- // var jsonData = jsonObj[0].data;
- // if(jsonData != null){
- mui.toast("状态更新成功");
- window.location="main.html?date="+getDateStr();
- // }
-
- insertActionRecord('用户操作更新状态');
- }
-
- 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], querySuccesse, "loadMajor");
- }
-
- // function querySuccesse(evt, keyvalue) {
- // var result = evt.substr(76, evtlength);
- // var evtlength = evt.length - 85;
- // result = result.substr(0, evtlength);
- // // var jsonData = JSON.parse(result);
- // if (keyvalue == "AddInfo") {
- // insertActionRecord('用户操作新增排查点');
- // mui.toast("新增排查点成功!");
- // window.location = "main.html?date=" + getDateStr();
- // return;
- // }
- // var jsonObj = JSON.parse(result)
- // var jsonData = jsonObj[0].data;
- // if (jsonData != null) {
- // switch (keyvalue) {
- // case "loadMajor":
- // Select_DyCreate("select_major", jsonData, "code", "name",true);
- // break;
- // }
- // }
- // }
-
-
-
-
- function querySuccesse(evt, keyvalue) {
- // var result = evt.substr(76, evtlength);
- // var evtlength = evt.length - 85;
- // result = result.substr(0, evtlength);
- // var jsonData = JSON.parse(result);
- if (keyvalue == "AddInfo") {
- insertActionRecord('用户操作新增排查点');
- mui.toast("新增排查点成功!");
- window.location = "main.html?date=" + getDateStr();
- return;
- }
- // var jsonObj = JSON.parse(result)
- var jsonData = evt.data;
- if (jsonData != null) {
- switch (keyvalue) {
- case "loadMajor":
- Select_DyCreate("select_major", jsonData, "CODE", "NAME",true);
- break;
- }
- }
- }
-
-
-
-
- </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">
- <a id="back" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">巡查结果</h1>
- </header>
- <div class="mainDiv" style="overflow: scroll;width: 100%;height: 88%;">
- <div>
- <div class="mui-input-group" style="margin: 1.25rem 0.625rem 0.625rem 0.625rem;">
- <div class="mui-input-row" >
- <label>姓名:</label>
- <input id="txt_name" type="text" placeholder="姓名" readonly="true"/>
- </div>
- <div class="mui-input-row" >
- <label>性别:</label>
- <input id="txt_sex" type="text" placeholder="性别" readonly="true"/>
- <!-- <select id="txt_sex" class="mui-btn-block" >
- <option value="0">请选择</option>
- <option value="1">男</option>
- <option value="2">女</option>
- </select> -->
- </div>
- <!-- <div class="mui-input-row" >
- <label>类别:</label>
- <input id="txt_type" type="text" class="mui-input-clear" placeholder="主体类别"/>
- <select id="txt_type" class="mui-btn-block" >
- <option value="0">请选择</option>
- <option value="1">个人</option>
- <option value="2">单位</option>
- </select>
- </div> -->
- <div class="mui-input-row" >
- <label>专业:</label>
- <input id="txt_major" type="text" placeholder="从事专业" readonly="true"/>
- <!-- <select id="select_major" class="mui-btn-block" ></select> -->
- </div>
- <div class="mui-input-row" style="height: auto;" >
- <label>地址:</label>
- <textarea id="txt_add" placeholder="地址" readonly="true"></textarea>
- </div>
- <div class="mui-input-row" >
- <label>证件:</label>
- <input id="txt_idcard" type="text" placeholder="无" readonly="true"/>
- </div>
- <!-- <div class="mui-input-row" >
- <label>备注:</label>
- <input id="txt_bz" type="text" class="mui-input-clear" placeholder="备注"/>
- </div> -->
- </div>
- </div>
- <div style="text-align: center;width: 100%;">
- <div style="width: 87%;height: 9.375rem;margin: 0.625rem 1.875rem 0.625rem 1.875rem;">
- <div style="float: left;width: 72%;height: 100%;">
- <div style="width: 100%;">
- <button type="button" onclick="updateDb(1)" style="width: 98%;height: 4.375rem;" class="mui-btn mui-btn-danger">营业中</button>
- </div>
- <div style="width: 100%;margin-top: 0.625rem;">
- <div style="float: left;width: 35%;">
- <button type="button" onclick="updateDb(4)" style="width: 100%;height: 4.375rem;" class="mui-btn mui-btn-warning">未执业</button>
- </div>
- <div style="float: left;width:59%;margin-left: 0.625rem;">
- <button type="button" onclick="updateDb(2)" class="mui-btn mui-btn-primary" style="width: 100%;height: 4.375rem;">已搬离</button>
- </div>
- </div>
- </div>
- <div style="float: left;height: 100%;width:28%;">
- <button type="button" onclick="updateDb(3)" class="mui-btn mui-btn-success" style="height: 100%;width: 90%;">可疑执业</button>
- </div>
- </div>
- <div style="float: inherit;margin-top: 0.625rem;">
- <button type="button" class="mui-btn mui-btn-royal" style="width: 90%;">提交</button>
- </div>
- </div>
-
- <div class="mui-content" style="width: 93%;height: 28%;margin: 0 auto;background-color: #91DBD9;">
- <form id='from1' enctype = "multipart/form-data">
- <div style="margin-top: 16px;margin-bottom: 10px;">
- <!-- <div class="dynamic_images" style="background-color: #91DBD9;height: 70px;width: 100%;padding-left: 15px;padding-right: 15px;">
- <ul class="row mui-input-row">
- <li> onclick="showActionSheet();"-->
- <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>
-
- <!-- </li>
- </ul>
-
- </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 id="finish" class="mui-icon mui-icon-checkmarkempty" style="margin-left: 55px;color: #F9FDFD;position: absolute;margin-top: 10px;margin-left: 70%;" onclick="submits()"></div> -->
- </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: 23%;margin-top: 30px;position: absolute;margin-left: -5%;">
- <!-- <li>
- <img src="img/iconfont-tianjia.png" id="addnew" onclick="showActionSheet();" />
- </li> -->
- <img src="img/show.png" id="showimg"/>
- </ul>
-
- </div>
- <!-- <div style="margin-top: 16px;width: 100%;text-align: center;">
- <button style="background-color: #169BD5;height: 40px;width: 266px;font-size: 14px;color: #FFFFFF;border-radius: 5px;border: 0px;" type="button" onclick="submits()">提交</button>
- </div> -->
- </form>
- </div>
- <nav class="mui-bar mui-bar-tab">
- <a href="firstPage.html" id="mainpage" class="mui-tab-item mui-active">
- <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">
- <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>
|