فهرست منبع

挂号列表地址级联功能开发

hurugang 3 سال پیش
والد
کامیت
19444eef16
2فایلهای تغییر یافته به همراه142 افزوده شده و 497 حذف شده
  1. 89 387
      src/main/resources/static/js/mz/registration_list.js
  2. 53 110
      src/main/resources/templates/mz/registration_list.html

+ 89 - 387
src/main/resources/static/js/mz/registration_list.js

@@ -116,15 +116,8 @@ $(function () {
     oTable.Init();
 
     formatCheck();
-    //默认光标在卡号输入框
-    $("#cardNo").focus();
-    //根据病人姓名输入框内容动态加载病人列表
-    initUserList();
-    //卡号输入改变事件
-    cardNoChange();
-
-    //卡号输入改变事件
-    userNameChange();
+
+
     //数据校验
     init_validator();
 
@@ -201,8 +194,9 @@ $(function () {
     });
     loadTableCount();
     loadRegistrationList(true);
-
-
+    initCertificateTypeSelect();
+    //初始化省份
+    initProvince();
     //初始化页面上面的按钮事件
     $("#btn_excel").click(function (t) {
         exportExcel();
@@ -211,6 +205,36 @@ $(function () {
 
 
 
+/**
+ * 初始化证件类型下拉选
+ */
+function initCertificateTypeSelect() {
+    $.ajax({
+        type: "GET",
+        url: '/thmz/listCertificateType',
+        contentType: "application/json;charset=UTF-8",
+        dataType: "json",
+        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        success: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            if (res.code == 0) {
+                res.data.forEach(function (item, index) {
+                    var html = '<option value="' + item.code + '">' + item.name + '</option>';
+                    $('#editUserCertificateType').append(html);
+                });
+                $('#editUserCertificateType').selectpicker('refresh');
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+}
+
+
+
 /**
  * 初始化性别下拉选
  */
@@ -253,13 +277,7 @@ function initResponceTypeSelect() {
                 $('#patientsNature').selectpicker('refresh');
                 $('#editUserPatientsNature').selectpicker('refresh');
             } else {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
+                errorMesage(res.message);
             }
         }
     });
@@ -298,9 +316,6 @@ function initDeptPlus() {
 }
 
 
-
-
-
 /**
  * 初始门诊收银方式下拉选
  */
@@ -396,13 +411,7 @@ function editUserModal(data) {
                     }, 400);
                 }
             } else {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
+                errorMesage(res.message);
             }
         }
     });
@@ -455,13 +464,7 @@ function backNoModal(patientId, times) {
                     $("#tb_fee_info").find("tbody").append(trHtml);
                 }
             } else {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
+                errorMesage(res.message);
             }
         }
     });
@@ -511,103 +514,6 @@ function formatCheck() {
     }
 }
 
