<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/custom.min.css">
<link rel="stylesheet" href="/thmz/css/toll_administration.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<script src="/thmz/js/common/date-util.js"></script>
<script src="/thmz/js/mz/daily_repeat_print.js"></script>
<script src="/thmz/js/dependent/LodopFuncs.js"></script>
<title>重打日结报表页面</title>
<!-- 打印的样式-->
<style media="print">
    @page {
        size: auto;
        margin: 0mm;
    }
</style>
<style>
    .receipt {
        padding-left: 40px;
    }
</style>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="panel-body">
                <form id="formSearch" class="form-horizontal" autocomplete="off">
                    <div class="btn-group col-md-4 col-sm-4 col-xs-12" id="pay_mark_group">
                        <button class="btn btn-sm btn-primary" type="button" onclick="reportButtonChange(this)">&nbsp;&nbsp;日结报表&nbsp;&nbsp;
                        </button>
                        <button class="btn btn-sm btn-default" type="button" onclick="reportButtonChange(this)">&nbsp;&nbsp;收费清单&nbsp;&nbsp;
                        </button>
                        <button class="btn btn-sm btn-default" type="button" onclick="reportButtonChange(this)">&nbsp;&nbsp;挂号清单&nbsp;&nbsp;
                        </button>
                    </div>
                    <div class="form-group col-md-8 col-sm-8 col-xs-12">
                        <!--<div class="col-md-6 col-sm-6 col-xs-12"></div>-->
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="reportrange"> 日结时间
                        </label>
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <div id="reportrange" class="pull-right"
                                 style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc">
                                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                                <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
                            </div>
                        </div>
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="cashParam">收费员
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="cashParam" onchange="getDcountDateList()">
                            </select>
                        </div>
                    </div>
                    <div class="btn-group col-md-4 col-sm-4 col-xs-12"></div>
                    <div class="form-group col-md-8 col-sm-8 col-xs-12">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="rjList">日结列表
                        </label>
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="rjList" onchange="initFeeTable()">
                            </select>
                        </div>
                        <div class="col-md-1 col-sm-1 col-xs-12" style="text-align:left;margin-left: 50px;">
                            <button type="button"  id="btn_clean" class="btn btn-primary"
                                    title="重置"><i class="fa fa-rotate-left"></i>
                            </button>
                        </div>
                        <div class="col-md-1 col-sm-1 col-xs-12" style="text-align:left;">
                            <button type="button" id="btn_daily" class="btn btn-primary"
                                    title="打印"><i class="fa fa-print"></i>
                            </button>
                        </div>
                        <div class="col-md-1 col-sm-1 col-xs-12" style="text-align:left;">
                            <button type="button"  id="btn_excel" class="btn btn-primary"
                                    title="导出EXCEL"><i class="fa fa-file-excel-o"></i>
                            </button>
                        </div>
                    </div>
                </form>
            </div>
            <div id="report_table" class="in"
                 style="width:920px;height:700px;margin:0 auto;border: 1px solid #337ab7;font-size: 16px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
                <div id="report_table_1">
                    <h2 style="text-align:center;font-weight: 700;">门诊收费收入日报表（重打）</h2>
                    <div style="margin-top: 20px;">
                        <span>收费员：</span><span id="username"></span><span
                            style="margin-left: 120px;">工号：</span><span id="userIdCode"></span><span
                            style="margin-left: 120px;">结账时间：</span><span id="dcountDate"></span></div>
                    <table class="table table-striped table-bordered">
                        <tbody>
                        <tr>
                            <td>挂号费</td>
                            <td id="charge1">0.00</td>
                            <td>其他</td>
                            <td id="charge9">0.00</td>
                            <td>消毒费</td>
                            <td id="charge16">0.00</td>
                        </tr>
                        <tr>
                            <td>床位费</td>
                            <td id="charge2">0.00</td>
                            <td>西药费</td>
                            <td id="charge10">0.00</td>
                            <td>材料费</td>
                            <td id="charge18">0.00</td>
                        </tr>
                        <tr>
                            <td>诊查费</td>
                            <td id="charge3">0.00</td>
                            <td>中成药费</td>
                            <td id="charge11">0.00</td>
                            <td>麻醉费</td>
                            <td id="charge19">0.00</td>
                        </tr>
                        <tr>
                            <td>检查费</td>
                            <td id="charge4">0.00</td>
                            <td>中草药费</td>
                            <td id="charge12">0.00</td>
                            <td>四舍五入</td>
                            <td id="charge20">0.00</td>
                        </tr>
                        <tr>
                            <td>治疗费</td>
                            <td id="charge5">0.00</td>
                            <td>特殊材料费</td>
                            <td id="charge13">0.00</td>
                            <td>护理费</td>
                            <td id="charge6">0.00</td>
                        </tr>
                        <tr>
                            <td>输血费</td>
                            <td id="charge14">0.00</td>
                            <td>手术费</td>
                            <td id="charge7">0.00</td>
                            <td>鉴定费</td>
                            <td id="charge15">0.00</td>
                        </tr>
                        <tr>
                            <td>化验费</td>
                            <td id="charge8">0.00</td>
                            <td>手术器械使用费</td>
                            <td id="charge17">0.00</td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>合计：</td>
                            <td id="totalCharge">0.00</td>
                            <td id="totalChargeStr" colspan="5">零元整</td>
                        </tr>
                        </tbody>
                    </table>

                    <div>附表1：收费收入报表</div>
                    <table id="datatable" class="table table-striped table-bordered" style="margin-top: 10px;">
                        <thead>
                        <tr>
                            <th rowspan="2" class="text-center" style="vertical-align: middle !important;">收款方式</th>
                            <th colspan="2" class="text-center">收款</th>
                            <th colspan="2" class="text-center">退款</th>
                            <th colspan="2" class="text-center">实收</th>
                        </tr>
                        <tr>
                            <th class="text-center">笔数</th>
                            <th class="text-center">金额</th>
                            <th class="text-center">笔数</th>
                            <th class="text-center">金额</th>
                            <th class="text-center">笔数</th>
                            <th class="text-center">金额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="text-center">现金</td>
                            <td id="xjbs">0</td>
                            <td id="xjsk">0.00</td>
                            <td id="xjtfbs">0</td>
                            <td id="xjtf">0.00</td>
                            <td id="xjssbs">0</td>
                            <td id="xjss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">银行卡</td>
                            <td id="yhsbs">0</td>
                            <td id="yhksk">0.00</td>
                            <td id="yhktfbs">0</td>
                            <td id="yhktf">0.00</td>
                            <td id="yhkssbs">0</td>
                            <td id="yhkss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">医保卡</td>
                            <td id="sybbs">0</td>
                            <td id="sybksk">0.00</td>
                            <td id="sybtfbs">0</td>
                            <td id="sybtf">0.00</td>
                            <td id="sybssbs">0</td>
                            <td id="sybkss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">支付宝<span class="zz_title" style="display: none">自助</span></td>
                            <td id="zfbbs">0</td>
                            <td id="zfbsk">0.00</td>
                            <td id="zfbtfbs">0</td>
                            <td id="zfbtf">0.00</td>
                            <td id="zfbssbs">0</td>
                            <td id="zfbss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">微信<span class="zz_title" style="display: none">自助</span></td>
                            <td id="wxbs">0</td>
                            <td id="wxsk">0.00</td>
                            <td id="wxtfbs">0</td>
                            <td id="wxtf">0.00</td>
                            <td id="wxssbs">0</td>
                            <td id="wxss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">医保卡记账</td>
                            <td id="ybkjzbs">0</td>
                            <td id="ybkjzsk">0.00</td>
                            <td id="ybkjztfbs">0</td>
                            <td id="ybkjztf">0.00</td>
                            <td id="ybkjzssbs">0</td>
                            <td id="ybkjzss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">记账绿色通道</td>
                            <td id="zfbs">0</td>
                            <td id="zfsk">0.00</td>
                            <td id="zftfbs">0</td>
                            <td id="zftf">0.00</td>
                            <td id="zfssbs">0</td>
                            <td id="zfss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">小计</td>
                            <td id="zjbs">0</td>
                            <td id="zjsk">0.00</td>
                            <td id="ztfbs">0</td>
                            <td id="zjtk">0.00</td>
                            <td id="zjssbs">0</td>
                            <td id="zjss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">实收合计</td>
                            <td id="sjhj">0.00</td>
                            <td colspan="5" id="sjhjdx">零元整</td>
                        </tr>
                        <tr>
                            <td class="text-center">绿色通道记账小计</td>
                            <td id="zfsshj">0.00</td>
                            <td colspan="5" id="zfdx"></td>
                        </tr>
                        <tr>
                            <td class="text-center">医保卡记账小计</td>
                            <td id="ybkjzhj">0.00</td>
                            <td colspan="5" id="ybkjzhjdx">零元整</td>
                        </tr>
                        <tr>
                            <td class="text-center">总计</td>
                            <td id="zj">0.00</td>
                            <td colspan="5" id="zjdx">零元整</td>
                        </tr>
                        </tbody>
                    </table>
                    <div>附表2：挂号收入报表</div>
                    <table class="table table-striped table-bordered" style="margin-top: 10px;">
                        <thead>
                        <tr>
                            <th rowspan="2" class="text-center" style="vertical-align: middle !important;">收款方式</th>
                            <th colspan="2" class="text-center">收款</th>
                            <th colspan="2" class="text-center">退号</th>
                            <th colspan="2" class="text-center">实收</th>
                        </tr>
                        <tr>
                            <th class="text-center">号数</th>
                            <th class="text-center">金额</th>
                            <th class="text-center">号数</th>
                            <th class="text-center">金额</th>
                            <th class="text-center">号数</th>
                            <th class="text-center">金额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="text-center">现金</td>
                            <td id="ghxjbs">0</td>
                            <td id="ghxjsk">0.00</td>
                            <td id="ghxjtfbs">0</td>
                            <td id="ghxjtf">0.00</td>
                            <td id="ghxjssbs">0</td>
                            <td id="ghxjss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">银行卡</td>
                            <td id="ghyhsbs">0</td>
                            <td id="ghyhksk">0.00</td>
                            <td id="ghyhktfbs">0</td>
                            <td id="ghyhktf">0.00</td>
                            <td id="ghyhkssbs">0</td>
                            <td id="ghyhkss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">医保卡</td>
                            <td id="ghsybbs">0</td>
                            <td id="ghsybksk">0.00</td>
                            <td id="ghsybtfbs">0</td>
                            <td id="ghsybtf">0.00</td>
                            <td id="ghsybssbs">0</td>
                            <td id="ghsybkss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">支付宝<span class="zz_title" style="display: none">自助</span></td>
                            <td id="ghzfbbs">0</td>
                            <td id="ghzfbsk">0.00</td>
                            <td id="ghzfbtfbs">0</td>
                            <td id="ghzfbtf">0.00</td>
                            <td id="ghzfbssbs">0</td>
                            <td id="ghzfbss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">微信<span class="zz_title" style="display: none">自助</span></td>
                            <td id="ghwxbs">0</td>
                            <td id="ghwxsk">0.00</td>
                            <td id="ghwxtfbs">0</td>
                            <td id="ghwxtf">0.00</td>
                            <td id="ghwxssbs">0</td>
                            <td id="ghwxss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">全免</td>
                            <td id="ghqmbs">0</td>
                            <td id="ghqmsk">0.00</td>
                            <td id="ghqmtfbs">0</td>
                            <td id="ghqmtf">0.00</td>
                            <td id="ghqmssbs">0</td>
                            <td id="ghqmss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">绿色通道记账</td>
                            <td id="ghzfbs">0</td>
                            <td id="ghzfsk">0.00</td>
                            <td id="ghzftfbs">0</td>
                            <td id="ghzftf">0.00</td>
                            <td id="ghzfssbs">0</td>
                            <td id="ghzfss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">小计</td>
                            <td id="ghzjbs">0</td>
                            <td id="ghzjsk">0.00</td>
                            <td id="ghztfbs">0</td>
                            <td id="ghzjtk">0.00</td>
                            <td id="ghzjssbs">0</td>
                            <td id="ghzjss">0.00</td>
                        </tr>
                        <tr>
                            <td class="text-center">实收合计（不含记账）</td>
                            <td id="ghsjhj">0.00</td>
                            <td colspan="5" id="ghsjhjdx">零元整</td>
                        </tr>
                        <tr>
                            <td class="text-center">绿色通道记账小计</td>
                            <td id="ghzfsshj">0.00</td>
                            <td colspan="5" id="ghzfdx">零元整</td>
                        </tr>
                        <tr>
                            <td class="text-center">总计</td>
                            <td id="ghzj">0.00</td>
                            <td colspan="5" id="ghzjdx">零元整</td>
                        </tr>
                        <tr>
                            <td class="text-center">收入构成</td>
                            <td>诊察收入：</td>
                            <td id="zcsr">0.00</td>
                            <td>检查收入：</td>
                            <td id="jcsr">0.00</td>
                            <td>挂号费收入：</td>
                            <td id="ghsr">0.00</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div id="zbr_div">
                    <div class="form-group col-md-12 col-sm-12 col-xs-12"
                         style="margin-bottom: 10px;margin-top: 20px;" id="receiptBills">

                        <table>
                            <thead>
                            <tr>
                                <td colspan="4">所用发票统计：</td>
                            </tr>
                            </thead>
                            <tbody id="receiptBills_table">
                            </tbody>
                        </table>
                    </div>
                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 10px;">
                        <table style="width: 96%;padding-left: 20px;display: none;border-top:1px solid"
                               id="zzbdfpmx_table">
                            <thead>
                            <tr>
                                <td colspan="9">自助缴费补打发票明细：</td>
                            </tr>
                            <tr>
                            <tr>
                                <td width="180px">发票号</td>
                                <td width="120px">姓名</td>
                                <td width="100px">金额</td>
                                <td width="180px">发票号</td>
                                <td width="120px">姓名</td>
                                <td width="100px">金额</td>
                            </tr>
                            </tr>
                            </thead>
                            <tbody id="zzbdfpmx">

                            </tbody>
                        </table>
                    </div>
                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 100px;">
                        <table style="width: 96%;padding-left: 20px;display: none;border-top:1px solid"
                               id="sfzffpmx_table">
                            <thead>
                            <tr>
                                <td colspan="9">作废/退费发票明细：</td>
                            </tr>
                            <tr>
                            <tr>
                                <td width="180px">发票号</td>
                                <td width="120px">姓名</td>
                                <td width="100px">金额</td>
                                <td width="180px">发票号</td>
                                <td width="120px">姓名</td>
                                <td width="100px">金额</td>
                            </tr>
                            </tr>
                            </thead>
                            <tbody id="sfzffpmx">

                            </tbody>
                        </table>
                    </div>

                    <div><span>结账人签字：</span><span style="text-decoration: underline" id="username_zbr"></span><span
                            style="margin-left: 120px;">收款人签字：</span><span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
                            style="margin-left: 120px;">审核人签字：</span><span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </div>
                </div>
            </div>
            <table id="tb_table"></table>
            <div id="previewImage">
            </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>

