<!--列设置-->
<div class="modal fade" id="row-view" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">列显示</h5>
            </div>
            <div class="modal-body">
                <table class="table table-bordered table-sm">
                    <thead>
                    <tr><th>列项</th><th width="90">显示</th></tr>
                    </thead>
                    <tbody id="row-view-list">
                    <tr><td>签约合同</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>施工图复核</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>本期计量合同</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>本期数量变更</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>本期完成计量</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>截止本期合同计量</td><td><input type="checkbox"></td></tr>
                    <tr><td>截止本期数量变更</td><td><input type="checkbox"></td></tr>
                    <tr><td>截止本期完成计量</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>图册号</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>累计完成率(%)</td><td><input type="checkbox" checked=""></td></tr>
                    <tr><td>备注</td><td><input type="checkbox" checked=""></td></tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="row-view-ok">确认</button>
            </div>
        </div>
    </div>
</div>
<!--弹出调用变更令-->
<div class="modal fade" id="use-bg" data-backdrop="static">
    <div class="modal-dialog modal-lgx" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">使用变更令</h5>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div id="bgl" class="col-8">
                        <ul class="nav nav-tabs">
                            <li class="nav-item">
                                <p class="mb-0 mt-2 mr-3" id="b-code-hint">当前变更清单：201-1-1</p>
                            </li>
                            <li class="nav-item">
                                <div class="custom-control custom-checkbox my-2">
                                    <input class="custom-control-input" id="filterEmpty" checked="" type="checkbox">
                                    <label class="custom-control-label" for="filterEmpty">显示可变更数量为0项 </label>
                                </div>
                            </li>
                            <li class="nav-item">
                                <div class="custom-control custom-checkbox my-2">
                                    <input class="custom-control-input" id="matchPos" checked="" type="checkbox">
                                    <label class="custom-control-label" for="matchPos">匹配变更部位 </label>
                                </div>
                            </li>
                        </ul>
                        <div class="modal-height-500" id="change-spread">
                        </div>
                        <div class="m-close-side" id="show-bgl-detail">
                            <a href="javascript: void(0);" title="收起侧栏" class="text-primary"><i class="fa fa-chevron-right"></i></a>
                        </div>
                    </div>
                    <div id="bgl-detail" class="col-4">
                        <ul class="nav nav-tabs">
                            <li class="nav-item">
                                <a class="nav-link active" data-toggle="tab" href="#bgsm" role="tab">变更理由及内容</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab" href="#detail" role="tab">变更信息</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab" href="#bg-fujian" role="tab">附件</a>
                            </li>
                        </ul>
                        <div class="modal-height-500" style="overflow: auto">
                            <div class="tab-content">
                                <div id="bgsm" class="tab-pane active">
                                    <div class="form-group">
                                        <label></label>
                                        <textarea name="content" class="form-control form-control-sm" rows="6" readonly>
                                        </textarea>
                                    </div>
                                </div>
                                <div id="detail" class="tab-pane">
                                    <div class="form-group mt-3">
                                        <label>批复编号</label>
                                        <input class="form-control form-control-sm" name="p_code" value="LZTJ-1标项目部发变更(2015)001号" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>工程名称</label>
                                        <input class="form-control form-control-sm" name="name" value="收费站出口右侧加宽段及K0+532基底换填" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>桩号</label>
                                        <input class="form-control form-control-sm" name="peg" value="K0+532" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>原设计图名称</label>
                                        <input class="form-control form-control-sm" name="org_name" placeholder="" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>原图号</label>
                                        <input class="form-control form-control-sm" name="org_code" placeholder="" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>变更设计图名称</label>
                                        <input class="form-control form-control-sm" name="new_name" placeholder="" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>变更图号</label>
                                        <input class="form-control form-control-sm" name="new_code" placeholder="" type="text" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label>工程变更理由及内容</label>
                                        <textarea class="form-control form-control-sm" name="content" rows="6" readonly>由于K0+532涵洞基底土质天然含水率为25%、收费站出口右侧加宽段K0+120-K0+190段基底土质天然含水率为28.8%。含水率较大形成过湿土，地基松软，无法满足承载力要求。经处项目办、设计、监理、施工单位四方勘察，采用抛石挤淤、砂砾换填以达到地基承载力。
                                    </textarea>
                                    </div>
                                    <div class="form-group">
                                        <label>工程变更合同依据</label>
                                        <textarea class="form-control form-control-sm" name="basis" rows="6" readonly></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label>变更类型</label>
                                        <div class="checkbox">
                                            <% for (const t in changeConst.type) { %>
                                            <% const cType = changeConst.type[t] %>
                                            <label class="checkbox-inline">
                                                <input value="<%- cType.value %>" name="type" type="checkbox" disabled><%- cType.name %>
                                            </label>
                                            <% } %>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label>变更类别 </label>
                                        <select class="form-control form-control-sm" name="class" disabled>
                                            <% for (const c in changeConst.class) { %>
                                            <% const cClass = changeConst.class[c] %>
                                            <option value="<%- cClass.value %>"><%- cClass.name %></option>
                                            <% } %>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>变更性质 </label>
                                        <select class="form-control form-control-sm" name="quality" disabled>
                                            <% for (const q in changeConst.quality) { %>
                                            <% const cQuality = changeConst.quality[q] %>
                                            <option value="<%- cQuality.value %>"><%- cQuality.name %></option>
                                            <% } %>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>变更提出单位</label>
                                        <select class="form-control form-control-sm" name="company" disabled>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>费用承担方</label>
                                        <div class="radio">
                                            <% for (const c in changeConst.charge) { %>
                                            <% const cCharge = changeConst.charge[c] %>
                                            <label class="radio-inline">
                                                <input value="<%- cCharge.value %>" name="charge" type="radio" disabled> <%- cCharge.name %>
                                            </label>
                                            <% } %>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label>备注</label>
                                        <textarea name="memo" class="form-control form-control-sm" rows="3" readonly></textarea>
                                    </div>
                                </div>
                                <div id="bg-fujian" class="tab-pane">
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr><th>名称</th><th>上传者</th></tr>
                                        </thead>
                                        <tbody id="attachment">
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <% if (!stage.readOnly) { %>
                <button type="button" class="btn btn-primary" id="usg-bg-ok">添加</button>
                <% } %>
            </div>
        </div>
    </div>
