<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
<link rel="stylesheet" href="/thmz/css/bootstrap/css/daterangepicker.css"/>
<link rel="stylesheet" href="/thmz/css/iCheck/blue.css">
<link rel="stylesheet" href="/thmz/css/custom.min.css">
<link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
<link rel="stylesheet" href="/thmz/css/registration.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<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/dependent/LodopFuncs.js"></script>
<script src="/thmz/js/jBox/jquery.jBox-2.3.min.js"></script>
<script src="/thmz/js/jBox/baseISSObject.js"></script>
<script src="/thmz/js/jBox/baseISSOnline.js"></script>
<script src="/thmz/js/jBox/common.js"></script>
<script src="/thmz/js/mz/registration.js"></script>
<title>挂号管理</title>
<style>
    .thmz_alert .alert::after {
        content: '';
        display: block;
        height: 0;
        width: 0;
        border-color: transparent transparent #CE5454 transparent;
        border-style: solid;
        border-width: 11px 7px;
        position: absolute;
        left: 23px;
        top: -23px;
    }

    .thmz_alert .alert {
        float: right;
        margin-right: 10px;
        margin-top: 12px;
    }

    .input-group-own {
        margin-bottom: 0px;
    }
</style>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="title">
            <div>新增挂号</div>
        </div>
        <form class="form-horizontal form-label-left mz-fixed-form" novalidate id="regi_form" autocomplete="off">
            <div class="item form-group">
                <div class="col-md-3 col-sm-3 col-xs-12">
                    <button type="button" style="margin-left:14px;cursor: default;margin-bottom: 10px !important;"
                            class="btn btn-primary">
                        基本信息
                    </button>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-12">
                    <div class="clearRegistrationDiv">
                        <!--<a id="editPrint"><i class="fa fa-cog">&nbsp;打印设置</i></a>-->
                        <!--<a id="editWindows"><i class="fa fa-gears">&nbsp;窗口号设置</i></a>-->
                        <a id="nucleicAcid" hidden onclick="nucleicAcid()"><i class="fa fa-eyedropper">&nbsp;核酸检测</i></a>
                        <a id="clearIcCardNo" hidden onclick="clearIcCardNo()"><i
                                class="fa fa-chain-broken">&nbsp;销卡</i></a>
                        <a onclick="savePatient(false)" id="saveUser" hidden><i class="fa fa-user">&nbsp;患者建档</i></a>
                        <a onclick="editUserModal(null)" id="editUser" hidden><i class="fa fa-user">&nbsp;修改患者</i></a>
                        <a id="clearRegistration"><i class="fa fa-trash">&nbsp;清空</i></a>
                    </div>
                </div>
            </div>
            <div class="item form-group thmz_alert">
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="userName">姓名 <span
                            class="required">*</span>
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="userName" class="form-control col-md-7 col-xs-12" data-validate-length-range="2,16"
                               placeholder="姓名" required="required" type="text" data-placement="bottom-right">
                        <input type='text' class="form-control hide" id='userNameReadOnly' readonly/>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item thmz_group_alert">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="age">年龄
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <div class="input-group input-group-own">
                            <input id="age" class="form-control col-md-7 col-xs-12" type="number"
                                   data-validate-minmax="0,200" required="required"
                                   placeholder="请输入">
                            <div class="input-group-btn">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                                        aria-expanded="false" style="margin-right: 0px;">岁 <span class="caret"></span>
                                </button>
                                <!--<ul class="dropdown-menu dropdown-menu-right" role="menu"
                                    style="width: 50px;min-width: 50px;">
                                    <li><a href="#">岁</a>
                                    </li>
                                    <li><a href="#">月</a>
                                    </li>
                                    <li><a href="#">天</a>
                                    </li>
                                </ul>-->
                            </div>
                            <!-- /btn-group -->
                        </div>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="gender">性别 <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="gender">
                        </select>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item thmz_group_alert">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="birthDayGroup">出生日期 <span
                            class="required">*</span>
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <div class='input-group date input-group-own' id='birthDayGroup'>
                            <input type='text' class="form-control" required="required" id='birthDay'
                                   onchange="clearTextOrTitle(this)"/>
                            <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                        <input type='text' class="form-control hide" id='birthDayReadonly' readonly/>
                    </div>
                </div>
            </div>
            <div class="item form-group thmz_alert">
                <div class="col-md-3 col-sm-3 col-xs-12 item thmz_group_alert">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="cardNo">卡号/ID <span
                            class="required">*</span>
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <div class="input-group demo2 input-group-own">
                            <input id="cardNo" class="form-control col-md-7 col-xs-12" type="text"
                                   data-validate-length-range="1,8"
                                   placeholder="ID/卡号" required="required">
                            <input type='text' class="form-control hide" id='patientId'/>
                            <span class="input-group-addon"><a href="#" style="cursor: default"><i
                                    class="fa fa-credit-card"></i></a></span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="phoneNum">手机号码 <span
                            class="required">*</span>
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="phoneNum" class="form-control col-md-7 col-xs-12" type="text"
                               data-validate-length-range="11,11"
                               placeholder="请输入" required="required" onchange="clearTextOrTitle(this)">
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="patientsNature">病人性质 <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="patientsNature">
                        </select>
                    </div>
                </div>
            </div>

            <div class="item form-group">
                <div class="col-md-4 col-sm-4 col-xs-12 item thmz_group_alert">
                    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="idCard" style="left: -1px;">身份证
                    </label>
                    <div class="col-md-9 col-sm-9 col-xs-12" style="left: -1px;">
                        <div class="input-group demo2 input-group-own">
                            <input id="idCard" class="form-control" type="text"
                                   data-validate-length-range="18,18"
                                   placeholder="请输入">
                            <span class="input-group-addon"><a href="#"><i class="fa fa-newspaper-o"></i></a></span>
                        </div>
                    </div>
                </div>
                <div class="col-md-8 col-sm-8 col-xs-12 item">
                    <label class="control-label col-md-2 col-sm-2 col-xs-12" for="address" style="left: -3px;">地址
                    </label>
                    <div class="col-md-10 col-sm-10 col-xs-12" style="left: -3px;">
                        <input id="address" class="form-control optional" type="text"
                               data-validate-length-range="0,40"
                               placeholder="请输入">
                    </div>
                </div>
            </div>

            <!--<div class="item form-group thmz_alert">-->

            <!--<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="remark">备注-->
            <!--</label>-->
            <!--<div class="col-md-8 col-sm-8 col-xs-12">-->
            <!--<input id="remark" class="form-control col-md-7 col-xs-12" data-validate-length-range="2,10"-->
            <!--placeholder="请输入" required="true" type="text">-->
            <!--</div>-->
            <!--</div>-->
            <!--</div>-->
            <div class="item form-group">
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <button type="button" style="margin-left:14px;cursor: default;margin-bottom: 10px !important;"
                            class="btn btn-primary">
                        科室信息
                    </button>
                </div>
            </div>
            <div class="item form-group thmz_alert">
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="ampm">号段 <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" title="请选择"
                                onchange="initDeptPlus()"
                                id="ampm">
                        </select>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="deptNo">科室 <span
                            class="required">*</span>
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <select class="form-control selectpicker show-tick" data-live-search="true" required="required"
                                title="请选择" onchange="initChargeType()"
                                id="deptNo">
                        </select>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="chargeType">号别 <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" title="请选择"
                                onchange="initEmployee()"
                                id="chargeType">
                        </select>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="doctor">医生 <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" title="请选择"
                                onchange="fitFee()"
                                id="doctor">
                        </select>
                    </div>
                </div>
            </div>
            <!--<div class="item form-group thmz_alert">-->
            <!---->
            <!--</div>-->
            <div class="item form-group">
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <button type="button" style="margin-left:14px;cursor: default;margin-bottom: 10px !important;"
                            class="btn btn-primary">
                        收费信息
                    </button>
                </div>
            </div>
            <div class="item form-group">
                <div class="col-md-3 col-sm-3 col-xs-12">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="registrationFee">挂号费
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="registrationFee" class="form-control col-md-7 col-xs-12" readonly>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="hospitalFee">诊查费
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="hospitalFee" class="form-control col-md-7 col-xs-12"
                               readonly>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="checkFee">检查费
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="checkFee" class="form-control col-md-7 col-xs-12" readonly>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                    <label class="control-label col-md-4 col-sm-4 col-xs-12" for="othFee">其他费
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="othFee" class="form-control col-md-7 col-xs-12" readonly>
                    </div>
                </div>
            </div>
            <!--<div class="item form-group">-->
            <!---->
            <!--</div>-->

            <div class="item form-group" style="margin-top: 50px;">
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <div class="total"> 合计：
                        <span class="amountMoney" id="amountMoney">0.00</span><span>元</span>
                    </div>
                </div>
                <!--<div class="col-md-6 col-sm-6 col-xs-12">
                    <button type="button" class="btn btn-primary" style="margin-right: 10px;float: right;">
                        <span>附加费</span>
                    </button>
                </div>-->
            </div>

            <div class="item form-group" style="margin-top: 20px;">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <button type="button" class="btn btn-primary" id="confirmFee" style="width: 100%;"
                            onclick="confirmFeeModal()">
                        <span>确认收费</span>
                    </button>
                </div>
            </div>
        </form>
    </div>