-/**
- * 卡号有变化后查询病人信息
- */
-function queryUserInfoByCardNo() {
-    var cardNo = $("#cardNo").val();
-    var index = cardNo.indexOf("-");
-    if ((index > 0 && index == cardNo.length - 2) || cardNo.length == 8) {
-        $("#cardNo").attr("title", cardNo);
-        $.ajax({
-            type: "GET",
-            url: '/thmz/getByIcCardNo?icCardNo=' + cardNo,
-            contentType: "application/json;charset=UTF-8",
-            dataType: "json",
-            headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
-            success: function (res) {
-                if (res == '401' || res == 401) {
-                    window.location.href = '/thmz/login/view'
-                    return;
-                }
-                if (res.code == 0) {
-                    if (res.data != null) {
-                        $("#cardNo").blur();
-                        $("#userName").val(res.data.name);
-                        $("#userName").blur();
-                        $("#userNameReadOnly").val(res.data.name);
-                        $("#age").val(res.data.age);
-                        $("#age").blur();
-                        $("#gender").selectpicker('val', res.data.sex);
-                        $("#gender").selectpicker('refresh');
-                        $("#gender").blur();
-                        $("#birthDayReadonly").val(res.data.birthDayStr);
-                        $("#birthDayReadonly").attr("title", res.data.birthDayStr);
-                        $("#birthDay").val(res.data.birthDayStr);
-                        $("#birthDay").blur();
-                        $("#phoneNum").val(res.data.phoneNo);
-                        $("#phoneNum").attr("title", res.data.phoneNo);
-                        $("#phoneNum").blur();
-                        $("#patientsNature").selectpicker('val', res.data.responseType);//默认选中
-                        $('#patientsNature').selectpicker('refresh');
-                        $("#patientsNature").blur();
-                        $("#idCard").val(res.data.socialNo);
-                        $("#idCard").attr("title", res.data.socialNo);
-                        $("#idCard").blur();
-                        $("#address").val(res.data.address);
-                        $("#address").blur();
-                        $("#patientId").val(res.data.patientId);
-                        if (res.data.name != null && res.data.name != "") {
-                            $("#editUser").show();
-                        }
-                        readonlyOrNot(true);
-                    } else {
-                        $("#newCardModal").modal();
-                    }
-                } else {
-                    new PNotify({
-                        title: '错误提示',
-                        text: res.message,
-                        type: 'error',
-                        hide: true,
-                        styling: 'bootstrap3'
-                    });
-                }
-            }
-        });
-    }
-}
-
-/**
- * 卡号输入改变事件
- */
-function cardNoChange() {
-    if (window.ActiveXObject || "ActiveXObject" in window) {
-        $("#cardNo").on('input propertychange', function () {
-            queryUserInfoByCardNo();
-        });
-    } else {
-        $("#cardNo").on('input οninput', function () {
-            queryUserInfoByCardNo();
-        });
-    }
-}
-
-/**
- * 病人姓名输入改变事件
- */
-function userNameChange() {
-    if (window.ActiveXObject || "ActiveXObject" in window) {
-        $("#userName").on('input propertychange', function () {
-            refeshPatinetList(true);
-        });
-    } else {
-        $("#userName").on('input οninput', function () {
-            refeshPatinetList(true);
-        });
-    }
-}
-
 
 /**
  * 校验收款金额
@@ -618,26 +524,14 @@ function checkFee() {
     realMoney = realMoney.toFixed(2);
     $("#realMoney").val(realMoney)
     if (cash < realMoney) {
-        new PNotify({
-            title: '错误提示',
-            text: "收款金额不能少于实收金额!",
-            type: 'error',
-            hide: true,
-            styling: 'bootstrap3'
-        });
+        errorMesageSimaple("收款金额不能少于实收金额!");
         return;
     } else if (cash > realMoney) {
         if ($("#payType").val() == 1) {
             var changeAmount = cash - realMoney;
             $("#changeAmount").val(changeAmount.toFixed(2));
         } else {
-            new PNotify({
-                title: '错误提示',
-                text: "非现金收款金额不能大于实收金额!",
-                type: 'error',
-                hide: true,
-                styling: 'bootstrap3'
-            });
+            errorMesageSimaple("非现金收款金额不能大于实收金额!");
             return;
         }
     }
@@ -650,185 +544,6 @@ function checkFee() {
     $("#discount").text(discount.toFixed(2))
 }
 
-/**
- * 根据病人姓名输入框内容动态加载病人列表
- */
-function initUserList() {
-    //var width=$("#userName").css("width");
-    var settings = {
-        trigger: 'click',
-        content: '',
-        width: 170,
-        multi: true,
-        closeable: false,
-        style: '',
-        delay: 300,
-        padding: true,
-        height: 300
-    };
-    var webuiPopover = $('#userName').webuiPopover('destroy').webuiPopover(settings);
-    //用户姓名选中事件
-    $("#userName").on("click", function (t) {
-        if ($(webuiPopover).css("display") == "block") {
-            refeshPatinetList(true);
-        }
-    });
-
-
-}
-
-/**
- * 刷新病人列表
- */
-function refeshPatinetList(flag) {
-    //如果是重新加载病人列表,需要重置下标
-    if (flag) {
-        //重置下标
-        pageIndex = 0;
-        msg_list_loading = true;
-    }
-    var userName = $('#userName').val();
-    if (!(userName == null || userName == "" || isChinese(userName))) {
-        return;
-    }
-    $.ajax({
-        type: "GET",
-        url: '/thmz/getPatientMiByName?name=' + userName + "&pageIndex=" + pageIndex,
-        contentType: "application/json;charset=UTF-8",
-        dataType: "json",
-        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
-        success: function (res) {
-            if (res == '401' || res == 401) {
-                window.location.href = '/thmz/login/view'
-                return;
-            }
-            if (res.code == 0) {
-                if (res.data != null && res.data.length > 0) {
-                    $("#webuiPopover0").css("display", "block");
-                    var html = '<div class="list-group">';
-                    for (var i = 0; i < res.data.length; i++) {
-                        var mzPatientMi = res.data[i];
-                        html += '<a href="#" class="list-group-item list-group-item-action" onclick="fillPatinet(\'' + mzPatientMi.patientId + '\')">';
-                        var sex = "未知";
-                        if (mzPatientMi.sex == 1) {
-                            html += '<img src="/thmz/images/boy.png"/>'
-                            sex = "男";
-                        } else if (mzPatientMi.sex == 2) {
-                            html += '<img src="/thmz/images/girl.png"/>'
-                            sex = "女";
-                        } else if (mzPatientMi.sex == 0 || mzPatientMi.sex == null) {
-                            html += '<img src="/thmz/images/girl_or_boy.png"/>'
-                            sex = "未知";
-                        }
-                        html += '<div>' + mzPatientMi.name + '&nbsp;' + sex + '&nbsp;';
-                        html += mzPatientMi.ageString;
-                        if (mzPatientMi.phoneNo != null && mzPatientMi.phoneNo != "") {
-                            html += '<span>' + mzPatientMi.phoneNo + '</span>';
-                        }
-                        html += '</div></a>';
-                    }
-                    html += '</div>';
-                    if (flag) {
-                        $("div.webui-popover-content").html("");
-                    }
-                    $("div.webui-popover-content").append(html);
-                    $("div.arrow").css("left", "23px");
-                    refeshPatinetListScrollEvent();
-                } else {
-                    $("#webuiPopover0").css("display", "none");
-                }
-            }
-            //查询完成,设置加载完成
-            msg_list_loading = false;
-        }
-    });
-}
-
-/**
- * 病人下拉列表滚动条滚动到底部时继续加载新纪录
- */
-function refeshPatinetListScrollEvent() {
-    $('.webui-popover-content').scroll(function (event) {
-        var top = $(this).scrollTop();
-        var height = $(this).height();
-        var scrollHeight = $(this).get(0).scrollHeight;
-        if (scrollHeight <= top + height) {
-            if (!msg_list_loading) {
-                msg_list_loading = true;
-                pageIndex = pageIndex + 1;
-                refeshPatinetList(false);
-            }
-        }
-    });
-}
-
-/**
- * 按照病人id查询病人信息
- * @param patientId
- */
-function fillPatinet(patientId) {
-    if (patientId == null || patientId == "") {
-        return;
-    }
-    $.ajax({
-        type: "GET",
-        url: '/thmz/getByPatientId?patientId=' + patientId,
-        contentType: "application/json;charset=UTF-8",
-        dataType: "json",
-        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
-        success: function (res) {
-            if (res == '401' || res == 401) {
-                window.location.href = '/thmz/login/view'
-                return;
-            }
-            if (res.code == 0) {
-                if (res.data != null) {
-                    $("#cardNo").val(res.data.icCardNo);
-                    $("#cardNo").attr("title", res.data.icCardNo);
-                    $("#cardNo").blur();
-                    $("#userName").val(res.data.name);
-                    $("#userName").blur();
-                    $("#userNameReadOnly").val(res.data.name);
-                    $("#age").val(res.data.age);
-                    $("#age").blur();
-                    $("#gender").selectpicker('val', res.data.sex);
-                    $("#gender").selectpicker('refresh');
-                    $("#gender").blur();
-                    $("#birthDayReadonly").val(res.data.birthDayStr);
-                    $("#birthDayReadonly").attr("title", res.data.birthDayStr);
-                    $("#birthDayReadonly").blur();
-                    $("#birthDay").val(res.data.birthDayStr);
-                    $("#birthDay").blur();
-                    $("#phoneNum").val(res.data.phoneNo);
-                    $("#phoneNum").attr("title", res.data.phoneNo);
-                    $("#phoneNum").blur();
-                    $("#patientsNature").selectpicker('val', res.data.responseType);//默认选中
-                    $('#patientsNature').selectpicker('refresh');
-                    $("#patientsNature").blur();
-                    $("#idCard").val(res.data.socialNo);
-                    $("#idCard").attr("title", res.data.socialNo);
-                    $("#idCard").blur();
-                    $("#address").val(res.data.address);
-                    $("#address").blur();
-                    $("#patientId").val(res.data.patientId);
-                    if (res.data.name != null && res.data.name != "") {
-                        $("#editUser").show();
-                    }
-                    readonlyOrNot(true);
-                }
-            } else {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
-            }
-        }
-    });
-}
-
 
 /**
  * 将病人信息填入患者信息修改form
@@ -846,6 +561,8 @@ function fillPlusPatinet(patinet) {
         $("#editUserGender").blur();
         $("#editUserBirthDay").val(patinet.birthDayStr);
         $("#editUserBirthDay").blur();
+        $('#editUserCertificateType').selectpicker('val', patinet.certificateType);
+        $('#editUserCertificateType').selectpicker('refresh');
         $("#editUserCardNo").val(patinet.icCardNo);
         $("#editUserCardNo").attr("title", patinet.icCardNo);
         $("#editUserCardNo").blur();
@@ -858,8 +575,12 @@ function fillPlusPatinet(patinet) {
         $("#editUserIdCard").val(patinet.socialNo);
         $("#editUserIdCard").attr("title", patinet.socialNo);
         $("#editUserIdCard").blur();
-        $("#editUserAddress").val(patinet.address);
-        $("#editUserAddress").blur();
+        $('#editUserProvinceCode').selectpicker('val', patinet.provinceCode);
+        $('#editUserProvinceCode').selectpicker('refresh');
+        initCity(2, patinet.cityCode);
+        initDistrict(2, patinet.cityCode, patinet.districtCode);
+        $("#editUserDetail").val(patinet.detail);
+        $("#editUserDetail").blur();
         $("#editUserContact").val(patinet.relName);
         $("#editUserContactPhone").val(patinet.contractName);
     }
@@ -901,45 +622,6 @@ function clearTextOrTitle(obj) {
     }
 }
 
-/**
- * 当按照卡号查询时,病人信息输入框不可编辑,当清空输入框时可编辑
- * @param flag
- */
-function readonlyOrNot(flag) {
-    if (flag) {
-        $("#cardNo").attr("readonly", "readonly");
-        $("#userName").attr("readonly", "readonly");
-        $("#age").attr("readonly", "readonly");
-        $("#gender").attr("disabled", "disabled");
-        $("#phoneNum").attr("readonly", "readonly");
-        $("#patientsNature").attr("disabled", "disabled");
-        $("#idCard").attr("readonly", "readonly");
-        $("#address").attr("readonly", "readonly");
-        $("#birthDayReadonly").removeClass("hide").addClass("in");
-        $("#birthDayGroup").removeClass("in").addClass("hide");
-        $("#userName").removeClass("in").addClass("hide");
-        $("#userNameReadOnly").removeClass("hide").addClass("in");
-        $("#webuiPopover0").css("display", "none");
-    } else {
-        $("#cardNo").removeAttr("readonly");
-        $("#userName").removeAttr("readonly");
-        $("#age").removeAttr("readonly");
-        $("#gender").removeAttr("disabled");
-        $("#gender").next().removeClass("disabled");
-        $("#phoneNum").removeAttr("readonly");
-        $("#patientsNature").removeAttr("disabled");
-        $("#patientsNature").next().removeClass("disabled");
-        $("#idCard").removeAttr("readonly");
-        $("#address").removeAttr("readonly");
-        $("#birthDayReadonly").removeClass("in").addClass("hide");
-        $("#birthDayGroup").removeClass("hide").addClass("in");
-        $("#userName").removeClass("hide").addClass("in");
-        $("#userNameReadOnly").removeClass("in").addClass("hide");
-        //$("#webuiPopover0").css("display", "block");
-    }
-
-}
-
 
 /**
  * 查询默认打印机
@@ -970,8 +652,6 @@ function setPrint() {
 }
 
 
-
-
 /**
  * 修改病人信息
  */