</div>
<!--添加草图-->
<div class="modal fade" id="edit-img" data-backdrop="static">
    <div class="modal-dialog modal-lgx" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">添加草图</h5>
            </div>
            <div class="modal-body">
                <p><a href="" class="btn btn-outline-primary btn-sm">上传图片</a></p>
                <div class="img-view">
                    <div class="img-item">
                        <div class="img-bar">
                            <a href="" class="text-danger" title="删除"><i class="fa fa-remove"></i></a>
                        </div>
                        <!--<img src="img/sketch/1.png" id="draggable">-->
                    </div>
                    <div class="img-item" style="left:300px;">
                        <div class="img-bar">
                            <a href="" class="text-danger" title="删除"><i class="fa fa-remove"></i></a>
                        </div>
                        <!--<img src="img/sketch/2.png" id="draggable">-->
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" >确认</button>
            </div>
        </div>
    </div>
</div>
<!--上传附件-->
<div class="modal fade" id="upload" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">上传附件</h5>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="formGroupExampleInput">大小限制：10MB，支持<span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="doc,docx,xls,xlsx,ppt,pptx,pdf">office等文档格式</span>、<span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="jpg,png,bmp">图片格式</span>、<span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="rar,zip">压缩包格式</span></label>
                    <input type="file" class="form-control" id="upload-file" multiple>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="upload-file-btn">确认</button>
            </div>
        </div>
    </div>
</div>

<% include ./audit_modal.ejs %>
