<!--弹出添加中间计量-->
<div class="modal fade" id="add-mj" 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>中间计量编号<b class="text-danger">*</b></label>
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="请输入中间计量编号" value="WJQR1-201711" id="mj-code">
                        <div class="input-group-append">
                            <button class="btn btn-outline-secondary" type="button" title="自动编号" id="autoCode"><i class="fa fa-repeat"></i></button>
                        </div>
                        <div class="invalid-feedback" style="display: none" id="mj-Hint">您输入的编号已存在</div>
                    </div>
                </div>
                <div class="form-group">
                    <label>计量月份</label>
                    <input data-view="months" data-min-view="months" class="datepicker-here form-control" placeholder="按时间筛选" type="text" data-date-format="yyyy MM " data-language="zh" id="mj-date">
                </div>
                <div class="form-group">
                    <label>计量期</label>
                    <select class="form-control">
                        <option disabled>选填</option>
                    </select>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal" id="addCancel">关闭</button>
                <button type="button" class="btn btn-primary" id="addOk">添加</button>
            </div>
        </div>
    </div>
</div>
<!--弹出添加计量清单-->
<div class="modal fade" id="add-pos" data-backdrop="static">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">选择计量范围</h5>
            </div>
            <div class="modal-body">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="输入项目节编号/名称 检索">
                    <div class="input-group-append">
                        <button class="btn btn-primary" type="button" id="search-pos">检索</button>
                    </div>
                </div>
                <!--检索结果-->
                <table class="table table-sm table-bordered" style="overflow: auto">
                    <legend class="h5 ">检索结果</legend>
                    <tr><th width="200">项目节编号</th><th>项目节名称</th><th width="90">添加</th></tr>
                    <tbody id="searchedPosList">
                    </tbody>
                </table>
                <table class="table table-sm table-bordered" id="measure-pos">
                    <legend class="h5 ">已添加项目节</legend>
                    <tr><th width="200">项目节编号</th><th>项目节名称</th><th width="90">移除</th></tr>
                    <tbody id="measurePosList">
                    </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="chooseBills">选择计量清单</button>
            </div>
        </div>
    </div>
</div>
<!--弹出添加计量清单-->
<div class="modal fade" id="add-qd" data-backdrop="static">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">选择计量清单</h5>
            </div>
            <div class="modal-body">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="输入清单编号/名称 检索">
                    <div class="input-group-append">
                        <button class="btn btn-primary" type="button" id="search-bills">检索</button>
                    </div>
                </div>
                <!--检索结果-->
                <table class="table table-sm table-bordered">
                    <legend>检索结果</legend>
                    <tr><th>清单编号</th><th>名称</th><th>单位</th><th>单价</th><th width="90">选择</th></tr>
                    <tbody id="searchedBillsList">
                    <!--<tr><td>203-1-1</td><td><a href="#">挖土方</a></td><td>m3</td><td>7.54</td><td><input type="checkbox" checked> 已选择</td></tr>-->
                    <!--<tr><td colspan="5"><span>└</span> 1-2-5 排水沟工程</td></tr>-->
                    <!--<tr><td>203-1-1</td><td>挖土方</td><td>m3</td><td>7.54</td><td><input type="checkbox"></td></tr>-->
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="choosePos">选择计量范围</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--审批流程/结果-->
<div class="modal fade" id="sp-list" 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="card mt-3">
                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">
                            <span class="text-success pull-right">审批通过</span>
                            <h5 class="card-title">1 张三 <small class="text-muted">监理</small></h5>
                            <p class="card-text">审批意见。2018-01-01</p>
                        </li>
                        <li class="list-group-item">
                            <span class="text-warning pull-right">审批中</span>
                            <h5 class="card-title">2 王五 <small class="text-muted">监理</small></h5>
                            <p class="card-text"></p>
                        </li>
                        <li class="list-group-item">
                            <h5 class="card-title">3 李四 <small class="text-muted">监理</small></h5>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--上报审批-->
<div class="modal fade" id="sub-sp" 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>搜索审批人</label>
                    <div class="input-group">
                        <input class="form-control" placeholder="请输入姓名进行检索" type="text" id="searchName">
                        <div class="input-group-append">
                            <button class="btn btn-outline-secondary" type="button" id="searchAccount"><i class="fa fa-search"></i></button>
                        </div>
                    </div>
                </div>
                <div class="card border-primary" id="searchResult" style="display: none">
                    <div class="card-body">
                        <h5 class="card-title">
                            <a href="javascript: void(0)" class="btn btn-primary btn-sm pull-right" id="addAuditor">添加</a>
                            <span>张三</span>
                        </h5>
                        <h6 class="card-subtitle mb-2 text-muted">监理</h6>
                        <p class="card-text">XXXXX公司</p>
                    </div>
                </div>
                <div class="card mt-3">
                    <div class="card-header">
                        审批流程
                    </div>
                    <ul class="list-group list-group-flush" id="auditors">
                    </ul>
                </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="auditStart">确认上报</button>
            </div>
        </div>
    </div>
</div>
<!--重新上报-->
<div class="modal fade" id="sub-sp2" 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="alert alert-primary" role="alert" id="re-hint">
                </div>
                <div class="card mt-3">
                    <div class="card-header">
                        审批流程
                    </div>
                    <ul class="list-group list-group-flush" id="re-auditors">
                    </ul>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="auditRestart">确认上报</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--审批流程/结果-->
<div class="modal fade" id="sp-list" 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="card mt-3">
                    <ul id="auditList" class="list-group list-group-flush">
                        <li class="list-group-item">
                            <span class="text-success pull-right">审批通过</span>
                            <h5 class="card-title">1 张三 <small class="text-muted">监理</small></h5>
                            <p class="card-text">审批意见。2018-01-01</p>
                        </li>
                        <li class="list-group-item">
                            <span class="text-warning pull-right">审批中</span>
                            <h5 class="card-title">2 王五 <small class="text-muted">监理</small></h5>
                            <p class="card-text"></p>
                        </li>
                        <li class="list-group-item">
                            <h5 class="card-title">3 李四 <small class="text-muted">监理</small></h5>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</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>
