<!-- 弹窗新增编办 -->
<div class="modal fade" id="addcompilation" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="add-compilation-title">添加新费用定额</h4>
            </div>
            <div class="modal-body">
                <div class="form-group" id="name-area">
                    <label>编办名称</label>
                    <input class="form-control" placeholder="" name="compilation_name">
                </div>
                <div class="form-group" id="bill-area">
                    <label>标准清单</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="standard_bill">
                                <option value="">请选择标准清单</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="glj-area">
                    <label>人材机库</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="glj_lib">
                                <option value="">请选择人材机库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="billsGuidance-area">
                    <label>清单指引库</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="billsGuidance_lib">
                                <option value="">请选择清单指引库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="feature-area">
                    <label>工程特征</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="feature_lib">
                                <option value="">请选择工程特征库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="info-area">
                    <label>基本信息</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="info_lib">
                                <option value="">请选择基本信息库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="engineer-info-area">
                    <label>工程信息</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="engineer_info_lib">
                                <option value="">请选择工程信息库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="engineer-feature-area">
                    <label>工程特征指标</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="engineer_feature_lib">
                                <option value="">请选择工程特征指标库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="material-area">
                    <label>主要工料指标</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="material_lib">
                                <option value="">请选择主要工料指标库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="main-quantity-area">
                    <label>主要工程量指标</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="main_quantity_lib">
                                <option value="">请选择主要工程量指标库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="economic-area">
                    <label>主要经济指标</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="economic_lib">
                                <option value="">请选择主要经济指标库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="over-height-area">
                    <label>超高降效</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="over_height_lib">
                                <option value="">请选择主要超高降效库</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="artificial-area">
                    <label>人工系数</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="artificial_lib">
                                <option value="">请选择人工系数</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="add-compilation">确定添加</button>
            </div>
        </div>
    </div>
</div>

<!-- 弹窗新增计价 -->
<div class="modal fade" id="valuation-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加新计价规则</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>名称</label>
                    <input class="form-control" name="valuation_name" >
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="add-valuation">确定添加</button>
            </div>
        </div>
    </div>
</div>

<!-- 弹窗造价书列设置 -->
<div class="modal fade" id="set-column" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">造价书列设置</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-3">
                        <div class="input-group">
                            <span class="input-group-addon" id="basic-addon1">空行</span>
                            <input type="number" class="form-control input-sm" value="3" id="empty-rows">
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="input-group">
                            <span class="input-group-addon" id="basic-addon1">数据绑定列数</span>
                            <input type="number" class="form-control input-sm" value="4" id="col-count">
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="input-group">
                            <span class="input-group-addon" id="basic-addon1">表头行数</span>
                            <input type="number" class="form-control input-sm" value="1" id="header-row-count">
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="is-tree" value> 是否包含树结构
                            </label>
                        </div>
                    </div>
                    <div class="col-md-3" id="tree-col-div">
                        <div class="input-group">
                            <span class="input-group-addon" id="basic-addon1">树结构绘制列</span>
                            <input type="number" class="form-control input-sm" value="1" id="tree-col">
                        </div>
                    </div>
                </div>
                <div class="">
                    <div class="btn-toolbar" role="toolbar">
                        <div class="btn-group" role="group" >
                            <a href="#" class="btn btn-default btn-sm" id="merge">合并</a>
                            <a href="#" class="btn btn-default btn-sm" id="unmerge">拆分</a>
                        </div>
                        <div class="btn-group" role="group">
                            <a href="#" class="btn btn-default btn-sm" id="h-left">左对齐</a>
                            <a href="#" class="btn btn-default btn-sm" id="h-center">居中</a>
                            <a href="#" class="btn btn-default btn-sm" id="h-right">右对齐</a>
                        </div>
                        <div class="btn-group" role="group">
                            <a href="#" class="btn btn-default btn-sm" id="v-top">上对齐</a>
                            <a href="#" class="btn btn-default btn-sm" id="v-center">垂直居中</a>
                            <a href="#" class="btn btn-default btn-sm" id="v-bottom">下对齐</a>
                        </div>
                        <div class="btn-group" role="group">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">字体</span>
                                <input type="text" class="form-control input-sm" id="font">
                                <div class="input-group-btn">
                                    <a href="#" class="btn btn-default btn-sm" id="set-font">设置</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="colEditSpread" style="height: 300px">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="save-col-setting">确定</button>
            </div>
        </div>
    </div>
</div>
<!--弹出删除-->
<div class="modal fade" id="del" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">删除确认</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h5 class="text-danger" id="tenderHint">删除计价规则 ？</h5>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                <a href="javascript:void(0);" class="btn btn-danger" id="delete-confirm">删除</a>
            </div>
        </div>
    </div>
</div>

<!-- 弹窗工程专业其它设置 -->
<div class="modal fade" id="other_setting" tabindex="-1" role="dialog">
    <div class="modal-dialog " role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="glj_tit">显示设置</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="adjustPrice_cb"> 显示调整价列
                            </label>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="isInstall_cb"> 显示安装增加费
                            </label>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="isAreaIncrease_cb"> 显示面积增加费
                            </label>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="isItemIncrease_cb"> 显示子目增加费
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" id = "other_setting_comf">确定</button>
            </div>
        </div>
    </div>
</div>


<!-- 弹窗计税组合 -->
<div class="modal fade" id="addTaxGroup" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >添加计税组合</h4>
                <input type="hidden" id="groupEditType" value="">
                <input type="hidden" id="groupIndex" value="">
            </div>
            <div class="modal-body">
                <div class="form-group" id="tax-area">
                    <label>计税方式</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="taxType" id ="taxType" >
                                <option value="">请选择计税方式</option>
                                <option value=1>一般计税</option>
                                <option value=2>简易计税</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="program-area">
                    <label>计算程序</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="program_lib" id="program_lib">
                                <option value="">请选择计算程序</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="template-area">
                    <label>清单模板</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="template_lib" id="template_lib">
                                <option value="">请选择清单模板</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="col-area">
                    <label>列设置</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="col_lib" id = "col_lib">
                                <option value="">请选择列设置</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="feeRate-area">
                    <label>费率标准</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control" name="fee_lib" id = "fee_lib">
                                <option value="">请选择费率库</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="add-group">确定添加</button>
            </div>
        </div>
    </div>
</div>

<!-- 弹窗新增费率 -->
<div class="modal fade" id="addRation" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >添加定额库</h4>
            </div>
            <div class="modal-body">
                <div class="form-group" id="ration-area">
                    <label>定额库</label>
                    <div class="row">
                        <div class="col-xs-12">
                            <select class="form-control multiple" name="ration_lib" multiple="multiple">
                                <option value="">请选择定额库</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="add-ration">确定添加</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade in" id="copy-lib" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">复制确认</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <div>
                        <label>确认要复制定额库配置到当前费用定额下所有工程专业中？</label>
                    </div>
                </div>
            </div>
            <div class="modal-footer" style="justify-content: center">
                <button type="button" class="btn btn-primary" data-dismiss="modal" id="copy-lib-confirm">是</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal">否</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/web/users/js/col_setting.js"></script>