</div>


<!--收费弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="confirmFeeModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;">
            <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>
                    <div class="item form-group"
                         style="padding: 20px 10px;background: rgb(245, 246, 250);border-radius: 4px;border: none;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="total"> 合计：
                                    <span class="amountMoney" id="amountMoneyConfirm">0.00</span><span>元</span>
                                </div>
                            </div>
                            <div class="col-md-5 col-sm-5 col-xs-12">
                                <label class="control-label col-md-4 col-sm-4 col-xs-12" for="realMoney">实收：
                                </label>
                                <div class="col-md-8 col-sm-8 col-xs-12">
                                    <input id="realMoney" class="form-control col-md-5 col-xs-12" type="number"
                                           data-placement="bottom-right" min="0" onchange="checkFee()" readonly>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12" style="line-height: 34px;">
                                <span>元（折扣</span><span class="amountMoney" id="discount">100</span><span>%）</span>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-2 col-sm-2 col-xs-12"></div>
                            <label class="col-md-3 col-sm-3 col-xs-12" for="payType">
                                <select class="form-control selectpicker show-tick" required="true"
                                        id="payType" onchange="checkFee()"></select>
                            </label>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                <input id="cash" class="form-control col-md-5 col-xs-12" type="number"
                                       data-placement="bottom-right" min="0" onchange="checkFee()">
                            </div>
                            <!--<div class="col-md-4 col-sm-4 col-xs-12">
                                <button type="button" class="btn btn-primary" id="addPayType">
                                    <span>增加收款方式</span>
                                </button>
                                <input type="hidden" id="payTypeIndex" value="0"/>
                            </div>-->
                        </div>
                    </div>
                    <div class="item form-group" id="changeAmountParent">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-2 col-sm-2 col-xs-12"></div>
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="changeAmount">找零金额：
                            </label>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                <input id="changeAmount" class="form-control col-md-5 col-xs-12"
                                       data-placement="bottom-right" readonly>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <!--<div style="float: left;margin-left: 10px;">-->
                <!--<input type="checkbox"/>&nbsp;&nbsp;打印-->
                <!--</div>-->
                <button type="button" class="btn btn-primary" id="saveConfirmFee">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--收费弹窗结尾-->