@@ -986,11 +666,15 @@ function modifyPatient() {
             "age": $("#editUserAge").val(),
             "sex": $("#editUserGender").val(),
             "birthDay": $("#editUserBirthDay").val(),
+            "certificateType": $("#editUserCertificateType").val(),
             "icCardNo": $("#editUserCardNo").val(),
             "phoneNo": $("#editUserPhoneNum").val(),
             "responseType": $("#editUserPatientsNature").val(),
             "socialNo": $("#editUserIdCard").val(),
-            "address": $("#editUserAddress").val(),
+            "provinceCode": $("#editUserProvinceCode").val(),
+            "cityCode": $("#editCityCode").val(),
+            "districtCode": $("#editUserDistrictCode").val(),
+            "detail": $("#editUserDetail").val(),
             "patientId": $("#editUserCode").val(),
             "relName": $("#editUserContact").val(),
             "contractName": $("#editUserContactPhone").val()
@@ -1003,20 +687,46 @@ function modifyPatient() {
             }
             if (res.code == 0) {
                 $('#editUserModal').modal('hide');
-                fillPatinet($("#patientId").val());
+                //fillPatinet($("#patientId").val());
+                clearPlusPatinet();
             } else {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
+                errorMesage(res.message);
             }
         }
     });
 }
 
