<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/zy/accepting.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;
    }

    .table-bordered td {
        height: 9.5mm;
    }
</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="chargeFee"><i class="glyphicon glyphicon-plus">&nbsp;收费</i></a>
                        <a id="clearRegistration"><i class="fa fa-trash">&nbsp;清空</i></a>
                    </div>
                </div>
            </div>
            <div class="item form-group">
                <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="admissionNumber">住院号
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="admissionNumber" class="form-control col-md-7 col-xs-12"
                               placeholder="住院号" type="text" data-placement="bottom-right"
                               onchange="getZyActpatientByInpatientNoOrMzNO('admissionNumber')">
                    </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="patientId">卡号/ID
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="patientId" class="form-control col-md-7 col-xs-12"
                               placeholder="卡号/ID" type="text" data-placement="bottom-right"
                               onchange="getZyActpatientByInpatientNoOrMzNO('patientId')">
                    </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="userName">姓名
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="userName" class="form-control col-md-7 col-xs-12"
                               placeholder="姓名" type="text" data-placement="bottom-right" readonly>
                    </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">
                        <input id="gender" class="form-control col-md-7 col-xs-12"
                               placeholder="性别" type="text" data-placement="bottom-right" readonly>
                    </div>
                </div>
            </div>
            <div class="item form-group">
                <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="bedNo">床号
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="bedNo" class="form-control col-md-7 col-xs-12"
                               placeholder="床号" type="text" data-placement="bottom-right" readonly>
                    </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="deptName">病房
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="deptName" class="form-control col-md-7 col-xs-12"
                               placeholder="病房" type="text" data-placement="bottom-right" readonly>
                    </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="admissDate">入院日期
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="admissDate" class="form-control col-md-7 col-xs-12"
                               placeholder="入院日期" type="text" data-placement="bottom-right" readonly>
                    </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="responceType">身份
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="responceType" class="form-control col-md-7 col-xs-12"
                               placeholder="身份" type="text" data-placement="bottom-right" readonly>
                    </div>
                </div>
            </div>
            <div class="item form-group ">
                <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="totalAmount">总费用
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="totalAmount" class="form-control col-md-7 col-xs-12"
                               placeholder="总费用" type="text" data-placement="bottom-right" readonly>
                    </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="balance">余额
                    </label>
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <input id="balance" class="form-control col-md-7 col-xs-12"
                               placeholder="余额" type="text" data-placement="bottom-right" readonly>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12 item thmz_group_alert">
                    <div class="col-md-12 col-sm-12 col-xs-12 item btn-group" id="regi_List_btn_group">
                        <button class="btn btn-sm btn-primary" type="button" onclick="titleButtonChange(this)">&nbsp;&nbsp;在院病人&nbsp;&nbsp;</button>
                        <button class="btn btn-sm btn-default" type="button" onclick="titleButtonChange(this)">&nbsp;&nbsp;出院病人&nbsp;&nbsp;
                        </button>
                    </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 hide" id="accountStatus"
                           style="color: red;">已结算
                    </label>
                </div>
            </div>
        </form>
        <table id="tb_table"></table>
        <div class="form-group col-md-12 col-sm-12 col-xs-12"
             style="margin-top: 20px;font-size: 15px;">
            <div class="form-group col-md-2 col-sm-2 col-xs-12"></div>
            <div class="form-group col-md-10 col-sm-10 col-xs-12" id="chargeFeeTip">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    预交合计：<span id="totalPay">0.00</span>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    直退押金合计：<span id="totalRefund">0.00</span>
                </div>
            </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: 800px;margin-left: 200px;height: 620px;">
            <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" id="patientTable">
                        <!--<thead>-->
                        <!--<tr>-->
                            <!--<th>患者姓名</th>-->
                            <!--<th>住院号</th>-->
                            <!--<th>住院次数</th>-->
                        <!--</tr>-->
                        <!--</thead>-->
                        <!--<tbody id="patientTable">-->
                        <!--</tbody>-->
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<!--患者查询弹窗结尾-->