<!--修改挂号信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editRegiModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;">
            <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>
                    <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;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group"
                         style="margin-left: 10px;border: 1px solid #ddd;padding-top: 20px;padding-bottom: 20px;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                患者：<span id="editRegiFormSickName" style="color: #2e69eb;">林彦韦</span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                付款方式：<span id="editRegiFormPayType">现金</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                手机号：<span id="editRegiFormPhone">12345678903</span>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                科室：<span id="editRegiFormDeptName">挂号室</span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                医生：<span id="editRegiFormDoctorName">云医生</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                挂号时间：<span id="editRegiFormRegiDate">2019-07-09 09:18:27</span>
                            </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;"
                                    class="btn btn-primary">
                                挂号信息
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                原科室：<span id="editRegiFormOrginDeptName">挂号室</span>
                            </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="editRegiFormNewDeptName"
                                       style="font-weight: 400;"><span class="required">*</span>科室：
                                </label>
                                <div class="col-md-8 col-sm-8 col-xs-12">
                                    <select class="form-control selectpicker show-tick" data-live-search="true"
                                            required="required"
                                            id="editRegiFormNewDeptName">
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                原医生：<span id="editRegiFormOrginDoctorName">云医生</span>
                            </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="editRegiFormNewDoctorName" style="font-weight: 400;">
                                    <span class="required">*</span>医生：
                                </label>

                                <div class="col-md-8 col-sm-8 col-xs-12">
                                    <select class="form-control selectpicker show-tick" data-live-search="true"
                                            required="required"
                                            id="editRegiFormNewDoctorName"></select>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEditRegi">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改挂号信息弹窗结尾-->


