<div class="panel-content">
    <div class="panel-title fluid">
        <div class="title-main d-flex justify-content-between">
            <div>
                <a href="/measure/wlist" class="btn btn-link btn-sm">返回</a>
                <div class="btn-group">
                    <a href="javascript: void(0)" class="btn btn-success btn-sm" id="addMeasureBills">添加计量清单</a>
                </div>
            </div>
            <div id="operate">
                <!--<a href="#sub-sp" data-toggle="modal" data-target="#sub-sp" class="btn btn-primary btn-sm pull-right">上报审批</a>-->
                <!--<a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-success btn-sm pull-right">审批完成</a>-->
                <!--<a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-secondary btn-sm pull-right">审批中</a>-->
                <!--<a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-warning btn-sm pull-right text-muted">审批退回</a>-->
                <!--<a href="#del" data-toggle="modal" data-target="#del" class="btn btn-outline-danger btn-sm pull-right">删除 WJQR1-201710</a>-->
            </div>
        </div>
    </div>
    <div class="content-wrap row pr-46">
        <div class="c-header p-0 col-12"></div>
        <div class="row w-100 sub-content">
            <div class="c-body col-8">
                <div class="sjs-height-1" id="billsSpread">
                </div>
            </div>
            <div class="c-body col">
                <div class="tab-content">
                    <div id="biangeng" class="tab-pane active">
                        <div class="sjs-bar row">
                            <div class="col-auto">
                                <select class="form-control form-control-sm">
                                    <option>全部</option>
                                    <option>可用变更令</option>
                                    <option>本次计量已用</option>
                                </select>
                            </div>
                        </div>
                        <div class="sjs-height-3">
                            <table class="table table-bordered">
                                <tr><th></th><th>批复编号</th><th>名称</th><th>金额</th><th>已执行(%)</th></tr>
                            </table>
                        </div>
                        <div class="sjs-bottom">
                            <ul class="nav nav-tabs">
                                <li class="nav-item">
                                    <a class="nav-link active" data-toggle="tab" href="#qingdan" 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="#fujian" role="tab">附件</a>
                                </li>
                            </ul>
                            <div class="tab-content">
                                <div id="qingdan" class="tab-pane active">
                                    <div class="sjs-bottom-2">
                                        <table class="table table-bordered">
                                            <tr><th>清单编号</th><th>名称</th><th>单位</th><th>单价</th><th>数量</th><th>金额</th><th>已变更</th></tr>
                                        </table>
                                    </div>
                                </div>
                                <div id="detail" class="tab-pane">
                                    <div class="sjs-bottom-2">
                                        <div class="form-group">
                                            <label>批复编号</label>
                                            <input class="form-control form-control-sm" value="LZTJ-1标项目部发变更(2015)001号" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>申请编号</label>
                                            <input class="form-control form-control-sm" value="LZTJ-1标项目部发变更(2015)001号" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>工程名称</label>
                                            <input class="form-control form-control-sm" value="收费站出口右侧加宽段及K0+532基底换填" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>桩号</label>
                                            <input class="form-control form-control-sm" value="K0+532" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>原设计图名称</label>
                                            <input class="form-control form-control-sm" placeholder="" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>原图号</label>
                                            <input class="form-control form-control-sm" placeholder="" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>变更设计图名称</label>
                                            <input class="form-control form-control-sm" placeholder="" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>变更图号</label>
                                            <input class="form-control form-control-sm" placeholder="" type="text" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label>工程变更理由及内容</label>
                                            <textarea class="form-control form-control-sm" 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" rows="6" readonly></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label>备注</label>
                                            <textarea class="form-control form-control-sm" rows="3" readonly></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label>变更类型</label>
                                            <div class="checkbox">
                                                <label class="checkbox-inline">
                                                    <input id="inlineCheckbox1" value="option1" checked="" type="checkbox" disabled>A.位置
                                                </label>
                                                <!-- <label class="checkbox-inline">
                                                  <input id="inlineCheckbox2" value="option2" type="checkbox">B.数量
                                                </label>
                                                <label class="checkbox-inline">
                                                  <input id="inlineCheckbox3" value="option3" type="checkbox">C.结构
                                                </label>
                                                <label class="checkbox-inline">
                                                  <input id="inlineCheckbox3" value="option3" checked="" type="checkbox">D.新增
                                                </label>
                                                <label class="checkbox-inline">
                                                  <input id="inlineCheckbox3" value="option3" type="checkbox">E.取消
                                                </label>
                                                <label class="checkbox-inline">
                                                  <input id="inlineCheckbox3" value="option3" type="checkbox">F.纠错
                                                </label> -->
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label>变更类别 </label>
                                            <select class="form-control form-control-sm" disabled><option>A类变更（设计变更）</option><option>B类变更（施工措施变）</option><option>C类变更（计划变更）</option><option>D类变更（条件变更）</option><option>E类变更（新增工程）</option></select>
                                        </div>
                                        <div class="form-group">
                                            <label>变更性质 </label>
                                            <select class="form-control form-control-sm" disabled><option>一般设计变更</option><option>较大设计变更</option><option>重大设计变更</option></select>
                                        </div>
                                        <div class="form-group">
                                            <label>变更提出单位</label>
                                            <!-- <a href="#editcompany" style="float:right;" class="" data-toggle="modal">编辑</a> -->
                                            <select class="form-control form-control-sm" disabled><option>AA公司</option><option>BB公司</option></select>
                                        </div>
                                        <div class="form-group">
                                            <label>费用承担方</label>
                                            <div class="radio">
                                                <label class="radio-inline">
                                                    <input id="inlineCheckbox1" value="option1" checked="" type="radio" disabled> 业主
                                                </label>
                                                <!-- <label class="radio-inline">
                                                  <input id="inlineCheckbox2" value="option2" type="radio"> 承包人
                                                </label> -->
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="fujian" class="tab-pane">
                                    <table class="table table-bordered">
                                        <tr><th>名称</th><th>上传者</th></tr>
                                        <tr><td><a href="">合同段工程变更现场办公会议纪要的通知.rar</a></td><th>张三</th></tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="jlbiao" class="tab-pane">
                        <div class="sjs-bar row">
                            <div class="col-auto"><a href="#" class="btn btn-outline-primary btn-sm">自动生成</a></div>
                            <div class="col">
                                <div class="input-group input-group-sm">
                                    <div class="input-group-prepend">
                                        <span class="input-group-text" id="basic-addon3">表号前缀</span>
                                    </div>
                                    <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
                                </div>
                            </div>
                        </div>
                        <div class="sjs-height-3">
                            <table class="table table-bordered">
                                <tr><th>编号</th><th>中间计量表号</th><th>交工证书/凭证表</th></tr>
                            </table>
                        </div>
                        <div class="sjs-bottom">
                            <div class="form-group">
                                <label>变更令号：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>部位：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>起始桩号：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>分部分项工程：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>计量单元：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>图号：</label>
                                <input class="form-control form-control-sm" type="text">
                            </div>
                            <div class="form-group">
                                <label>计算式说明：</label>
                                <textarea class="form-control"></textarea>
                            </div>
                            <div class="form-group">
                                <a href="#edit-img" data-toggle="modal" data-target="#edit-img"  class="pull-right">添加草图</a>
                                <label>计算草图：</label>
                                <p class="form-control"><img src="img/sketch/2.png" class="d-100"></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="side-menu">
            <!--右侧菜单-->
            <ul class="nav flex-column right-nav">
                <li class="nav-item">
                    <a class="nav-link active" data-toggle="tab" href="#biangeng" role="tab">变更令</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="tab" href="#jlbiao" role="tab">中间计量表</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    const measureSpreadSetting = JSON.parse('<%- measureSpreadSetting %>');
    const userId = <%- ctx.session.sessionUser.accountId%>;
    const auditConst = JSON.parse('<%- JSON.stringify(auditConst) %>');