+/**
+ * 将病人信息修改域置空
+ * @param patinet
+ */
+function clearPlusPatinet() {
+    $("#editUserCode").val(null);
+    $("#editUserName").val(null);
+    $("#editUserAge").val(null);
+    $("#editUserGender").selectpicker('val', '1');
+    $("#editUserGender").selectpicker('refresh');
+    $("#editUserBirthDay").val(null);
+    $('#editUserCertificateType').selectpicker('val', '01');
+    $('#editUserCertificateType').selectpicker('refresh');
+    $("#editUserCardNo").val(null);
+    $("#editUserCardNo").attr("title", null);
+    $("#editUserPhoneNum").val(null);
+    $("#editUserPhoneNum").attr("title", null);
+    $("#editUserPatientsNature").selectpicker('val', '01');//默认选中
+    $('#editUserPatientsNature').selectpicker('refresh');
+    $("#editUserIdCard").val(null);
+    $("#editUserIdCard").attr("title", null);
+    $('#editUserProvinceCode').selectpicker('val', null);
+    $('#editUserProvinceCode').selectpicker('refresh');
+    $('#editCityCode').selectpicker('val', null);
+    $('#editCityCode').selectpicker('refresh');
+    $('#editUserDistrictCode').selectpicker('val', null);
+    $('#editUserDistrictCode').selectpicker('refresh');
+    $("#editUserDetail").val(null);
+    $("#editUserContact").val(null);
+    $("#editUserContactPhone").val(null);
+}
 
 
 /**
@@ -1565,7 +1275,7 @@ function loadTableList() {
                     // sortable: true,
                     formatter: function (value, row, index) {
                         if (row.mzyReqrec.cancelMark == 1) {
-                            var html= '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
+                            var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
                             //       '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
                             if (!(buttonCodes == null || !isInArrayStr("cancel_clinic", buttonCodes))) {
                                 html += '<button type="button" class="can-not-used"  title="取消接诊"><i class="fa fa-mail-reply"></i></button>';
@@ -1823,8 +1533,6 @@ function saveBackNo() {
 }
 
 
-
-
 /**
  * 打开退费重收确认弹框
  * @param serialNo
@@ -2027,13 +1735,7 @@ function saveEditPayMode() {
                 $("#editPayModeModal").modal("hide");
                 loadRegistrationList(true);
             } else if (res.code == -1) {
-                new PNotify({
-                    title: '错误提示',
-                    text: res.message,
-                    type: 'error',
-                    hide: true,
-                    styling: 'bootstrap3'
-                });
+                errorMesage(res.message);
             }
         }
     });

+ 53 - 110
src/main/resources/templates/mz/registration_list.html

@@ -9,6 +9,7 @@
 <script src="/thmz/js/dependent/icheck.js"></script>
 <script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
 <script src="/thmz/js/dependent/validator.js"></script>
+<script src="/thmz/js/jBox/common.js"></script>
 <script src="/thmz/js/mz/registration_list.js"></script>
 <script src="/thmz/js/dependent/LodopFuncs.js"></script>
 <title>挂号列表</title>
@@ -393,7 +394,18 @@
                     </div>
                     <div class="item form-group thmz_alert">
                         <div class="col-md-6 col-sm-6 col-xs-12 item">
-                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserIdCard">身份证
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserCertificateType">证件类型
+                                <span
+                                        class="required">*</span>
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <select class="form-control selectpicker show-tick" required="required"
+                                        id="editUserCertificateType">
+                                </select>
+                            </div>
+                        </div>
+                        <div class="col-md-6 col-sm-6 col-xs-12 item">
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserIdCard">证件号
                             </label>
                             <div class="col-md-8 col-sm-8 col-xs-12">
                                 <div class="input-group demo2 input-group-own">
@@ -405,48 +417,51 @@
                                 </div>
                             </div>
                         </div>
-                        <div class="col-md-6 col-sm-6 col-xs-12">
-                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserAddress">地址</label>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-6 col-sm-6 col-xs-12 item">
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserProvinceCode">省份
+                                <span
+                                        class="required">*</span>
+                            </label>
                             <div class="col-md-8 col-sm-8 col-xs-12">
-                                <input id="editUserAddress" class="form-control col-md-7 col-xs-12"
-                                       data-validate-length-range="2,10"
+                                <select class="form-control selectpicker show-tick" required="required" id="editUserProvinceCode" title="请选择"
+                                        data-live-search="true" onchange="initCity(2,null)">
+                                </select>
+                            </div>
+                        </div>
+                        <div class="col-md-6 col-sm-6 col-xs-12 item">
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editCityCode">市
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <select class="form-control selectpicker show-tick" required="required" id="editCityCode"
+                                        data-live-search="true" onchange="initDistrict(2,null,null)" title="请选择">
+                                </select>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-6 col-sm-6 col-xs-12 item">
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserDistrictCode">区县
+                                <span
+                                        class="required">*</span>
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <select class="form-control selectpicker show-tick" required="required" data-live-search="true" title="请选择"
+                                        id="editUserDistrictCode">
+                                </select>
+                            </div>
+                        </div>
+                        <div class="col-md-6 col-sm-6 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editUserDetail"
+                                   style="margin-left: -3px;">地址</label>
+                            <div class="col-md-10 col-sm-10 col-xs-12">
+                                <input id="editUserDetail" class="form-control col-md-7 col-xs-12"
+                                       data-validate-length-range="0,40"
                                        placeholder="请输入" required="required" type="text">
                             </div>
                         </div>
                     </div>
-
-                    <!--         <div class="item form-group">
-                                 <div class="col-md-6 col-sm-6 col-xs-12">
-                                     <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserRemark">备注</label>
-                                     <div class="col-md-8 col-sm-8 col-xs-12">
-                                         <input id="editUserRemark" class="form-control col-md-7 col-xs-12"
-                                                data-validate-length-range="2,10"
-                                                placeholder="请输入" required="required" type="text">
-                                     </div>
-                                 </div>-->
-                    <!--                 <div class="col-md-6 col-sm-6 col-xs-12">
-                                         <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserMaritalStrtus">婚姻状况
-                                             <span
-                                                     class="required">*</span>
-                                         </label>
-                                         <div class="col-md-8 col-sm-8 col-xs-12">
-                                             <select class="form-control selectpicker show-tick" required="required"
-                                                     id="editUserMaritalStrtus">
-                                             </select>
-                                         </div>
-                                     </div>-->
-                    <!--  </div>-->
-                    <!--<div class="item form-group">-->
-                    <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
-                    <!--<label class="control-label col-md-4 col-sm-4 col-xs-12"-->
-                    <!--for="editUserBloodGrouping">血型</label>-->
-                    <!--<div class="col-md-8 col-sm-8 col-xs-12">-->
-                    <!--<select class="form-control selectpicker show-tick" required="required"-->
-                    <!--id="editUserBloodGrouping">-->
-                    <!--</select>-->
-                    <!--</div>-->
-                    <!--</div>-->
-                    <!--</div>-->
                     <div class="item form-group">
                         <div class="col-md-6 col-sm-6 col-xs-12">
                             <button type="button" style="cursor: default;margin-bottom: 10px !important;"
@@ -664,78 +679,6 @@
 <!--卡号查询病人信息不存在弹窗结尾-->
 
 
-<!--窗口设置弹窗开始-->
-<!--<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="editWindowsModal"-->
-     <!--style="top:20%;">-->
-    <!--<div class="modal-dialog modal-sm">-->
-        <!--<div class="modal-content" style="width: 480px;">-->
-            <!--<div class="modal-header">-->
-                <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>-->
-                <!--</button>-->
-                <!--<h4 class="modal-title">窗口设置</h4>-->
-            <!--</div>-->
-            <!--<div class="modal-body">-->
-                <!--<form class="form-horizontal form-label-left" novalidate autocomplete="off">-->
-                    <!--<div class="item form-group">-->
-                        <!--<div class="col-md-12 col-sm-12 col-xs-12 item">-->
-                            <!--<label class="control-label col-md-3 col-sm-3 col-xs-12" for="userName">窗口号 <span-->
-                                    <!--class="required">*</span>-->
-                            <!--</label>-->
-                            <!--<div class="col-md-3 col-sm-3 col-xs-12">-->
-                                <!--<input id="windowsNum" class="form-control col-md-7 col-xs-12"-->
-                                       <!--data-validate-length-range="1,3"-->
-                                       <!--placeholder="请输入" required="required" type="text" data-placement="bottom-right">-->
-                            <!--</div>-->
-                        <!--</div>-->
-                    <!--</div>-->
-                <!--</form>-->
-            <!--</div>-->
-            <!--<div class="modal-footer">-->
-                <!--<button type="button" class="btn btn-primary" onclick="saveWindows()">确定</button>-->
-                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
-            <!--</div>-->
-        <!--</div>-->
-    <!--</div>-->
-<!--</div>-->
-<!--窗口设置弹窗结尾-->
-
-
-<!--打印设置弹窗开始-->
-<!--<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="editPrintModal"-->
-     <!--style="top:20%;">-->
-    <!--<div class="modal-dialog modal-sm">-->
-        <!--<div class="modal-content" style="width: 480px;">-->
-            <!--<div class="modal-header">-->
-                <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>-->
-                <!--</button>-->
-                <!--<h4 class="modal-title">打印设置</h4>-->
-            <!--</div>-->
-            <!--<div class="modal-body">-->
-                <!--<form class="form-horizontal form-label-left" novalidate autocomplete="off">-->
-                    <!--<div class="item form-group">-->
-                        <!--<div class="col-md-1 col-sm-1 col-xs-12 item"></div>-->
-                        <!--<div class="col-md-3 col-sm-3 col-xs-12 item">-->
-                            <!--<label class="control-label" for="printSelect">打印机名称 <span-->
-                                    <!--class="required">*</span>-->
-                            <!--</label>-->
-                        <!--</div>-->
-                        <!--<div class="col-md-7 col-sm-7 col-xs-12 item">-->
-                            <!--<select class="form-control selectpicker show-tick" required="required" id="printSelect">-->
-                            <!--</select>-->
-                        <!--</div>-->
-                        <!--<div class="col-md-1 col-sm-1 col-xs-12 item"></div>-->
-                    <!--</div>-->
-                <!--</form>-->
-            <!--</div>-->
-            <!--<div class="modal-footer">-->
-                <!--<button type="button" class="btn btn-primary" onclick="savePrint()">确定</button>-->
-                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
-            <!--</div>-->
-        <!--</div>-->
-    <!--</div>-->
-<!--</div>-->
-<!--打印设置弹窗结尾-->
-
 
 
 <!--退费重收弹窗开始-->