<!--修改用户信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editUserModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 760px;">
            <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 id="editUserForm" autocomplete="off">
                    <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;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </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="editUserCode">编码</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserCode" class="form-control col-md-7 col-xs-12" type="text" readonly>
                            </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="editUserName">姓名 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,16"
                                       placeholder="请输入" required="required" type="text">
                            </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="editUserAge">年龄 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group input-group-own">
                                    <input id="editUserAge" type="number" class="form-control"
                                           data-validate-minmax="0,200"
                                           placeholder="请输入" required="required">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default dropdown-toggle"
                                                data-toggle="dropdown"
                                                aria-expanded="false" style="margin-right: 0px;">岁 <span
                                                class="caret"></span>
                                        </button>
                                        <!--<ul class="dropdown-menu dropdown-menu-right" role="menu"
                                            style="width: 50px;min-width: 50px;">
                                            <li><a href="#">岁</a>
                                            </li>
                                            <li><a href="#">月</a>
                                            </li>
                                            <li><a href="#">天</a>
                                            </li>
                                        </ul>-->
                                    </div>
                                    <!-- /btn-group -->
                                </div>
                            </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="editUserGender">性别 <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="editUserGender">
                                </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="editUserBirthDayGroup">出生日期
                                <span
                                        class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class='input-group date input-group-own' id='editUserBirthDayGroup'>
                                    <input type='text' class="form-control" id="editUserBirthDay"/>
                                    <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                                </div>
                            </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="editUserCardNo">卡号 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserCardNo" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="1,8"
                                           placeholder="请输入" required="required" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-credit-card"></i></a></span>
                                </div>
                            </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="editUserPhoneNum">手机号码 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserPhoneNum" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="11,11"
                                       placeholder="请输入" required="required" type="text">
                            </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="editUserPatientsNature">病人性质
                                <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="editUserPatientsNature">
                                </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="editUserIdCard">身份证
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserIdCard" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="18,18"
                                           placeholder="请输入" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-newspaper-o"></i></a></span>
                                </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 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"
                                       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;"
                                    class="btn btn-primary">
                                紧急联系人
                            </button>
                        </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="editUserContact">联系人</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContact" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" 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="editUserContactPhone">联系电话</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContactPhone" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEditUser">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改用户信息弹窗结尾-->


<!--挂号管理【退号】弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="backNoModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 780px;">
            <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>
                    <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;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group"
                         style="margin-left: 10px;border: 1px solid #ddd;padding-top: 20px;padding-bottom: 20px;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-2 col-sm-2 col-xs-12">
                                患者：<span id="backNoSickName" style="color: #2e69eb;"></span>
                                <input type="hidden" id="backNoPatientId"/>
                                <input type="hidden" id="backNoTimes"/>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                付款方式：<span id="backNoPayType"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                号段：<span id="backNoAmpm"></span>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                手机号：<span id="backNoPhone"></span>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-2 col-sm-2 col-xs-12">
                                科室：<span id="backNoDeptName"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                号别：<span id="backNoChargeType"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                医生：<span id="backNoDoctorName"></span>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                挂号时间：<span id="backNoRegiDate"></span>
                            </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-top: 10px !important;"
                                    class="btn btn-primary">
                                收费信息
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <table id="tb_fee_info"></table>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <!--<div style="float: left;margin-left: 10px;">-->
                <!--<input type="checkbox"/>&nbsp;&nbsp;打印-->
                <!--</div>-->
                <button type="button" class="btn btn-primary" id="saveBackNo" onclick="saveBackNo();">保存</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="printOrPreviewModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 380px;">
            <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>
                    <div class="col-md-3 col-sm-3 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-9 col-sm-9 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;">
                        请选择打印或预览
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="printButton" onclick="printModal(this)">打印</button>
                <button type="button" class="btn btn-default" id="previewButton">预览</button>
            </div>
        </div>
    </div>
</div>
<!--打印弹窗结尾-->


<!--打印内容弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="printModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 380px;">
            <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>
                    <div class="col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 10px;">
                        请选择打印格式
                    </div>
                    <div class="checkbox" style="margin-bottom: 10px;">
                        <label>
                            <input type="checkbox" class="flat" checked="checked"> 挂号单
                        </label>
                    </div>
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" class="flat" checked="checked"> 挂号收费单
                        </label>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="printConfirmButton">打印</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="newCardModal"
     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>
                    <div class="col-md-2 col-sm-2 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-10 col-sm-10 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;">
                        未找到病人信息，现在注册病人资料吗？
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="$('#newCardModal').modal('hide')">确定</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="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>-->
<!--打印设置弹窗结尾-->
<!--患者查询弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="patientModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 700px;margin-left: 200px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">患者查询 <span style="font-size: 1px;margin-left: 20px;" id="tip_message">请选择本次需要挂号的患者信息</span>
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th>患者ID</th>
                            <th>患者姓名</th>
                            <th>患者性别</th>
                            <th>患者卡号</th>
                            <th>电话号码</th>
                            <th>出生年月</th>
                            <th>患者身份证号码</th>
                        </tr>
                        </thead>
                        <tbody id="patientTable">
                        </tbody>
                    </table>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--患者查询弹窗结尾-->


<!--核酸检测弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="nucleicAcidModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 480px;margin-top: 200px;margin-left: 100px;">
            <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>
                    <div class="item form-group">
                        <label class="control-label col-md-12 col-sm-12 col-xs-12" id="nucleicAcidTip" style="text-align: left">
                        </label>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input id="serialNo" type="hidden"/>
                <button type="button" class="btn btn-primary" id="saveNucleicAcid">确定</button>
                <button type="button" class="btn btn-primary hide" id="chargeFeeNucleicAcid">去缴费</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--核酸检测弹窗结尾-->




<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>