</script>
<script src="/public/js/spreadjs/sheets/gc.spread.sheets.all.10.0.1.min.js"></script>
<script>
    GC.Spread.Sheets.LicenseKey = "559432293813965#A0y3iTOzEDOzkjMyMDN9UTNiojIklkI1pjIEJCLi4TPB9mM5AFNTd4cvZ7SaJUVy3CWKtWYXx4VVhjMpp7dYNGdx2ia9sEVlZGOTh7NRlTUwkWR9wEV4gmbjBDZ4ElR8N7cGdHVvEWVBtCOwIGW0ZmeYVWVr3mI0IyUiwCMzETN8kzNzYTM0IicfJye&Qf35VfiEzRwEkI0IyQiwiIwEjL6ByUKBCZhVmcwNlI0IiTis7W0ICZyBlIsIyNyMzM5ADI5ADNwcTMwIjI0ICdyNkIsIibj9SbvNmL4N7bjRnch56ciojIz5GRiwiI8+Y9sWY9QmZ0Jyp96uL9v6L0wap9biY9qiq95q197Wr9g+89iojIh94Wiqi";
</script>
<script src="/public/js/spreadjs_rela/spreadjs_zh<%= min %>.js"></script>
<script src="/public/js/spreadjs_rela/extend_celltype.js"></script>
<script src="/public/js/path_tree<%= min %>.js"></script>
<script src="/public/js/measure_work.js"></script>