<!--缴费窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="chargeFeeModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 400px;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">缴费退费</h4>-->
                <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">-->
                    <!--<label class="control-label col-md-4 col-sm-4 col-xs-12" for="status">事务 <span-->
                    <!--class="required">*</span>-->
                    <!--</label>-->
                    <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                    <!--<select class="form-control selectpicker show-tick" required="required"  title="请选择"-->
                    <!--id="status">-->
                    <!--</select>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="depoType">收款方式 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" required="true"
                                    id="depoType"></select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="depoAmount">金额
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" id="depoAmount" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="chequeNo">凭证号
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="chequeNo" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>
                    <!--<div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="receiptNo">收据号
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="receiptNo" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>-->
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEdit">保存</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="refungZyFeeModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 400px;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">缴费退费</h4>-->
                <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">-->
                    <!--<label class="control-label col-md-4 col-sm-4 col-xs-12" for="status">事务 <span-->
                    <!--class="required">*</span>-->
                    <!--</label>-->
                    <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                    <!--<select class="form-control selectpicker show-tick" required="required"  title="请选择"-->
                    <!--id="status">-->
                    <!--</select>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="refundDepoType">支付方式 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" required="true"
                                    id="refundDepoType"></select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="refundDepoAmount">退款金额
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" id="refundDepoAmount" class="form-control col-md-7 col-xs-12" readonly>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="receiptNo"/>
                <button type="button" class="btn btn-primary" id="refundZyFee">确定退费</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--退费弹窗结尾-->


<div id="report_table" class="in hide"
     style="width:192mm;height:97mm;margin:0 auto;border: 1px solid #337ab7;font-size: 10px;padding-top: 5mm;overflow-y: auto; overflow-x:hidden;">
    <div id="report_table_1">
        <div style="text-align:center;font-weight: 700;padding-top: -8mm">湖南泰和医院</div>
        <div style="text-align:center;font-weight: 700;margin-top: 5px;">预交金收据</div>
        <!-- <div style="margin-top: 20px;"></div>-->
        <div>
            <span>收据日期：</span><span style="margin-left: 7mm;" id="printDate"></span>
            <span style="margin-left: 54mm;">收据号：</span><span style="margin-left: 4mm;" id="receiptNoPj"></span><span
                style="margin-left: 2mm;" id="cdFlag"></span>
        </div>
        <table class="table table-striped table-bordered" style="width: 170mm;">
            <tbody>
            <tr>
                <td style="width: 15mm;">病人ID</td>
                <td style="width: 20mm;" id="icCardNo"></td>
                <td>住院号</td>
                <td style="width: 20mm;" id="inpatientNo"></td>
                <td colspan="3">姓名</td>
                <td colspan="2" id="name"></td>
            </tr>
            <tr>
                <td>住院科室</td>
                <td colspan="2" id="admissDept"></td>
                <td>支付方式</td>
                <td colspan="2" id="depoTypeName"></td>
                <td colspan="2">操作类型</td>
                <td>交款</td>
            </tr>
            <tr>
                <td>金额</td>
                <td id="depoAmountPj"></td>
                <td>支票号</td>
                <td colspan="6" id="chequeNoPj"></td>
            </tr>
            <tr>
                <td>大写金额</td>
                <td colspan="5" id="depoAmountDx"></td>
                <td colspan="2">收费员</td>
                <td id="cashName"></td>
            </tr>
            <tr>
                <td colspan="9" rowspan="3" style="height: 26mm">
                    1、此系临时收据，请妥善保管。出院时凭此收据按实用医疗费用换取住院发票。<br/>
                    2、此收据遗失，请及时携带病人身份证和挂失人身份证到出院结算处办理挂失手续。如存在第三方肇事者预缴医疗费用，挂失时另需公安机关出示证明。<br/>
                    3、如果您的缴费方式为银行卡支付，请您妥善保管好缴费的刷卡单，并于办理出院退费时带上缴费时所用银行卡。
                </td>
            </tr>
            </tbody>
        </table>
    </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>