<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/validator.js"></script>
<script src="/thmz/js/common/map-util.js"></script>
<script src="/thmz/js/mz/charge_detail.js"></script>
<title>收费项目字典维护</title>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <!--<div class="panel-heading">查询条件</div>-->
            <div class="panel-body">
                <form id="formSearch" class="form-horizontal" autocomplete="off">
                    <div class="form-group" style="margin-top:15px">
                        <label class="control-label col-sm-1" for="name" style="width: 15%;">名称/编码/耗材院内码</label>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="width: 8%;float: left;">
                            <input type="text" class="form-control" id="name" onchange="initZdChargeItemList()" placeholder="名称/编码/耗材院内码">
                        </div>
                        <!--<label class="control-label col-sm-1" for="name" style="width: 6%;">科室名称</label>-->
                        <!--<div class="col-sm-3" style="width: 8%;float: left;">-->
                            <!--<input type="text" class="form-control" id="name">-->
                        <!--</div>-->
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="classCode" style="width: 5%;">项目类型
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="width: 8%;float: left;">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="classCode" onchange="initZdChargeItemList()">
                            </select>
                        </div>
                        <label class="control-label col-sm-1" for="auditCode" style="width: 5%;">核算码</label>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="width: 8%;float: left;">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="auditCode" onchange="initZdChargeItemList()">
                            </select>
                        </div>
                        <label class="control-labe2 col-sm-2" for="billItemMz" style="width: 6%;">门诊发票码</label>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="width: 8%;float: left;">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="billItemMz" onchange="initZdChargeItemList()">
                            </select>
                        </div>
                        <label class="control-labe2 col-sm-2" for="billItemZy" style="width: 6%;">住院发票码</label>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="width: 8%;float: left;">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="billItemZy" onchange="initZdChargeItemList()">
                            </select>
                        </div>
                        <label class="control-label col-sm-1" for="delFlag" style="width: 4%;">停用</label>
                        <div class="col-lg-2" style="width: 8%;float: left;">
                            <select class="form-control selectpicker show-tick" id="delFlag" title="请选择" onchange="initZdChargeItemList()">
                            </select>
                        </div>
                        <!--<label class="control-label col-sm-1" for="clCode" style="width: 6%;">耗材院内码</label>-->
                        <!--<div class="col-sm-3" style="width: 8%;float: left;">-->
                            <!--<input type="text" class="form-control" id="clCode" onchange="initZdChargeItemList()">-->
                        <!--</div>-->
                        <button type="button" style="margin-left:5px;width: 4%;" id="btn_add" class="btn btn-primary"
                                title="新增收费项目"><i class="fa fa-plus"></i>
                        </button>
                        <button type="button" style="margin-left:5px;width: 4%;" id="btn_clean" class="btn btn-primary"
                                title="重置"><i class="fa fa-rotate-left"></i>
                        </button>
                    </div>


                    <!--<div class="form-group" style="margin-top:15px">-->
                        <!--<label class="control-label col-sm-1" for="name">名称</label>-->
                        <!--<div class="col-md-2 col-sm-2 col-xs-12" >-->
                            <!--<input type="text" class="form-control" id="name">-->
                        <!--</div>-->
                        <!--&lt;!&ndash;<label class="control-label col-sm-1" for="name" style="width: 6%;">科室名称</label>&ndash;&gt;-->
                        <!--&lt;!&ndash;<div class="col-sm-3" style="width: 8%;float: left;">&ndash;&gt;-->
                        <!--&lt;!&ndash;<input type="text" class="form-control" id="name">&ndash;&gt;-->
                        <!--&lt;!&ndash;</div>&ndash;&gt;-->
                        <!--<label class="control-label col-md-1 col-sm-1 col-xs-12" for="classCode" >项目类型-->
                        <!--</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="classCode" >-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<label class="control-label col-sm-1" for="auditCode" >核算码</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="auditCode" >-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<label class="control-label col-sm-1" for="delFlag" >停用</label>-->
                        <!--<div class="col-lg-2" >-->
                            <!--<select class="form-control selectpicker show-tick" id="delFlag" title="请选择">-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group" >-->
                        <!--<label class="control-labe1 col-sm-2" for="billItemMz" >门诊发票码</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="billItemMz" >-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<label class="control-labe1 col-sm-2" for="billItemZy" >住院发票码</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="billItemZy" >-->
                            <!--</select>-->
                        <!--</div>-->

                        <!--<label class="control-label col-sm-2" for="clCode" >耗材院内码</label>-->
                        <!--<div class="col-sm-2" >-->
                            <!--<input type="text" class="form-control" id="clCode">-->
                        <!--</div>-->
                        <!--<div class="col-sm-1" >-->
                            <!--<button type="button" id="btn_clean" class="btn btn-primary"-->
                                    <!--title="重置"><i class="fa fa-rotate-left"></i>-->
                            <!--</button>-->
                        <!--</div>-->
                    <!--</div>-->

                </form>
            </div>
        </div>

        <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">

                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" onclick="clearInput()"><span aria-hidden="true">×</span>
                        </button>
                        <h4 class="modal-title" id="myModalLabel">新增收费项目</h4>
                    </div>
                    <div class="modal-body">
                        <form class="form-horizontal form-label-left" novalidate id="formPlus">
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="classCodeParams">项目类型 <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"
                                            id="classCodeParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="ybCodeParmas">医保扩展码 <span
                                        class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="ybCodeParmas" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="2,16" required="required">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="xnhCodeParams">新农合项目编码
                                    <span
                                        class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="xnhCodeParams" required="required"
                                           data-validate-length-range="1,8" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="xnhNameParams">新农合项目名称 <span
                                        class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="xnhNameParams" required="required"
                                           data-validate-length-range="1,8" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="namePamras">项目名称
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="namePamras" data-validate-length-range="1,20"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="chargeUnitParams">单位
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="chargeUnitParams" data-validate-length-range="1,25"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="chargeAmountParams">收费金额
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="chargeAmountParams"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="percentag1Params">第一折扣率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="percentag1Params"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="percentag2Params">第二折扣率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="percentag2Params"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="percentag3Params">第三折扣率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="percentag3Params"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="percentag4Params">第四折扣率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="percentag4Params"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="percentag5Params">第五折扣率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="percentag5Params"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="coParams">是否加价 <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"
                                            id="coParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="xlCodeParams">加价率
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="number" id="xlCodeParams"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="auditCodeParams">核算码 <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"
                                            id="auditCodeParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="billItemMzParams">门诊发票码 <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"
                                            id="billItemMzParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="billItemZyParams">住院发票码 <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"
                                            id="billItemZyParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="execUnitParams">执行科室
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control selectpicker show-tick" data-live-search="true"
                                            id="execUnitParams" title="请选择"></select>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="bzCodeParams">标准编码
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="bzCodeParams"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="discriptionParams">项目内涵
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="discriptionParams"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="clCodeParams">耗材院内编码
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" id="clCodeParams"
                                           class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <input type="hidden" id="code"/>
                        <button type="button" class="btn btn-primary" id="save">保存</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearInput()">取消</button>
                    </div>
                </div>
            </div>
        </div>

        <!--&lt;!&ndash; 信息删除确认 &ndash;&gt;-->
        <!--<div class="modal fade" id="deleteConfirmModel">-->
            <!--<div class="modal-dialog">-->
                <!--<div class="modal-content message_align">-->
                    <!--<div class="modal-header">-->
                        <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span-->
                                <!--aria-hidden="true">×</span></button>-->
                        <!--<h4 class="modal-title">提示信息</h4>-->
                    <!--</div>-->
                    <!--<div class="modal-body">-->
                        <!--<p id="deleteMessage">您确认要删除吗？</p>-->
                    <!--</div>-->
                    <!--<div class="modal-footer">-->
                        <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
                        <!--<a onclick="deleteSubmit()" class="btn btn-success" data-dismiss="modal">确定</a>-->
                        <!--<input type="hidden" id="deleteCode"/>-->
                        <!--<input type="hidden" id="dataDelFlag"/>-->
                    <!--</div>-->
                <!--</div>&lt;!&ndash; /.modal-content &ndash;&gt;-->
            <!--</div>&lt;!&ndash; /.modal-dialog &ndash;&gt;-->
        <!--</div>&lt;!&ndash; /.modal &ndash;&gt;-->
    </div>
</div>

<table id="tb_table"></table>
<input id="orderByCase" type="hidden"/>