<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title><%= projectData.name !== undefined ? projectData.name : '造价书' %>-<%= title%></title>


    <link rel="stylesheet" href="/lib/jquery-ui/jquery-ui.css" type="text/css">
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap-submenu.css">
    <link rel="stylesheet" href="/lib/spreadjs/sheets/css/gc.spread.sheets.sc.css" type="text/css">
    <link rel="stylesheet" href="/web/building_saas/css/main.css">
    <link rel="stylesheet" href="/web/building_saas/css/custom.css">
    <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
    <link rel="stylesheet" href="/lib/jquery-contextmenu/jquery.contextMenu.css" type="text/css">
    <link rel="stylesheet" href="/lib/jquery-editable-select/jquery.editable-select.min.css" type="text/css">
    <!--zTree-->
    <link rel="stylesheet" href="/lib/ztree/css/zTreeStyle.css" type="text/css">
    <!--SpreadJs-->
   <!-- <link rel="stylesheet" href="/lib/jquery-ui/jquery-ui.css" type="text/css">
    <link rel="stylesheet" href="/lib/spreadjs/sheets/css/gc.spread.sheets.sc.css" type="text/css">-->
    <link rel="stylesheet" href="/lib/spreadjs/views/gc.spread.views.dataview.10.0.0.css">
    <!-- jquery.contextmenu -->
   <!-- <link rel="stylesheet" href="/lib/jquery-contextmenu/jquery.contextMenu.css" type="text/css">-->

    <link rel="shortcut icon" href="/web/building_saas/css/favicon.ico">
    <link rel="icon" type="image/gif" href="/web/building_saas/css/animated_favicon1.gif">
    <style type="text/css">
        .ztree * {
            font-family: Calibri;
            font-size: 14px;
        }
    </style>
    <script>
        // 这里的变量供页面调用
        let lockBills = '<%- projectData.property.lockBills %>';
        let userAccount = '<%- userAccount %>';
        let userID = '<%- userID %>';
        let userCompany = '<%- userCompany %>';
        let defaultLocation = '<%- defaultLocation %>';
        const USER_NAME = '<%- userName %>';
        let projectReadOnly = JSON.parse('<%- projectReadOnly %>');
        let projectCooperate = JSON.parse('<%- projectCooperate %>');
        let projectOptins =  JSON.parse('<%- options %>');
        const G_SHOW_BLOCK_LIB = true;
        // const G_SHOW_BLOCK_LIB = false;
        const markReadProjectIDs = JSON.parse('<%- markReadProjectIDs %>');
        const VERSION = '<%- version %>';
        const CUR_BOQ_TYPE = '<%- boqType %>';
        const billsUnitPriceFeature = JSON.parse('<%- billsUnitPriceFeature %>');
        const compilationName = '<%- compilationName %>';
    </script>
</head>

<body oncontextmenu="return false;">  <!--屏蔽input鼠标右键-->
<!--<div id="toolToastWrap" style="left: 20px; right: 30px; position: fixed; z-index: 10001; top: 100px;">
    <div id="toolToast" class="toolToast">
        <span id="tool-toast-content">右键不支持粘贴外部内容，请使用Ctrl+V粘贴。<span id="toolToastBtn">我知道了</span></span>
    </div>
</div>-->
<img src="/web/dest/css/img/question.png" id="question_pic" style="display: none">
    <div class="header">
        <%include ../../../common/html/header.html %>
    </div>
    <div class="main">
        <div class="main-nav">
            <ul class="nav nav-tabs flex-column" role="tablist" id="mainNav">
                <li class="nav-item"><a class="active" data-toggle="tab" href="#zaojiashu" id="tab_zaojiashu" role="tab">造价书</a></li>
                <% if (compilationName !== '内蒙古高速公路日常养护估算(2021)') { %>
                <li class="nav-item"><a data-toggle="tab" href="#project_glj" id="tab_project_glj" data-name="tab_project_glj" role="tab">工料机汇总</a></li>
                <li class="nav-item"><a data-toggle="tab" href="#fee_rates" id="tab_fee_rate" role="tab" >费率</a></li>
                <% } %>
                <li class="nav-item"><a data-toggle="tab" href="#divide" id="tab_divide" role="tab" style="display: none;">分摊</a></li>
                <li class="nav-item"><a data-toggle="tab" href="#calc_program_manage" id="tab_calc_program_manage" role="tab" style="display:none">总计算程序</a></li>
                <li class="nav-item"><a data-toggle="tab" href="#tender_price" id="tab_tender_price" role="tab">调价</a></li>
                <li class="nav-item"><a data-toggle="tab" href="#reports" role="tab" id="tab_report" onclick="rptTplObj.iniPage();">报表</a></li>
            </ul>
        </div>
        <div class="content">
          <div class="tab-content">
            <div class="tab-pane active" id="zaojiashu" role="tabpanel">
              <!--造价书-->
              <div class="toolsbar px-1 d-flex justify-content-between" id="headerToolsBar">
                  <div class="tools-btn btn-group align-top">
                    <!--<a href="javascript:void(0)" class="btn btn-sm" title="复制" ><i class="fa fa-files-o" aria-hidden="true"></i></a>
                    <a href="javascript:void(0)" class="btn btn-sm" title="剪切"><i class="fa fa-scissors" aria-hidden="true"></i></a>
                    <a href="javascript:void(0)" class="btn btn-sm" title="粘贴"><i class="fa fa-clipboard" aria-hidden="true"></i></a>-->
                      <span id="openProjSet" class="btn btn-light btn-sm" data-toggle="tooltip" data-original-title="项目属性" data-placement="bottom">
                        <a href="javascript:void(0);"><i class="fa fa-cog"></i></a>
                    </span>
                    <span class="btn btn-light btn-sm" id="importSpan" data-toggle="tooltip" data-original-title="导入Excel清单" data-placement="bottom" style="display: none;">
                        <a id="importDropDown" href="javascript:void(0);"><i class="fa fa-cloud-upload"></i></a>
                        <!--<div class="dropdown-menu">
                            <a id="uploadLj" class="dropdown-item" href="#import" data-toggle="modal" data-target="#import">导入工程量清单</a>
                            <a id="uploadGld" class="dropdown-item" href="#import" data-toggle="modal" data-target="#import">导入广联达算量Excel清单</a>
                        </div>-->
                    </span>
                   <!-- <a href="javascript:void(0)" class="btn btn-light btn-sm" id="insertRation" data-toggle="tooltip" data-placement="bottom" data-original-title="插入定额"><i class="fa fa-sign-in" aria-hidden="true"></i></a>-->
                    <a href="javascript:void(0)" class="btn btn-light btn-sm" id="delete" data-toggle="tooltip" data-placement="bottom" data-original-title="删除"><i class="fa fa-remove" aria-hidden="true"></i></a>
                    <a href="javascript:void(0)" class="btn btn-light btn-sm" id="upLevel" data-toggle="tooltip" data-placement="bottom" data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
                    <a href="javascript:void(0)"  class="btn btn-light btn-sm" id="downLevel" data-toggle="tooltip" data-placement="bottom" data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
                      <a href="javascript:void(0)" class="btn btn-light btn-sm" id="upMove" data-toggle="tooltip" data-placement="bottom" data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
                      <a href="javascript:void(0)" class="btn btn-light btn-sm" id="downMove" data-toggle="tooltip" data-placement="bottom" data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
                      <% if (compilationName !== '内蒙古高速公路日常养护估算(2021)') { %>
                      <div class="btn-group ml-2">
                          <a class="dropdown-toggle btn btn-light btn-sm" data-toggle="dropdown" href="#" id="moreMenuA" role="button" aria-haspopup="true" aria-expanded="false">更多</a>
                          <div class="dropdown-menu dropright" id="moreMenu">
                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)' || compilationName === '浙江养护(2005)') && boqType) { %>
                                <a class="dropdown-item" id="open-export-modal" href="javascript:void(0);"><i class="fa fa-code-fork"></i> 数据接口</a>
                                <!-- <a class="dropdown-item" id="open-export-modal" href="javascript:void(0);" data-toggle="modal" data-target="#interface-export-modal"><i class="fa fa-code-fork"></i> 数据接口</a> -->
                            <% }%>
                            <% if (projectData.property.lockBills == true) { %>
                            <a href="javascript:void(0)"  class="dropdown-item" name="lockBills"> <i class="fa fa-unlock-alt" aria-hidden="true"></i> 解锁清单</a>
                            <% } else { %>
                            <a href="javascript:void(0)"  class="dropdown-item" name="lockBills"> <i class="fa fa-lock" aria-hidden="true"></i> 锁定清单</a>
                            <% } %>
                              <a id = "menu_calc_program_manage"  href="javascript:void(0);" class="dropdown-item"><i class="fa fa-calculator" aria-hidden="true"></i> 总计算程序</a>
                          </div> 
                      </div>
                      <div class="btn-group ml-2">
                        <a class="dropdown-toggle btn btn-light btn-sm" data-toggle="dropdown" href="#" id="displayA" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-list-ol"></i> 显示至...</a>
                        <div class="dropdown-menu dropright" id="subDisplay">
                          <a class="dropdown-item btn-sm" href="javascript:void(0);" id="displayX">项</a>
                          <a class="dropdown-item btn-sm" href="javascript:void(0);"  id="displayM">目</a>
                          <a class="dropdown-item btn-sm" href="javascript:void(0);" id="displayJ">节</a>
                          <a class="dropdown-item btn-sm" href="javascript:void(0);" id="displayXM">细目</a>
                          <a class="dropdown-item btn-sm" href="javascript:void(0);"  id="displayZDCXM">最底层细目</a>
                          <a class="dropdown-item btn-sm" href="javascript:void(0);"  id="displayDE">定额</a>
                        </div>
                      </div>
                      <% } %>
                 <!--   <span class="btn btn-light btn-sm">
                      <a href="" data-toggle="dropdown"><span data-placement="bottom"><i class="fa fa-list-ol"></i></span> 显示至...</a>
                      <div class="dropdown-menu dropdown-menu-left" style="min-width: 6.5rem">
                      <a class="dropdown-item" href="javascript:void(0);" id="displayDXFY">大项费用</a>
                      <a class="dropdown-item" href="javascript:void(0);"  id="displayFB1">一级分部</a>
                      <a class="dropdown-item" href="javascript:void(0);" id="displayFB2">二级分部</a>
                      <a class="dropdown-item" href="javascript:void(0);" id="displayFB3">三级分部</a>
                      <a class="dropdown-item" href="javascript:void(0);"  id="displayFB4">四级分部</a>
                      <a class="dropdown-item" href="javascript:void(0);"  id="displayFX">分项</a>
                      <a class="dropdown-item" href="javascript:void(0);" id="displayZM">子目</a>
                      <a class="dropdown-item" href="javascript:void(0);"  id="displayZD">最底层</a>
                    </div>
                    </span>
                      <a href="javascript:void(0);" id="ZLFB_btn" class="btn btn-light btn-sm" data-placement="bottom"><i class="fa fa-retweet" aria-hidden="true"></i> 整理分部</a>
                      <% if (projectData.property.lockBills == true) { %>
                      <a href="javascript:void(0)"  class="btn btn-light btn-sm" name="lockBills"> <i class="fa fa-unlock-alt" aria-hidden="true"></i> 解锁清单</a>
                      <% } else { %>
                      <a href="javascript:void(0)"  class="btn btn-light btn-sm" name="lockBills"> <i class="fa fa-lock" aria-hidden="true"></i> 锁定清单</a>
                      <% } %>
                      <a id="switchTznr" href="javascript:void(0);"  class="btn btn-light btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> 显示特征</a>-->
                      <span class="ml-3" id="total-price-span"></span>
                  </div>
                  <div class="side-tabs">
                      <ul class="nav nav-tabs" role="tablist">
                          <!--<li class="nav-item">
                              <a class="nav-link px-3 right-nav-link"  href="javascript:void(0)" id = 'locateTab' relaPanel="#locate">查找定位</a>
                          </li>-->
                          <li class="nav-item">
                              <a class="nav-link px-1 right-nav-link" href="javascript:void(0)" id = 'stdBillsGuidanceTab' relaPanel="#zy">项目表</a>
                          </li>
                         <!-- <li class="nav-item">
                              <a class="nav-link px-3" href="javascript:void(0)" id = 'stdBillsTab' relaPanel="#qd">清单规则</a>
                          </li>-->
                          <% if (compilationName !== '内蒙古高速公路日常养护估算(2021)') { %>
                          <li class="nav-item" id="li_stdRationTab">
                              <a class="nav-link px-1 right-nav-link" href="javascript:void(0)" id="stdRationTab"
                                 relaPanel="#de">定额库</a>
                          </li>
                          <li class="nav-item dropdown">
                              <a class="nav-link dropdown-toggle more" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" >更多</a>
                              <div class="dropdown-menu" id="div_more_dropdown_right">
                                  <a class="dropdown-item  right-nav-link"  href="javascript:void(0)" id = 'locateTab' relaPanel="#locate">查找定位</a>
                                  <!--<a class="dropdown-item" data-toggle="tab" href="#sqpz" role="tab">书签批注</a>-->
                                  <script>
                                      //2018-11-23  zhang 模板库移动到更多下拉框
                                      if (G_SHOW_BLOCK_LIB) {
                                          $("#div_more_dropdown_right").append('<a class="dropdown-item right-nav-link" href="javascript:void(0)" ' +
                                              'id="blockLibTab" relaPanel="#kmbk">组价模板</a>');
                                      }
                                  </script>
                              </div>
                          </li>
                          <% } %>
                      </ul>
                  </div>
              </div>
              <div class="container-fluid">
                  <div class="row" id="mainRow">
                      <!--col-lg-12 p-0-->
                      <div class="main-content" style="width: 100%; display: inline-block" id="main">
                          <div class="top-content" id="top_div" style="overflow:hidden;">
                              <div class="main-data-top" id="billsSpread"></div>
                              <div class="moreButton" style="display: none">
                                <img src="/web/dest/css/img/more.png" class="moreImg"></img>
                              </div>
                          </div>
                          <div class="resize-y" id="mainVerticalResize"></div>
                          <div class="bottom-content" id="bottom_div">
                              <ul class="nav nav-tabs" role="tablist" id="bottom_div_ul">
                                  <!--<li class="nav-item" id="QDJL_div">
                                      <a class="nav-link sub-item" id="linkQDJL" data-toggle="tab" href="#subSpread" role="tab">清单精灵</a>
                                  </li>-->
                                  <li class="nav-item" id="GLJ_div">
                                      <a class="nav-link sub-item active" id="linkGLJ" data-toggle="tab" href="#subSpread" role="tab">工料机</a>
                                  </li>
                              <!--    <li class="nav-item">
                                      <a class="nav-link" id="linkFZTJ" data-toggle="tab" href="#subSpread" role="tab">附注条件</a>
                                  </li>
                                  <li class="nav-item">
                                      <a class="nav-link" id="linkFZDE" data-toggle="tab" href="#subSpread" role="tab">辅助定额</a>
                                  </li>-->
                               <!--   <li class="nav-item" id = "ZMHS_div">
                                      <a class="nav-link sub-item" id="linkZMHS" data-toggle="tab" href="#subSpread" role="tab">子目换算</a>
                                  </li>-->
                                  <li class="nav-item" id="AZZJF_div" style="display: none">
                                      <a class="nav-link sub-item" id="linkAZZJF" data-toggle="tab" href="#subSpread" role="tab">安装增加费</a>
                                  </li>
                                  <li class="nav-item">
                                      <a class="nav-link sub-item" id="linkGCLMX" data-toggle="tab" href="#subSpread" role="tab">工程量明细</a>
                                  </li>
                                  <% if (compilationName !== '内蒙古高速公路日常养护估算(2021)') { %>
                                  <li class="nav-item">
                                      <a class="nav-link sub-item" id="linkJSCX" data-toggle="tab" href="#subSpread" role="tab">计算程序</a>
                                  </li>
                                  <% } %>
                                 <!-- <li class="nav-item">   2018-11-08  新需求，隐藏说明信息
                                      <a class="nav-link" data-toggle="tab" href="#comments" role="tab" id="linkComments">说明信息</a>
                                  </li>-->
                                  <!--<li class="nav-item" id="MBZM_div">
                                      <a class="nav-link sub-item" id="linkMBZM" data-toggle="tab" href="#subSpread" role="tab">模板子目</a>
                                  </li>-->
                                  
                                  <% if ((compilationName === '四川养护(2013)') || (compilationName === '部颁2018计价标准')) { %>
                                  <li class="nav-item" id="TZJNR_div">
                                    <a class="nav-link sub-item" id="linkTZJNR" data-toggle="tab" href="#subSpread"
                                      role="tab">特征及内容</a>
                                  </li>
                                  <% } %>
                              </ul>
                              <!-- Tab panes -->
                              <div class="tab-content" id="tabCon">
                                  <div class="tab-pane active" id="subItems" role="tabpanel">
                                      <div class="main-data-bottom ovf-hidden" id="subSpread" style="display: none" tabindex="0"></div>
                                      <div class="main-data-bottom ovf-hidden" id="itemTextDiv">
                                          <div class="resize-x main-data-bottom ovf-hidden" id="rgResize" style="display: none"></div>
                                          <div class="item_spread main-data-bottom ovf-hidden " id="gljSubDiv" style="width: 99%;">
                                              <div class="tab-content">
                                                  <div class="tab-pane" id="rnc-xm" style="margin-top:-2px">
                                                      <div class="main-data-bottom" id="itemCharacterText" >
                                                          项目特征 内容
                                                      </div>
                                                  </div>
                                                  <div class="tab-pane" id="rnc-zm">
                                                      <div class="main-data-bottom ovf-hidden" id = "coeSpread">
                                                      </div>
                                                  </div>
                                                  <div class="tab-pane" id="rnc-cus">
                                                      <div class="main-data-bottom ovf-hidden" id = "cusSpread">
                                                      </div>
                                                  </div>
                                                  <div class="tab-pane" id="rnc-fz">
                                                      <div class="main-data-bottom ovf-hidden" id="assSpread"></div>
                                                  </div>
                                                  <div class="tab-pane" id="rnc-stable">
                                                      <div class="main-data-bottom ovf-hidden" id="stableSpread"></div>
                                                  </div>
                                              </div>
                                             <!-- <div class="p-0" id="openItemText" style="height:100%;width: 40px">
                                                  <div class="tn-nav d-flex align-items-start flex-column" data-toggle="tooltip" data-placement="left" title="" data-original-title="打开项目特征">
                                                      <span class="mt-3 ml-2 text-primary">项目特征</span>
                                                      <i class="fa fa-arrow-left mt-auto mb-3 text-primary ml-2"></i>
                                                  </div>
                                              </div>
                                              <a id="closeItemText" style="float: right;width: auto;display: none"  data-toggle="tooltip" data-placement="bottom" data-original-title="关闭项目特征" class="col-7 col-form-label" href="javascript:void(0);"><i class="fa fa-arrow-right"></i></a>
                                              <div id="replaceText" style="display: none;padding-bottom: 10px"></div>-->
                                          </div>
                                          <div class=" main-data-bottom ovf-hidden col-auto p-0" id="gljItemTab" style="width: 30px">
                                              <div class="rn-nav d-flex align-items-start flex-column gljSubTab">
                                                  <div id="zmhs_toogle">
                                                      <div class="d-flex align-items-start flex-column" data-toggle="tooltip" data-placement="left" title="" data-original-title="打开定额调整">
                                                          <span class="mt-3 ml-2 text-primary">定额调整</span>
                                                          <i class="fa fa-arrow-left mt-auto mb-3 text-primary ml-2"></i>
                                                      </div>
                                                  </div>
                                                  <!--<a  role="tab" class="zmhs-link nav-link">子目换算</a>-->
                                                  <div id="zmhs_nav" style="display: none">
                                                      <ul class="nav nav-tabs">
                                                          <li class="nav-item" data-toggle="tooltip" data-placement="left" title="收起">
                                                              <a data-toggle="tab" href="#rnc-close" role="tab" class="zmhs-link nav-link">收起<!--<i class="fa fa-arrow-right"></i>--></a>
                                                          </li>
                                                          <!--<li class="nav-item" data-toggle="tooltip" data-placement="left" title="项目特征">
                                                              <a data-toggle="tab" id="xm-nav" href="#rnc-xm" role="tab" class="zmhs-link nav-link">特征&lt;!&ndash;<i class="fa fa-info-circle"></i>&ndash;&gt;</a>
                                                          </li>-->
                                                          <li class="nav-item" data-toggle="tooltip" data-placement="left" title="附注条件"><a data-toggle="tab"  id="hs-nav" href="#rnc-zm" role="tab"class="zmhs-link nav-link">换算<!--<i class="fa fa-check-circle-o"></i>--></a></li>
                                                          <li class="nav-item" data-toggle="tooltip" data-placement="left" title="自定义系数"><a data-toggle="tab" href="#rnc-cus" role="tab"class="zmhs-link nav-link">系数<!--<i class="fa fa-wrench"></i>--></a></li>
                                                          <li class="nav-item" data-toggle="tooltip" data-placement="left" title="定额稳定土"><a data-toggle="tab" href="#rnc-stable" role="tab" class="zmhs-link nav-link">稳定土</a></li>
                                                          <!--                     <li class="nav-item" data-toggle="tooltip" data-placement="left" title="增减换算"><a data-toggle="tab" href="#rnc-fz" role="tab"class="zmhs-link nav-link "><i class="fa fa-plus"></i></a></li>-->
                                                        <!--  <li class="nav-item"><a data-toggle="tab" href="#rnc-xm" role="tab"  class="nav-link">项目特征</a></li>
                                                          <li class="nav-item"><a data-toggle="tab" href="#rnc-zm" role="tab" class="nav-link">子目换算</a></li>
                                                          <li class="nav-item"><a data-toggle="tab" href="#rnc-fz" role="tab" class="nav-link">辅助定额</a></li>-->
                                                      </ul>
                                                  </div>
                                              </div>
                                          </div>
                                      </div>
                                     <!-- <div class="main-data-bottom ovf-hidden" id="tabZMHS" style="display: none">
                                          <div class=" main-data-bottom ovf-hidden p-0" style="width: 60%; float: left;" id="coeSpread"></div>
               hs                           <div class="main-data-bottom ovf-hidden p-0" id="assDiv" style="width: 40%; float: left">
                                              <div class="resize-x" id="zmhsResize"></div>
                                              <div class="main-data-bottom ovf-hidden" style="width: 99%; float: left;" id="assSpread"></div>
                                          </div>
                                      </div>-->
                                      <div class="main-data-bottom ovf-hidden" id="tabMBZM" style="display: none;">
                                              <div class="col-12" style="background: #F1F1F1;">
                                                  <div class="row" style="border-bottom:1px solid #ccc">
                                                      <label class="col-auto col-form-label col-form-label-sm">提取位置</label>
                                                      <div class="">
                                                          <select class="form-control  form-control-sm" id="createLocation" style="width: auto">
                                                              <option value="1">模板子目分别放在措施项目下</option>
                                                              <option value="2">模板子目分别放在分部分项下</option>
                                                              <option value="3">模板子目分别放在对应混凝土子目下</option>
                                                          </select>
                                                      </div>
                                                      <div class="">
                                                          <button class=" btn btn-primary btn-sm cus-width" type="button" id="apply_mbzm">应用</button>
                                                          <label class="applySuccess" ><i class="fa fa-check" aria-hidden="true"></i>成功</label>
                                                          <button class=" btn btn-primary btn-sm cus-width" type="button" id="next_mbzm">下一条</button>
                                                      </div>

                                                  </div>
                                              </div>
                                              <div class=" ovf-hidden" style="" id="mbzmSpread"></div>
                                      </div>
                                      <div class="main-data-bottom ovf-hidden" style="display: none" id="comments">
                                          <textarea style="font-size: 14px" class="form-control" rows="8" readonly=""></textarea>
                                      </div>
                                      <!--<div class="container-fluid main-data-bottom ovf-hidden" id="qdjl" role="tabpanel">
                                          <div class="row p-0" style="background: #efefef">
                                              <div class="col-6 p-0">
                                                  <div id="qdjlTools" style="width: calc(100% - 5px); border-bottom: solid 1px lightgrey;">
                                                      <a id="elfInsertRation" href="javascript:void(0);" class="btn btn-sm btn-primary px-1 ml-1">应用选项</a>
                                                      <a id="elfInsertSingle" href="javascript:void(0)" class="btn btn-sm btn-primary px-1 ml-1">应用单条</a>
                                                  </div>
                                                  <div class="ovf-hidden" id="elfItems">
                                                  </div>
                                              </div>
                                          </div>
                                      </div>-->
                                  </div>
                              </div>
                          </div>
                      </div>
                      <div class="main-side" style="display: inline-block" id="mainSide">
                          <div class="resize-x" id="sideResize"></div>
                          <div class="tab-content" style="width: 99%; height: 100%; float: left">
                              <!--查找定位-->
                              <div class="tab-pane" id="locate">
                                  <div class="sidebar-tools-bar container-fluid tools-bar-height-y" id="searchPanel">
                                      <div class="p-1 row">
                                          <div class="input-group input-group-sm col-12">
                                              <input type="text" class="form-control form-control-sm" placeholder="查找内容" id="locateInput" value="">
                                              <div class="input-group-append">
                                                  <button class="btn btn-secondary btn-sm" type="button" id="locate_btn"><i class="fa fa-search" aria-hidden="true"></i></button>
                                              </div>
                                          </div>
                                          <div class="form-group col-12 mb-1">
                                              <div class="form-check form-check-inline">
                                                  <input class="form-check-input" type="radio" name="content_type" id="bills" value="bills" checked = "true">
                                                  <label class="form-check-label" for="bills">分项/清单</label>
                                              </div>
                                              <div class="form-check form-check-inline">
                                                  <input class="form-check-input" type="radio" name="content_type" id="ration" value="ration">
                                                  <label class="form-check-label" for="ration">定额</label>
                                              </div>
                                              <div class="form-check form-check-inline">
                                                  <input class="form-check-input" type="radio" name="content_type" id="raion_glj" value="ration_glj">
                                                  <label class="form-check-label" for="raion_glj">工料机</label>
                                              </div>
                                              <div class="form-check form-check-inline">
                                                  <input class="form-check-input" type="radio" name="content_type" id="bookmark" value="bookmark">
                                                  <label class="form-check-label" for="bookmark">书签批注</label>
                                              </div>
                                          </div>
                                          <!--搜索分项/清单 出现-->
                                          <div class="col-12"  id="outstandingOptions">
                                              <div class="form-group form-check mb-0">
                                                  <input type="checkbox" class="form-check-input" id ="outstanding">
                                                  <label class="form-check-label" for="outstanding">超 <input id="outInp" type="number" style="width:50px"> % 时突出显示</label>
                                              </div>
                                          </div>
                                      </div>
                                  </div>
                                  <div id="aboutLocateDiv">
                                      <!--上下结构-->
                                      <div class="top-content" id="locateTopDiv" style="overflow: hidden">
                                          <div class="" id="locate_result" >
                                          </div>
                                      </div>
                                      <div class="resize-y" id="locate_resize"></div>
                                      <div class="bottom-content" id="locateBottomDiv">
                                          <div class="" id="locate_sub"></div>
                                      </div>
                                  </div>
                                  <div id="aboutBookmarkDiv" style="display: none">
                                      <!--上下结构-->
                                      <div id="bookmarkTopDiv">
                                          <div class="sidebar-tools-bar container-fluid tools-bar-height-q">
                                              <div class="p-1 row" style="padding-top:0px!important">
                                                  <div class="dropdown" id="bookmarkSettingDropdown">
                                                      <button class="btn btn-sm btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
                                                          书签设置
                                                      </button>
                                                      <form class="dropdown-menu p-2" id = "bookmarkSettingForm" onsubmit="return false;">
                                                          <input type="hidden" id="bookmarkSelected">
                                                          <div id="bookmarkSettingList">
                                                              <div class="input-group input-group-sm mb-2" style="width:200px">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-1">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                             </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-2">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" id="E2F2C5" placeholder="描述">
                                                              </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-3">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                              </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-4">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                              </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-5">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                              </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-6">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                              </div>
                                                              <div class="input-group input-group-sm mb-2">
                                                                  <div class="input-group-prepend">
                                                                      <span class="input-group-text annotate-color-7">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                  </div>
                                                                  <input type="text" class="form-control" placeholder="描述">
                                                              </div>
                                                          </div>
                                                          <button  class="btn btn-sm btn-primary" id = "bookmarkSettingConfirm">确定</button>
                                                      </form>
                                                  </div>
                                              </div>
                                          </div>
                                          <div class="" id = "bookmarkSpread" style="overflow: hidden"></div>
                                      </div>
                                      <div class="resize-y" id="bookmark_resize"></div>
                                      <div class=" container-fluid" id="annotationDiv">
                                          <div class="row">
                                              <div class="col-lg-12" style="padding: 0px" >
                                                  <input type="hidden" id="bookmarkNodeID">
                                                  <input type="hidden" id="bookmarkNodeType">
                                                  <textarea class="form-control" id="annotationTextarea"  placeholder = "批注内容"></textarea>
                                              </div>
                                          </div>
                                      </div>
                                  </div>
                              </div>

                              <!--清单指引-->
                              <div class="tab-pane occupied" id="zy">
                                  <div class="sidebar-tools-bar container-fluid tools-bar-height-z">
                                      <div class="p-1 row">
                                          <div class="col p-0">
                                              <select class="form-control form-control-sm" id="stdBillsGuidanceLibSelect"></select>
                                          </div>
                                          <div class="col px-1">
                                              <div class="input-group" id="stdBillsGuidanceSearch">
                                                  <input type="text" class="form-control form-control-sm" placeholder="输入编码或名称">
                                                  <div class="input-group-append">
                                                      <button class="btn btn-secondary btn-sm" type="button"><i class="fa fa-search" aria-hidden="true"></i></button>
                                                  </div>
                                              </div>
                                          </div>
                                          <!--<div class="col p-0">
                                              <button id="guidanceInsertRation" class="btn btn-primary btn-sm" type="button">插入定额</button>
                                              <button id="guidanceInsertBills" class="btn btn-primary btn-sm" type="button">插入清单</button>
                                          </div>-->
                                      </div>
                                      <!--搜索结果窗体-->
                                      <div class="side-search-box col-12 p-2" id="billsGuidanceSearchResult" style="display: none;">
                                          <div class="d-flex justify-content-between">
                                              <span id = 'billsGuidanceSearchResultCount'>搜索结果：5</span>
                                              <a class="btn btn-secondary btn-sm" href="javascript:void(0);" id="preBillsGuidance">上一条</a>
                                              <a class="btn btn-secondary btn-sm" href="javascript:void(0);" id="nextBillsGuidance">下一条</a>
                                              <a title="关闭搜索" class="btn btn-link btn-sm" href="javascript:void(0);" id="closeSearchBillsGuidance"><i class="fa fa-remove" aria-hidden="true"></i></a>
                                          </div>
                                      </div>
                                  </div>
                                  <div class="top-content" style="overflow: hidden">
                                    <a id="add-select-bills" href="javascript:;" class="btn btn-xs btn-primary add-select-bills-btn">添加选用</a>
                                      <div class="main-data-side-zb" id="billsGuidance_bills">
                                      </div>
                                  </div>
                             <!--     <div class="resize" id="zyResize" style="background: #F1F1F1"></div>
                                  <div class="p-0 row" id="zyTools" style="background: #F1F1F1">
                                      <div class="col">
                                          <button id="guidanceInsertBills" class="btn btn-primary btn-sm" style="height: 25px; line-height: 1px;" type="button">插入清单</button>
                                          <button id="guidanceInsertRation" class="btn btn-primary btn-sm" style="height: 25px; line-height: 1px;" type="button">插入定额</button>
                                          <button id="guidanceInsertBillsAndRation" class="btn btn-primary btn-sm" style="height: 25px; line-height: 1px;" type="button">插入清单和定额</button>
                                      </div>
                                  </div>
                                  <div class="bottom-content">
                                      <div class="main-data-side-zi" id="billsGuidance_items"></div>
                                  </div>-->
                              </div>
                              <!--清单规则-->
                              <div class="tab-pane" id="qd">
                                  <div class="tools-bar-height-q container-fluid">
                                      <div class="p-1 row">
                                          <select class="form-control form-control-sm col-6" id="stdBillsLibSelect">
                                          </select>
                                          <div class="input-group col-6" id="stdBillsSearch">
                                              <input type="text" class="form-control form-control-sm" placeholder="输入编码或名称" value="">
                                              <div class="input-group-append">
                                                  <button class="btn btn-secondary btn-sm" type="button"><i class="fa fa-search" aria-hidden="true"></i></button>
                                              </div>
                                          </div>
                                         <!-- <div class="input-group col-6" id="stdBillsSearch">
                                              <input type="text" class="form-control form-control-sm" placeholder="输入编码或名称">
                                              <span class="input-group-btn">
                                                  <button class="btn btn-secondary btn-sm" type="button"><i class="fa fa-search" aria-hidden="true"></i></button>
                                              </span>
                                          </div>-->
                                          <!--搜索结果窗体-->
                                          <div class="side-search-box col-12 p-2" id="stdBillsSearchResult" style="display: none;">
                                              <div class="d-flex justify-content-between">
                                                  <span id = 'stdBillsSearchResultCount'>搜索结果：5</span>
                                                  <a class="btn btn-secondary btn-sm" href="javascript:void(0);" id="nextStdBills">查找下一条</a>
                                                  <a title="关闭搜索" class="btn btn-link btn-sm" href="javascript:void(0);" id="closeSearchStdBills"><i class="fa fa-remove" aria-hidden="true"></i></a>
                                              </div>
                                          </div>
                                      </div>
                                  </div>
                                  <div class="top-content">
                                      <div class="main-data-side-q" id="stdBillsSpread"></div>
                                  </div>
                                  <div class="resize" id="qdResize" style="background: #F1F1F1"></div>
                                  <div class="bottom-content">
                                      <div class="p-0" id="stdBillsJobTab">
                                          <div class="p-0" style="width: 50%; float: left" id="stdBillsJobs"></div>
                                          <div class="p-0" style="width: 50%; float: left" id="stdBillsFeatures"></div>
                                      </div>
                                      <div class="row" id="stdBillsRemarkTab">
                                          <div class="col-lg-12 p-0">
                                              <textarea class="form-control" id="stdBillsRemark" style="width: 100%; height: 100%" readonly="true"></textarea>
                                          </div>
                                      </div>
                                  </div>
                              </div>
                              <!--定额库-->
                              <div class="tab-pane" id="de">
                                  <div class="tools-bar-height-d container-fluid" id="deToolsBar">
                                      <div class="p-1 row">
                                          <select class="form-control form-control-sm col-6" id="stdRationLibSelect">
                                          </select>
                                          <div class="input-group col-6">
                                              <input type="text" class="form-control form-control-sm" placeholder="搜索定额" value="" id="rationSearchKeyword">
                                              <div class="input-group-append">
                                                  <button class="btn btn-secondary btn-sm" type="button" id="rationSearch"><i class="fa fa-search" aria-hidden="true"></i></button>
                                              </div>
                                          </div>
                                          <!--搜索结果窗体-->
                                          <div class="side-search-box col-12 p-0" id="rationSearchResult" style="display: none;">
                                              <div class="d-flex justify-content-between">
                                                  <div class="my-1">
                                                      <span id="rationSearchCount"></span>
                                                      <button id="curRationLib" type="button" class="btn btn-sm btn-secondary" style="margin-left: 15px;">本定额</button>
                                                      <button id="allRationLibs" type="button" class="btn btn-sm btn-light">全部定额</button>
                                                  </div>
                                                  <a title="关闭搜索" class="btn btn-link btn-sm" href="javascript:void(0)"><i class="fa fa-remove" aria-hidden="true"></i></a>
                                              </div>
                                              <div class="w-100 main-data-side-search"></div>
                                          </div>
                                          <!--
                                          html.push('<div class="d-flex justify-content-between">');
        html.push('<span>搜索结果：');
        html.push(result.length.toString());
        html.push('</span>');
        html.push('<a title="关闭搜索" class="btn btn-link btn-sm" href="javascript:void(0)"><i class="fa fa-remove" aria-hidden="true"></i></a>');
        html.push('</div>');

        html.push('<div class="w-100 main-data-side-search">');
        html.push('</div>');
        return html.join('');
                                          -->
                                      </div>
                                  </div>
                                  <div class="top-content" id="deTopDiv" style="overflow: hidden">
                                      <div class="main-data-side-d" id="stdRationChapter"></div>
                                  </div>
                                  <div class="resize-y" id="deResize" style="background: #F1F1F1"></div>
                                  <div class="bottom-content" id="deBottomDiv">
                                      <div class="main-data-bottom" id="stdSectionRations"></div>
                                  </div>
                              </div>
                              <!--块模板库-->
                              <div class="tab-pane" id="kmbk">
                                  <div class="tools-bar-height-d container-fluid" id="kmbkToolsBar">
                                      <div class="p-1 row">
                                          <select class="form-control form-control-sm col-6" id="select_block_lib_names">
                                              <option>我的模板库</option>
                                          </select>
                                          <div class="col-6 pl-1 pr-0">
                                              <div class="d-inline">
                                                  <button type="button" class="btn btn-sm btn-secondary" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="btn_block_newFolder">
                                                      新建分类
                                                  </button>
                                                  <div class="dropdown-menu dropdown-menu-right">
                                                      <form class="px-3 py-2">
                                                          <div class="form-group m-0">
                                                              <div class="input-group input-group-sm">
                                                                  <input type="text" class="form-control" placeholder="请输入分类名称" id="input_block_newFolder">
                                                                  <div class="input-group-append">
                                                                      <button class="btn btn-primary" type="button" id="btn_block_newFolder_add">添加</button>
                                                                  </div>
                                                              </div>
                                                          </div>
                                                      </form>
                                                  </div>
                                              </div>
                                              <div class="d-inline">
                                                  <button type="button" class="btn btn-sm btn-secondary" data-toggle="dropdown" id="btn_block_reName">
                                                      重命名
                                                  </button>
                                                  <div class="dropdown-menu dropdown-menu-right">
                                                      <form class="px-3 py-2">
                                                          <div class="form-group m-0">
                                                              <!--<label id="lbl_block_reName"></label>-->
                                                              <div class="input-group input-group-sm" style="width:300px">
                                                                  <input type="text" class="form-control  is-invalid" placeholder="请输入名称" value="重命名" id="input_block_reName">
                                                                  <div class="input-group-append">
                                                                      <button class="btn btn-primary" type="button" id="btn_block_reName_OK">确定</button>
                                                                  </div>
                                                                  <!--<div class="invalid-feedback">名称太长了，请减少一些。</div>-->
                                                              </div>
                                                          </div>
                                                      </form>
                                                  </div>
                                              </div>
                                              <div class="d-inline">
                                                <button type="button" class="btn btn-sm btn-secondary"
                                                  id="btn_block_share" data-toggle="tooltip" data-placement="bottom" data-original-title="">
                                                  分享
                                              </div>
                                          </div>
                                      </div>
                                  </div>
                                  <div class="top-content" style="overflow: hidden" id="kmbkTopDiv">
                                      <div id="div_block_tree"></div>
                                  </div>
                                  <!-- <div class="resize-y" id="kmbkResizeA"></div>
                                  <div class="bottom-content" id="kmbkMidDiv">
                                      <div id="div_block_bill"></div>
                                  </div> -->
                                  <div class="resize-y" id="kmbkResizeB"></div>
                                  <div id="kmbkBottomDiv">
                                      <div id="div_block_ration"></div>
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
            </div>

            <div class="tab-pane" id="project_glj" role="tabpanel">
              <%include ../../glj/html/project_glj.html %>
            </div>
            <div class="tab-pane" id="reports" role="tabpanel">
                <%include ../../report/html/rpt_main.html %>
            </div>

            <div class="tab-pane" id="fee_rates" role="tabpanel">
                <%include ../../fee_rates/fee_rate.html %>
            </div>
            <div class="tab-pane" id="divide" role="tabpanel">
              <%include divide.html %>
            </div>
            <div class="tab-pane" id="tender_price" role="tabpanel">
                <%include tender_price.html %>
            </div>
            <div class="tab-pane" id="calc_program_manage" role="tabpanel">
                <%include calc_program_manage.html %>
            </div>

          </div>

        </div>
    </div>
    <!--弹出项目属性-->
    <div class="modal fade" id="poj-set" data-backdrop="static">
        <div class="modal-dialog modal-lg" 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">
                    <div class="row">
                        <div class="col-3">
                            <ul class="nav flex-column nav-pills" role="tablist">
                                <li class="nav-item"><a class="nav-link active" data-toggle="pill" href="#poj-settings-basicInfo" role="tab" id="tab_poj-settings-basicInfo">建设项目基本信息</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-projFeature" id="tab_poj-settings-projFeature" role="tab">工程特征</a></li>
                                <% if (compilationName !== '内蒙古高速公路日常养护估算(2021)') { %>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-indicativeInfo" id="tab_poj-settings-indicativeInfo" role="tab">指标信息</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-4" id="about-calc" role="tab">关于计算</a></li>
                                <% } %>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-billsQuanDecimal" id="tab_poj-settings-bqDecimal" role="tab">清单工程量精度</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-decimal" role="tab" id="tab_poj-settings-decimal">小数位数</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#poj-settings-6" role="tab" id="tab_poj-settings-6">人工单价调整</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#display-setting" role="tab" id="tab_display_setting">呈现选项</a></li>
                                <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#system-setting" role="tab" id="tab_system_setting">系统选项</a></li>
                            </ul>
                        </div>
                        <div class="col-9">
                            <div class="tab-content">
                                <!--基本信息-->
                                <div class="tab-pane fade show active" id="poj-settings-basicInfo" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow: hidden;" id="basicInfoSpread">
                                    </div>
                                </div>
                                <!--工程特征-->
                                <div class="tab-pane fade" id="poj-settings-projFeature" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow: hidden" id="projFeatureSpread">
                                    </div>
                                </div>
                                <!--指标信息-->
                                <div class="tab-pane fade" id="poj-settings-indicativeInfo" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow:hidden" id="indicativeInfoSpread">
                                    </div>
                                </div>
                                <!--关于计算-->
                                <div class="tab-pane fade" id="poj-settings-4" role="tabpanel">
                                    <div class="modal-auto-height">
                                        <fieldset class="form-group" >
                                            <h5>计算方式</h5>
                                         <!--    <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="calcFlag" id="rationContent" value="0" type="radio">
                                                    子目含量取费
                                                </label>
                                            </div> -->
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="calcFlag" id="rationPriceConverse" value="1" type="radio">
                                                    反算：清单综合合价=清单综合单价*清单工程量
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label" >
                                                    <input class="form-check-input" name="calcFlag" id="rationPrice" value="2" type="radio">
                                                   正算：清单综合合价=∑子目综合合价
                                                </label>
                                            </div>
                                           <!--  <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="calcFlag" id="billsPrice" value="3" type="radio">
                                                    清单单价取费
                                                </label>
                                            </div> -->
                                        </fieldset>
                                        <fieldset class="form-group" style="display:none">
                                            <h5>暂估合价计算方式</h5>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="zangu" id="zangu_common" value="0" type="radio">
                                                    暂估合价=暂估单价×定额工程量
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="zangu" id="zangu_gatherMaterial" value="1" type="radio">
                                                    暂估合价=∑暂估材料数量×暂估材料单价
                                                </label>
                                            </div>
                                        </fieldset>
                                        <fieldset class="form-group"  style="display:none">
                                            <h5>计算选项</h5>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" type="checkbox" id="calc_main">
                                                    主材、设备、未计价材料计取价差
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" type="checkbox" id="calc_add">
                                                    新增人材机计取价差
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" type="checkbox" id="calc_est">
                                                    暂估材料计取价差
                                                </label>
                                            </div>
                                        </fieldset>
                                        <fieldset class="form-group" id="jcybf" style="display: none;">
                                            <h5>价差预备费</h5>
                                            <div class="mt-1">
                                                年造价增涨率<input id="costGrowthRate" class="form-control form-control-sm"  value="0" type="teext" style="display: inline-block; width: 90px;">%
                                            </div>
                                            <div class="mt-1">
                                                增涨计费年限<input id="growthPeriod" class="form-control form-control-sm"  value="0" type="teext" style="display: inline-block; width: 90px;">
                                            </div>

                                        </fieldset>
                                            <fieldset class="form-group">
                                              <h5>清单限价</h5>
                                              <div class="mt-1">
                                                <span data-toggle="tooltip" data-placement="bottom" data-original-title="最高限价=清单综合单价*（1+X%）">最高限价 </span><input id="max-price-rate" data-limit="max" class="form-control form-control-sm limit-price-input" value="0" type="text"> %
                                              </div>
                                            <div class="mt-1">
                                                <span data-toggle="tooltip" data-placement="bottom" data-original-title="最低限价=清单综合单价*（1-X%）">最低限价 </span><input id="min-price-rate" data-limit="min" class="form-control form-control-sm limit-price-input" value="0" type="text"> %
                                            </div>
                                            </fieldset>
                                    </div>
                                </div>
                                <!--清单工程精度-->
                                <div class="tab-pane fade" id="poj-settings-billsQuanDecimal" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow: hidden;" id="billsQuanDecimal">
                                    </div>
                                </div>
                                <!--小数位数-->
                                <div class="tab-pane fade" id="poj-settings-decimal" role="tabpanel">
                                    <div class="modal-auto-height">
                                        <fieldset class="form-group">
                                            <h5 id="bills_decimal_header">清单</h5>
                                            <div class="row m-0">
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">单价</span>
                                                        </div>
                                                        <input type="number" name="bills-unitPrice" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">金额</span>
                                                        </div>
                                                        <input type="number" name="bills-totalPrice" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                            </div>
                                            <h5 class="mt-3" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >定额</h5>
                                            <div class="row m-0" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">工程量</span>
                                                        </div>
                                                        <input type="number" name="ration-quantity" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">单价</span>
                                                        </div>
                                                        <input type="number" name="ration-unitPrice" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">金额</span>
                                                        </div>
                                                        <input type="number" name="ration-totalPrice" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                            </div>
                                            <h5 class="mt-3" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >工料机</h5>
                                            <div class="row m-0" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">消耗量</span>
                                                        </div>
                                                        <input type="number" name="glj-quantity" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">单价<small class="text-muted">(有组成物)</small></span>
                                                        </div>
                                                        <input type="number" name="glj-unitPriceHasMix" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">单价<small class="text-muted">(无组成物)</small></span>
                                                        </div>
                                                        <input type="number" name="glj-unitPrice" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                            </div>
                                            <h5 class="mt-3" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >费率</h5>
                                            <div class="row m-0" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %> >
                                                <div class="col-sm-3">
                                                    <div class="input-group input-group-sm mb-2">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text">费率</span>
                                                        </div>
                                                        <input type="number" name="feeRate" class="form-control" value="2" step="1" max="6" min="0">
                                                    </div>
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                </div>
                                <!--人工单价调整-->
                                <div class="tab-pane fade" id="poj-settings-6" role="tabpanel">
                                    <div class="row px-3 modal-toolbar">
                                        <select class="col-4 form-control form-control-sm" id="std_labour_coe_files"><option>渝建[2016]71号</option><option>渝建[2017]78号</option></select>
                                    </div>
                                    <div class="modal-auto-height pt-1"  style="overflow: hidden" id="labourCoeSpread" ></div>
                                </div>
                                <!--呈现选项-->
                                <div class="tab-pane fade" id="display-setting" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow: hidden">
                                        <fieldset class="form-group">
                                           <!-- <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" id="autoHeight" type="checkbox">
                                                    造价书表格自动调整行高
                                                </label>
                                            </div>-->
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" id="billsAutoHeight" type="checkbox">
                                                    工程量清单自动调整行高
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" id="rationAutoHeight" type="checkbox">
                                                    定额子目自动调整行高
                                                </label>
                                            </div>
                                            <!--<div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" id="disPlayMainMaterial" type="checkbox">
                                                    定额下显示主材、设备
                                                </label>
                                            </div>-->
                                        </fieldset>
                                        <div id="col_setting_spread" style="height:280px;overflow:hidden">
                                        </div>
                                        <div><a style="margin-left: 5px;" class="btn btn-sm" id="recColSetting" href="javascript:void(0);">恢复默认列设置</a></div>
                                    </div>
                                </div>
                                <!--系统选项-->
                                <div class="tab-pane fade" id="system-setting" role="tabpanel">
                                    <div class="modal-auto-height" style="overflow: hidden">
                                        <fieldset class="form-group">
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="opts-general-radios" id="generalOpts1" value="opt1" type="checkbox">
                                                    自动根据清单工程量填写定额工程量
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="opts-general-radios" id="generalOpts2" value="opt2"  type="checkbox">
                                                    自动根据定额单位转换定额工程量
                                                </label>
                                            </div>
                                            <h5 class="mt-3">累进计算费用</h5>
                                            <div class="">
                                              <input type="radio" class="form-radio" name="progressiveType" id="progressive_unite" value=0>统一累进办法&nbsp;&nbsp;
                                              <input type="radio" class="form-radio" name="progressiveType" id="progressive_sum" value=1>各汇总工程相加&nbsp;&nbsp;
                                            </div>
                                        </fieldset>
                                            <label style="margin-top: 320px">*将影响所有建设项目</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" class="btn btn-primary" id="property_default" data-dismiss="modal" style="margin-right: 475px">恢复默认系统设置</a>
                    <a href="javascript:void(0);" class="btn btn-primary" id="property_ok" data-dismiss="modal">确定</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
    <!--弹出选项-->
    <div class="modal fade" id="opts-set" data-backdrop="static">
        <div class="modal-dialog modal-lg" 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">
                    <div class="row">
                        <div class="col-3">
                            <ul class="nav flex-column nav-pills" role="tablist">
                                <li class="nav-item"><a class="nav-link active" data-toggle="pill" href="#opts-general" role="tab">常规选项</a></li>
                            </ul>
                        </div>
                        <div class="col-9">
                            <div class="tab-content">
                                <!--常规选项-->
                                <!--<div class="tab-pane fade show active" id="opts-general" role="tabpanel">
                                    <div class="modal-auto-height">
                                        <fieldset class="form-group">
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="opts-general-radios" id="generalOpts1" value="opt1" type="checkbox">
                                                    自动根据清单工程量填写定额工程量
                                                </label>
                                            </div>
                                            <div class="form-check">
                                                <label class="form-check-label">
                                                    <input class="form-check-input" name="opts-general-radios" id="generalOpts2" value="opt2" type="checkbox">
                                                    自动根据定额单位转换定额工程量
                                                </label>
                                            </div>
                                        </fieldset>
                                    </div>
                                </div>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--弹出清单单位选择设置-->
    <div class="modal fade" id="std_bills_unit" 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" id='std_bills_unit_close' aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body modal-auto-height" id="std_bills_unit_spread" style="height: 200px; width: 500px; overflow: hidden;">
                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" id="std_bills_unit_ok" class="btn btn-primary">确定</a>
                    <button type="button" class="btn btn-secondary" id='std_bills_unit_cancel'>关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--弹出列设置-->
  <!--  <div class="modal fade" id="column" data-backdrop="static">
        <div class="modal-dialog modal-lg" role="document" style="width: 350px;">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><i class="fa fa-table"></i> 列设置</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body modal-auto-height" id="col_setting_spread" style="overflow: hidden;">
                </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="glj_tree_div" data-backdrop="static">
        <div class="modal-dialog modal-lg" role="document" id="modalCon">
            <div class="modal-content" style="width: 1020px; left:50%; transform: translate(-50%,0%);">
                <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>
                    <input type="hidden" id="actionType">
                </div>
                <div class="modal-body" style="padding-left: 0; padding-right: 3px; margin-left: 0;">
                        <div style="width: 32%; float: left;">
                            &nbsp;
                            <select class="form-control  form-control-sm form-control-inline" id="glj-lib-select">
                            </select>
 <!--                            <input type="radio" class="glj-radio" name="glj" value="stdGLJ">标准&nbsp;&nbsp;
                            <input type="radio" class="glj-radio" name="glj" value="complementaryGLJs">补充&nbsp;&nbsp; -->
                            <div  class="modal-auto-height" id="componentTreeDiv" style=" height: 435px; overflow: hidden;">
                                <!--<div class="print-list">-->
                                <div style="width: 100%; height: 100%; overflow: auto">
                                    <ul id="gljTree" class="ztree"></ul>
                                </div>
                                <!--</div>-->
                            </div>
                        </div>
                        <div style="width:67%; padding-left: 3px; float: left;">
                            <div id="gljRadios">
                                <div class="row">
                                    <div class="col-7" style="margin-top: 5px;">
                                        <!--<input type="radio" class="glj-radio" name="glj" value="allGljs" checked>所有&nbsp;&nbsp;
                                        <input type="radio" class="glj-radio" name="glj" value="stdGLJ">标准&nbsp;&nbsp;
                                        <input type="radio" class="glj-radio" name="glj" value="complementaryGLJs">补充&nbsp;&nbsp;-->
                                    </div>
                                    <div class="input-group col-5" style="margin-bottom: 5px;">
                                        <input type="text" class="form-control form-control-sm" placeholder="请输入筛选编码或名称" value="" id="gljSearchKeyword">
                                        <!--  <span class="input-group-btn"><button class="btn btn-secondary btn-sm" type="button" id="gljSearch"><i class="fa fa-search" aria-hidden="true"></i></button></span>-->
                                    </div>
                                </div>
                                <!-- <div class="form-group"><input id="searchGlj" type="text" class="form-control-sm" placeholder="查询工料机"></div>-->
                            </div>
                            <div class="modal-auto-height" style="overflow: hidden;height: 420px" id="gljLibSheet">

                            </div>
                        </div>
                </div>
                <div class="modal-footer" style="position: relative;">
                    <a href=<%- "/complementaryGlj/" + userID %> target="_blank" class="btn btn-primary" style="position: absolute; left: 20px">新增人材机</a>
                    <a href="javascript:void(0);" id="glj_selected_conf" class="btn btn-primary">确定</a>
                    <a href="javascript:void(0);" id="replace_next_btn" class="btn btn-primary">下一步</a>
                    <button type="button" id="componentsCacnel" class="btn btn-secondary" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

<!--弹出 批量替换下一步-->
<div class="modal fade" id="mreplace_next_div" data-backdrop="static" style="z-index: 1060">
    <input type="hidden" id =''>
    <div class="modal-dialog modal-lg"  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" style="padding: 0px">
                <div class="row" style="height:400px"><!--sjs id设置在这个div-->
                    <div class="col-12" style="overflow: hidden" id="scopeSpread"></div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" id="scope_position_confirm" data-dismiss="modal">确定</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

    <!--工料机类型选择-->
    <div class="modal fade" id="glj_class_div" data-backdrop="static">
        <div class="modal-dialog modal-m" role="document" id="class_con">
            <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>
                    <input type="hidden" name="" id="selected_class">
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-12">
                            <div  class="modal-auto-height" id="classTreeDiv" style="overflow: hidden">
                                <!--<div class="print-list">-->
                                <div style="width: 100%; height: 100%; overflow: auto">
                                    <ul id="classTree" class="ztree"></ul>
                                </div>
                                <!--</div>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" href="javascript:void(0);" id="class_selected_conf" class="btn btn-primary" disabled >确定</button>
                    <button type="button" id="classCacnel" class="btn btn-secondary" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
    <!--费率选择窗口-->
    <!--<div class="modal fade" id="fee_rate_tree" data-backdrop="static">
        <div class="modal-dialog modal-feeRate" role="document" id="fee_rate_dialog">
            <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">
                    <input type="hidden" id="edit_from">
                    <div class="row">
                        <div class="modal-auto-height col-12" style="overflow: hidden" id="fee_rate_sheet"></div>
                    </div>
                    <div class="modal-footer">
                        <a href="javascript:void(0);" id="fee_selected_conf" class="btn btn-primary">确定</a>
                        <button type="button" id="frCacnel" class="btn btn-secondary" data-dismiss="modal">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>-->
    <!--弹出 清单 计算基数 和 费率(%)-->
    <div class="modal fade" id="calcBaseFeeRate" data-backdrop="static">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div id="normalHeader" 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 id="mixedHeader" class="modal-header">
                    <ul class="nav nav-tabs mb-0" role="tablist" style="border-bottom: none; height: 10px">
                        <li class="nav-item">
                            <a class="nav-link active px-3" data-toggle="tab" href="#m-js" id="tabCalcBase" role="tab">计算基数</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link px-3" data-toggle="tab" href="#m-fl" id="tabFeeRate" role="tab">费率(%)</a>
                        </li>
                    </ul>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body pb-0">
                    <div class="tab-content">
                        <div class="tab-pane active" id="m-js" role="tabpanel">
                            <div class="form-group" id="expArea">
                                <input class="form-control" id="calcBaseExp" value="">
                                <p class="form-text">
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="addOpr">+</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="subOpr">-</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="mulOpr">*</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="divOpr">/</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="percentOpr">%</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="leftOpr">(</button>
                                    <button class="calcbase-btn btn btn-secondary btn-sm" id="rightOpr">)</button>
                                    <span id="errorInfo" style="margin-left:15px;"></span>
                                </p>
                            </div>
                            <div class="row" id="cbRowDiv">
                                <div class="col-3" id="cbClassList">
                                    <ul class="list-unstyled">
                                        <li class="py-1">
                                            <a id="cb_ALL" class="btn btn-outline-secondary btn-sm active" href="javascript:void(0)">所有</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_FBFX"  href="javascript:void(0);">分部分项</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_CSXM" href="javascript:void(0)">措施项目</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_QTXM" href="javascript:void(0)">其他项目</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_RCJ" href="javascript:void(0)">工料机</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_FBF" href="javascript:void(0)">分包费</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_GF" href="javascript:void(0)">规费</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_SJ" href="javascript:void(0)">税金</a>
                                        </li>
                                        <li class="py-1">
                                            <a id="cb_SQGCZJ" href="javascript:void(0)">税前工程造价</a>
                                        </li>
                                    </ul>
                                </div>
                                <div class=" modal-auto-height col-9" style="overflow: hidden; padding: 0; margin: 0; height: 360px;" id="billsBaseSpread">
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane" id="m-fl" role="tabpanel">
                            <input type="hidden" id="edit_from">
                        <!--    <div class="row" style="margin-bottom:0.5rem!important">
                                <div class="col-3">
                                    <div class="form-check form-control feerateInput" style="border:0px;padding-left:1.25rem">
                                        <label >
                                            <input class="form-check-input" id="manualFeeRate" type="checkbox">
                                            手工输入
                                        </label>
                                    </div>
                                </div>
                                <div class="col-6">
                                    <input class="form-control feerateInput" id="inputFeeRate" value="">
                                </div>
                            </div>-->
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="editFeeRateOptions" id="inputFeeRate" value="0">
                                <label class="form-check-label" for="inputFeeRate">自定义费率</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="editFeeRateOptions" id="selectStd" value="1">
                                <label class="form-check-label" for="selectStd">选择标准费率</label>
                            </div>
                            <div id="selfDiv">
                                <div class="form-group row">
                                    <label class="col-auto col-form-label col-form-label-sm">手工输入费率</label>
                                    <div class="col">
                                        <div class="input-group input-group-sm">
                                            <input id="customFeeRate" type="text" class="form-control"  placeholder="输入费率" style="width:100px">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-fixed-height" style="overflow: hidden" id="fee_rate_sheet">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" class="btn btn-primary" id="calcBaseFeeRateConf">确定</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--弹出 清单 计算基数-->
    <!--<div class="modal fade" id="qd-jsjs" data-backdrop="static">
        <div class="modal-dialog" role="document">
            <div class="modal-content" style="width:670px;">
                <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">
                    <div class="form-group">
                        <input class="form-control" id="calcBaseExp" value="">
                        <p class="form-text">
                            <button class="btn btn-secondary btn-sm" id="addOpr">+</button>
                            <button class="btn btn-secondary btn-sm" id="subOpr">-</button>
                            <button class="btn btn-secondary btn-sm" id="mulOpr">*</button>
                            <button class="btn btn-secondary btn-sm" id="divOpr">/</button>
                            <button class="btn btn-secondary btn-sm" id="leftOpr">(</button>
                            <button class="btn btn-secondary btn-sm" id="rightOpr">)</button>
                            <span id="errorInfo" style="margin-left:15px;"></span>
                        </p>
                    </div>
                    <div class="row" id="cbRowDiv">
                        <div class="col-3" id="cbClassList">
                            <ul class="list-unstyled">
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_ALL" class="btn btn-outline-secondary btn-sm active" href="javascript:void(0)">所有</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_FBFX"  href="javascript:void(0);">分部分项</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_CSXM" href="javascript:void(0)">措施项目</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_QTXM" href="javascript:void(0)">其他项目</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_RCJ" href="javascript:void(0)">人材机</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_FBF" href="javascript:void(0)">分包费</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_GF" href="javascript:void(0)">规费</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_SJ" href="javascript:void(0)">税金</a>
                                </li>
                                <li class="py-1" style="margin-left: 50px;">
                                    <a id="cb_SQGCZJ" href="javascript:void(0)">税前工程造价</a>
                                </li>
                            </ul>
                        </div>
                        <div class=" modal-auto-height col-9" style="overflow: hidden" id="billsBaseSpread">
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" class="btn btn-primary" id="calcBaseConf">确定</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>-->
    <!--弹出补充定额库-->
    <div class="modal fade" id="comple-ration" data-backdrop="static">
        <div class="modal-dialog modal-lg" 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-auto-height">
                    <table class="table table-hover table-bordered">
                        <thead><tr><th>定额库名称</th></tr></thead>
                        <tbody id="comple_ration_table">
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 是否删除所选行窗口-->
    <div class="modal fade" id="delete_row" 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">
                    <div class="form-group">
                        <div id="delete_showinfo">
                            <label>确认要删除当前选中行吗？</label>
                        </div>
                    </div>
                </div>
                <div class="modal-footer" style="justify-content: center">
                    <button type="button" class="btn btn-primary"  data-dismiss="modal" id="deleteY" >是</button>
                    <button type="button" class="btn btn-primary"  data-dismiss="modal" id="deleteN" style="display: none" >否</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal" id="deleteCancel">否</button><!--实际是取消-->
                </div>
            </div>
        </div>
    </div>

    <!--弹出 整理分部-->
    <div class="modal fade" id="zlfb" 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">
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox" id="bill_first" >
                        <label class="form-check-label">
                            需要专业分部标题
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox" checked id="bill_second" >
                        <label class="form-check-label">
                            需要章分部标题
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox" id="bill_third" >
                        <label class="form-check-label">
                            需要节分部标题
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox" checked disabled value="" >
                        <label class="form-check-label">
                            删除自定义分部标题
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox" checked id="bill_resort">
                        <label class="form-check-label">
                            清单排序
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input zlfb-check" type="checkbox"  id="bill_recode"  >
                        <label class="form-check-label">
                            清单重新编码
                        </label>
                    </div>
                    <div class="card mt-3">
                        <div class="card-body p-2">
                            <h5 class="card-title">操作说明</h5>
                            <p class="card-text">执行分部整理将对当前清单列表存在的清单按以上勾选项进行整理；</br>
                                勾选“需要专业分部标题”，表示分部整理时需要添加清单专业标题；</br>
                                勾选“需要章分部标题”，表示分部整理时需要添加章标题；</br>
                                勾选“需要节分部标题”，表示分部整理时需要添加节标题；</br>
                                勾选“删除自定义分部标题”，将首先删除已有自定义分部标题，然后再执行分部整理；</br>
                                勾选“清单排序”，表示分部整理后对每个分部下的清单进行排序；</br>
                                勾选“清单重新编码”，表示分部整理后对每个分部下的清单重新生成流水号；
                            </p>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" id="zlfb_confirm">确定</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 计取安装费用-->
    <div class="modal fade" id="calc_installation_fee" data-backdrop="static">
        <div class="modal-dialog modal-lg" style="max-width: 1100px" role="document">
            <div class="modal-content" style="width: 1100px">
                <div class="modal-header">
                    <h5 class="modal-title">统一设置计取安装费用</h5>
                    <button type="button" class="close" id="calc_installation_fee_close" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="row" style="height:250px"><!--sjs id设置在这个div-->
                        <div class=" col-8" style="overflow: hidden" id="feeItemSheet">
                        </div>
                        <div class=" col-4" style="overflow: hidden" id="install_setting">
                            <div style="height: 100px;" >
                                <!--<div class="setting_title">整个项目统一计取</div>-->
                                <fieldset class="form-group"  style="border:1px solid #b3b3b3;padding: 15px">
                                    <legend class="legend" >分项费用：</legend>
                                    <div class="form-check">
                                        <label class="form-check-label">
                                            <input class="form-check-input" name="install_setting_radios" id="all_project_calc" value="0" type="radio">
                                            整个项目统一计取
                                        </label>
                                    </div>
                                    <div class="form-check">
                                        <label class="form-check-label">
                                            <input class="form-check-input" name="install_setting_radios" id="FB_calc" value="1" type="radio">
                                            每个分部单独计取
                                        </label>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </div>
                    <br>
                    <div class="row" style="height:400px"><!--sjs id设置在这个div-->
                        <div class="col-12" style="overflow: hidden" id="feeDetailSheet"></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button  class="btn btn-primary" id="calc_installation_fee_confirm">确定</button>
                    <button type="button" class="btn btn-link" id="btn_reset_to_default">恢复默认值</button>
                  <!--  <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>-->
                </div>
            </div>
        </div>
    </div>

    <!--弹出 指定具体位置（计取安装费用）-->
    <div class="modal fade" id="calc_position" data-backdrop="static" style="z-index: 1060">
        <input type="hidden" id ='calc_position_from'>
        <div class="modal-dialog modal-lg"  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">
                    <div class="row mb-2">
                        <div class="col-8">
                            <div class="input-group input-group-sm">
                                <input type="text" class="form-control" placeholder="输入编码 或 名称 " id="filterKeyword" aria-describedby="basic-addon2">
                                <div class="input-group-append">
                                    <button class="btn btn-secondary" id="positionSheetFilter" type="button"><i class="fa fa-search"></i> 过滤</button>
                                    <button class="btn btn-outline-secondary" id="cancelFilter" type="button">取消过滤</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" style="height:400px"><!--sjs id设置在这个div-->
                        <div class="col-12" style="overflow: hidden" id="positionSpread"></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-primary" id="select_position_confirm">确定</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 查询安装费用-->
    <div class="modal fade" id="more_feeRule" data-backdrop="static">
        <div class="modal-dialog modal-lg" style="max-width: 950px" 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" id="more_feeRule_close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <input type="hidden" id="more_from">
                </div>
                <div class="modal-body">
                    <div class="modal-fixed-height" id="moreFeeRuleSpread"><!--sjs ID设置此div--->
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-primary" id="more_feeRule_confirm">确定</button>
                    <button type="button" class="btn btn-secondary" id="more_feeRule_concel" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 修改费用规则-->
    <div class="modal fade" id="modify_feeRule" data-backdrop="static">
        <div class="modal-dialog " style="max-width: 950px" 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" id="modify_feeRule_close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div style="height: 100px" id="modifyFeeRuleSpread"><!--sjs ID设置此div--->
                </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-primary" id="modify_feeRule_confirm">确定</button>
                    <button type="button" class="btn btn-secondary" id="modify_feeRule_concel" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 导入-->
    <div class="modal fade" id="import" data-backdrop="static">
        <div class="modal-dialog" style="z-index: 800" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">导入Excel清单</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="custom-file">
                        <input type="file" class="custom-file-input" id="customFile" lang="zh" accept=".xlsx">
                        <label class="custom-file-label" for="customFile" style="white-space: nowrap; overflow: hidden;">请选择上传文件</label>
                    </div>
                    <div class="alert alert-success mt-3" id="uploadAlert" role="alert" style="display: none;">
                        广东XXXX项目清单.xlsx 准备导入上传
                    </div>
                    <!--<button style="margin-top: 2px;" type="button" class="btn btn-primary" id="uploadExample">示例</button>-->
                   <!-- <div id="uploadSheets" style="display: none; border-top: 1px solid #CED4DA;border-left: 1px solid #CED4DA;border-radius: 5px;margin-top: 5px;"></div>-->
                    <div id="uploadSheetsHead" style="margin-left: 5px;margin-top: 5px; display: none;" class="input-group form-check"><label class="form-check-label" style="width:270px; overflow: hidden; font-weight: bold">
                        选择工作表...</label><label style="margin-left: 10px; font-weight: bold">导入到...</label>
                    </div>
                    <div id="uploadSheets"></div>
                </div>
                <div class="modal-footer">
                    <button style="margin-right: 215px;" type="button" class="btn btn-primary" id="uploadExample">下载示例</button>
                    <a href="javascript:void(0);" class="btn btn-primary" id="importConfirm">确定导入</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 导入Excel预算价-->
    <div class="modal fade" id="importPriceForm" data-backdrop="static">
        <div class="modal-dialog" style="z-index: 800" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">导入Excel预算价</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="custom-file">
                        <input type="file" class="custom-file-input" id="customPriceFile" lang="zh" accept=".xlsx">
                        <label class="custom-file-label" for="customPriceFile" style="white-space: nowrap; overflow: hidden;">请选择.xlsx文件</label>
                    </div>
                    <div class="alert alert-success mt-3" id="showAlert" role="alert" style="display: none;">提示</div>
                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" class="btn btn-primary" id="importPriceBtn">确定导入</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 粘贴位置选择-->
    <div class="modal fade" id="pastePosition" 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">
                    <div class="form-group">
                        <label >插入为选定节点的：</label>
                        <div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="pastePositionRadio" id="next_node" value="next">
                                <label class="form-check-label" for="next_node">后项</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="pastePositionRadio" id="pre_node" value="pre">
                                <label class="form-check-label" for="pre_node">前项</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="pastePositionRadio" id="sub_node" value="sub">
                                <label class="form-check-label" for="sub_node">子项</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer" style="justify-content: center">
                    <button class="btn btn-primary" id="paste_confirm">确定</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

    <!--弹出 编辑工程量表达式-->
    <div class="modal fade" id="quantityEXPEdit" data-backdrop="static">
        <div class="modal-dialog" role="document" >
            <div class="modal-content" style="width:500px">
                <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">
                    <div class="form-group">
                        <input class="form-control" id="quantityEXPValue" value="">
                        <p class="form-text" id = "operation_p">
                            <button class="btn btn-secondary btn-sm" >+</button>
                            <button class="btn btn-secondary btn-sm" >-</button>
                            <button class="btn btn-secondary btn-sm" >*</button>
                            <button class="btn btn-secondary btn-sm" >/</button>
                            <button class="btn btn-secondary btn-sm" >(</button>
                            <button class="btn btn-secondary btn-sm" >)</button>
                            <button class="btn btn-secondary btn-sm">%</button>
                        </p>
                    </div>
                    <div class="row" >
                        <div class="modal-quantity-edit-height col-12" style="overflow: hidden" id="quantityEditSpread">
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0);" class="btn btn-primary" id="quantityEditConf">确定</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--清单问号弹出 补注弹窗-->
    <div class="modal fade" id="billsQuestionModal" data-backdrop="static">
        <div class="modal-dialog modal-lg" 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">
                    <div class="modal-auto-height" id="billsQuestionContent">
                        <h3>标题1</h3>
                        <h4>标题2</h4>
                        <h5>标题3</h5>
                        <p>这是一行文本</p>
                        <p>这是一行<b>文本</b></p>
                        <p class="text-indent">这是一行带缩进的文本</p>
                        <table class="table table-sm table-bordered">
                            <tr><th>表头1</th><th>表头2</th><th>表头3</th></tr>
                            <tr><td>内容1</td><td>内容2</td><td>内容3</td></tr>
                            <tr><td>内容4</td><td>内容5</td><td>内容6</td></tr>
                        </table>
                    </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="questionModal" data-backdrop="static">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-body">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                    <ul class="nav nav-tabs mb-3" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link active px-3" data-toggle="tab" href="#m-explanation" id="questionTab1" role="tab">说明</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="m-explanation" role="tabpanel">
                            <div class="modal-auto-height" id="questionContent1">
                                <h3>标题1</h3>
                                <h4>标题2</h4>
                                <h5>标题3</h5>
                                <p>这是一行文本</p>
                                <p>这是一行<b>文本</b></p>
                                <p class="text-indent">这是一行带缩进的文本</p>
                                <table class="table table-sm table-bordered">
                                    <tr><th>表头1</th><th>表头2</th><th>表头3</th></tr>
                                    <tr><td>内容1</td><td>内容2</td><td>内容3</td></tr>
                                    <tr><td>内容4</td><td>内容5</td><td>内容6</td></tr>
                                </table>
                            </div>
                        </div>
                        <div class="tab-pane" id="m-ruleText" role="tabpanel">
                            <div class="modal-auto-height" id="questionContent2">
                                <h3>标题x1</h3>
                                <h4>标题2</h4>
                                <h5>标题3</h5>
                                <p>这是一行文本</p>
                                <p>这是一行<b>文本</b></p>
                                <p class="text-indent">这是一行带缩进的文本</p>
                                <table class="table table-sm table-bordered">
                                    <tr><th>表头1</th><th>表头2</th><th>表头3</th></tr>
                                    <tr><td>内容1</td><td>内容2</td><td>内容3</td></tr>
                                    <tr><td>内容4</td><td>内容5</td><td>内容6</td></tr>
                                </table>
                            </div>
                        </div>
                    </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="div_createBlocks" 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">
                    <div class="form-group">
                        <label>模板分类</label>
                        <select class="form-control" id="select_block_category"><option>1.分类1</option><option>2.分类2</option></select>
                    </div>
                    <div class="form-group">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" name="inlineRadioOptions" id="ckb_block_exist_cover" value="option1">
                            <label class="form-check-label" for="ckb_block_exist_cover">当存在同名模板时覆盖（不勾选则跳过，不生成模板）</label>
                        </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" data-dismiss="modal" id="btn_block_createBlocks">确定生成</button>
                </div>
            </div>
        </div>
    </div>
    <!--弹出 匹配原则-->
    <div class="modal fade" id="div_cloneOptions" data-backdrop="static">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="clone_option_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">
                    <div class="form-group">
                        <label>选择匹配模式：</label>
                        <div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" name="inlineRadioOptions1" id="clone_option_code" value="option1" checked>
                                <label class="form-check-label" for="clone_option_code">编号</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" name="inlineRadioOptions2" id="clone_option_name" value="option2">
                                <label class="form-check-label" for="clone_option_name">名称</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" name="inlineRadioOptions3" id="clone_option_unit" value="option3" checked>
                                <label class="form-check-label" for="clone_option_unit">单位</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">插入为选定节点的：</label>
                        <div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="rationQuantity" id="clone_option_quantity" value="option1" checked>
                                <label class="form-check-label" for="clone_option_quantity">根据分解系数计算定额工程量</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="rationQuantity" id="clone_option_zeroQuantity" value="option2">
                                <label class="form-check-label" for="clone_option_zeroQuantity">分解系数和定额工程量为零</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">清单下有定额时：</label>
                        <div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="rationCover" id="clone_option_noCover" value="option3" checked>
                                <label class="form-check-label" for="clone_option_noCover">不覆盖，在其后追加</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="rationCover" id="clone_option_cover" value="option2">
                                <label class="form-check-label" for="clone_option_cover">覆盖</label>
                            </div>
                        </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" data-dismiss="modal" id="btn_block_clone_ok">确定</button>
                </div>
            </div>
        </div>
    </div>
    <!--进度条-->
    <div class="modal fade" id="progress" data-backdrop="static" style="z-index: 1080;">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 id="progress-title" class="modal-title"></h5>
                </div>
                <div class="modal-body">
                    <h5 id="progress-content" class="my-3"></h5>
                    <div class="progress mb-3">
                        <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0"
                            aria-valuemax="100">
                            <div class="progress-move progress-bar-striped"></div>
                            <div class="progress-cover" id="progressCover"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--弹出 数据接口导出-->
    <div class="modal fade" id="interface-export-modal" 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">
                    <div class="form-group row">
                        <label class="mb-0 pr-0 col-2 col-form-label col-form-label-sm">地区选择</label>
                        <div class="col-6 row">
                            <div class="col-6 pr-0">
                                <select class="form-control  form-control-sm" id="export-parent-area">
                                </select>
                            </div>
                            <div class="col-6 pr-0">
                                <select class="form-control  form-control-sm" id="export-sub-area">
                                </select>
                            </div>
                        </div>
                    </div>
                    <!--招标-->
                    <% if (boqType == 1) { %>
                    <div class="form-group">
                        <label class="mb-0">招标接口文件导出</label>
                        <small class="form-text text-muted">招标接口文件由以下2个文件组成，其内容必须保持一致，因此建议一次性全部导出。</small>
                    </div>
                    <div class="form-group">
                        <div class="form-check ml-4">
                            <input class="form-check-input" type="checkbox" value="1" id="ex-bid" checked>
                            <label class="form-check-label" for="ex-bid">
                                招标工程量清单
                            </label>
                            <small class="form-text text-muted">招标工程量清单数据文件，用于投标人投标报价</small>
                        </div>
                        <div class="form-check ml-4">
                            <input class="form-check-input" type="checkbox" value="3" id="ex-control">
                            <label class="form-check-label" for="ex-control">
                                招标控制价
                            </label>
                            <small class="form-text text-muted">包含完整组价数据的招标控制价文件</small>
                        </div>
                    </div>
                    <% } else { %>
                    <!--投标-->
                    <div class="form-group">
                        <label class="mb-0">投标接口文件导出</label>
                    </div>
                    <div class="form-group">
                        <div class="form-check ml-4">
                            <input class="form-check-input" type="checkbox" value="2" id="ex-tender" checked>
                            <label class="form-check-label" for="ex-tender">
                                投标文件
                            </label>
                            <small class="form-text text-muted">投标工程数据文件</small>
                        </div>
                    </div>
                    <% } %>
                </div>
                <div class="modal-footer">
                    <a id="interface-export-confirm" href="javascript:void(0);" class="btn btn-primary">确定导出</a>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <%include ../../../common/components/share/index.html %>
    <img src="/web/dest/css/img/folder_open.png" id="folder_open_pic" style="display: none">
    <img src="/web/dest/css/img/folder_close.png" id="folder_close_pic" style="display: none">
    <img src="/web/dest/css/img/project.png" id="proj_pic" style="display: none">
    <img src="/web/dest/css/img/engineering.png" id="eng_pic" style="display: none">
    <img src="/web/dest/css/img/tender.png" id="tender_pic" style="display: none">

    <img src="/web/dest/css/img/blockLib.png" id="blockLib_pic" style="display: none">
    <img src="/web/dest/css/img/folder_open.png" id="folder_pic" style="display: none">
    <img src="/web/dest/css/img/tender.png" id="block_pic" style="display: none">

        <!-- JS. -->
    <script src = "/lib/spreadjs/sheets/gc.spread.sheets.all.11.1.2.min.js"></script>
    <script src="/lib/spreadjs/sheets/interop/gc.spread.excelio.11.1.2.min.js"></script>
    <script>GC.Spread.Sheets.LicenseKey =  '<%- LicenseKey %>';</script>
    <script type="text/javascript" src="/lib/jquery-ui/jquery-ui-datepickerCN.js"></script>
    <script type="text/javascript" src="/lib/jquery-contextmenu/jquery.contextMenu.js"></script>
    <script type="text/javascript" src="/lib/jquery-contextmenu/jquery.ui.position.js"></script>
    <script src="/lib/spreadjs/views/gc.spread.views.dataview.10.0.0.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/lib/ztree/jquery.ztree.core.js"></script>
    <script type="text/javascript" src="/lib/ztree/jquery.ztree.excheck.js"></script>
    <!--<script src="/lib/spreadjs/views/common/gc.spread.common.10.0.0.min.js" type="text/javascript"></script>-->
    <script src="/lib/spreadjs/views/plugins/gc.spread.views.gridlayout.10.0.0.min.js" type="text/javascript"></script>
    <script src="/lib/js-xlsx/xlsx.core.min.js"></script>
    <script src="/lib/lz-string/lz-string.min.js"></script>
    <script src="/lib/fileSaver/FileSaver.min.js"></script>
    <script type="text/javascript" src="/lib/jspdf/jspdf.min.js"></script>
    <script src="/lib/md5/md5.min.js"></script>
    <!-- inject:js -->
    <!--<script type="text/javascript" src="/test/tmp_data/test_ration_calc/ration_calc_base.js"></script>-->
    <script src="/lib/pinyinjs/pinyin_dict_firstletter.js"></script>
    <script src="/lib/pinyinjs/pinyinUtil.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/main_consts.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/feeRateConsts.js"></script>
    <script type="text/javascript" src="/public/web/common_util.js"></script>
    <script type="text/javascript" src="/web/building_saas/glj/js/project_glj.js"></script>
    <script type="text/javascript" src="/web/building_saas/glj/js/composition.js"></script>
    <script type="text/javascript" src="/web/building_saas/glj/js/common_spread.js"></script>
    <script type="text/javascript" src="/web/building_saas/glj/js/composition_spread.js"></script>
    <script type="text/javascript" src="/web/building_saas/glj/js/project_glj_spread.js"></script>
    <script src="/web/building_saas/glj/js/socket.io.slim.js"></script>
    <script src="/public/web/socket/connection.js"></script>
    <script src="/public/web/uuid.js"></script>
    <script type="text/javascript" src="/public/web/sheet/sheet_common.js"></script>
    <!--expression calculate-->
    <script src="/lib/JSExpressionEval_src/Date.js"></script>
    <script src="/lib/JSExpressionEval_src/Stack.js"></script>
    <script src="/lib/JSExpressionEval_src/Tokanizer.js"></script>
    <script src="/lib/JSExpressionEval_src/Evaluator.js"></script>
    <!--end expression calculate-->
    <!--<script type="text/javascript" src="/lib/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/lib/jquery-ui/jquery-ui-datepickerCN.js"></script>
    <script type="text/javascript" src="/lib/jquery-contextmenu/jquery.contextMenu.js"></script>
    <script type="text/javascript" src="/lib/jquery-contextmenu/jquery.ui.position.js"></script>-->
        <!--<script type="text/javascript" src="/lib/lodash/lodash.js"></script>-->
    <!-- Common -->
    <script type="text/javascript" src="/public/web/common_ajax.js"></script>
    <script type="text/javascript" src="/public/web/url_util.js"></script>
    <script type="text/javascript" src="/public/web/number_util.js"></script>
    <script type="text/javascript" src="/public/web/slideResize.js"></script>
    <script type="text/javascript" src="/public/web/sm3.js"></script>
    <!-- JS. -->
    <!--<script src="/lib/popper/popper.min.js"></script>
    <script src="/lib/bootstrap/bootstrap.min.js"></script>-->
    <script src="/web/common/components/share/index.js"></script>
    <!--报表 zTree -->

    <!-- SpreadJs -->

    <!--<script src="/lib/spreadjs/views/locale/gc.spread.views.dataview.locale.zh-CN.10.0.0.min.js" type="text/javascript"></script>-->
    <!-- Model -->
    <script type="text/javascript" src="/web/building_saas/main/js/models/project.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/bills.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/glj.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/project_glj.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/composition.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/fee_rate.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration_glj.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration_coe.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration_ass.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration_installation.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/ration_template.js"></script>
    <!--<script type="text/javascript" src="/web/building_saas/main/js/models/volume_price.js"></script>-->
    <script type="text/javascript" src="/web/building_saas/main/js/models/labour_coe.js"></script>
    <script type="text/javascript" src="/public/calculate_util.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/calc_data_tool.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/calc_program.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/calc_base.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/installation_fee.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/calc_program_manage.js"></script>
    <script type="text/javascript" src="/public/web/id_tree.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/cache_tree.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/calc/calc_fees.js"></script>
    <!--<script type="text/javascript" src="/web/building_saas/main/js/calc/ration_calc.js"></script>-->
    <!--<script type="text/javascript" src="/web/building_saas/main/js/calc/bills_calc.js"></script>-->
    <!--<script type="text/javascript" src="/public/calc_util.js"></script>-->
    <!-- Controller -->
    <script type="text/javascript" src="/public/web/tree_sheet/tree_sheet_controller.js"></script>
    <script type="text/javascript" src="/public/web/tree_sheet/tree_sheet_helper.js"></script>
    <script type="text/javascript" src="/public/web/sheet/sheet_data_helper.js"></script>
    <!-- view -->
    <script type="text/javascript" src="/web/building_saas/main/js/views/glj_col.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/main_tree_col.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_info.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/fee_rate_view.js"></script>
    <script type="text/javascript" src='/web/building_saas/main/js/views/project_glj_view.js'></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/options_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_bills_quantity_decimal.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_decimal_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_basicInfo.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_projFeature.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_indicativeInfo.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_display_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/main_ajax.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/main.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/controllers/project_controller.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/controllers/block_controller.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/controllers/material_controller.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/side_tools.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/character_content_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/std_billsGuidance_lib.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/std_bills_unit_price_feature.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/std_bills_lib.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/std_ration_lib.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/block_lib.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/models/quantity_detail.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/glj_view_contextMenu.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/calc_program_view.js"></script>
    <script type="text/javascript" src='/web/building_saas/main/js/views/confirm_modal.js'></script>
    <script type="text/javascript" src='/web/building_saas/main/js/views/zlfb_view.js'></script>
    <script type="text/javascript" src='/web/building_saas/main/js/views/installation_fee_view.js'></script>
    <script type="text/javascript" src='/web/building_saas/main/js/views/config_material_view.js'></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/importBills.js"></script>
    <!--报表-->
    <script type="text/javascript" src="/public/web/rpt_tpl_def.js"></script>
    <script type="text/javascript" src="/public/web/treeDataHelper.js"></script>
    <script type="text/javascript" src="/public/web/string_util_light.js"></script>
    <script type="text/javascript" src="/public/web/ztree_common.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/rpt_main.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/rpt_cfg_const.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/jpc_output_value_define.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/jpc_output.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/rpt_print.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/glj_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/zmhs_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/mbzm_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/tender_price_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/billsElf.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/sub_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/quantity_edit_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/sub_fee_rate_views.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/calc_base_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/project_property_labour_coe_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/locate_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/complementary_ration_lib/js/main.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/material_calc_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/electrovalence_view.js"></script>
    <script type="text/javascript" src="/web/building_saas/main/js/views/divide_view.js"></script>
    <script type="text/javascript" src="/public/web/storageUtil.js"></script>
    <script type="text/javascript" src="/web/building_saas/report/js/rpt_jspdf.js"></script>
    <script src="/web/building_saas/standard_interface/config.js"></script>
    <script src="/web/building_saas/standard_interface/index.js"></script>
    <script src="/web/building_saas/standard_interface/export/base.js"></script>
    <script src="/web/building_saas/standard_interface/export/view.js"></script>
    
    <!-- endinject -->

    <% if (overWriteUrl != undefined) { %>
         <script type="text/javascript" src="<%= overWriteUrl%>"></script>
    <% } %>


        <script type="text/javascript">
            projectGljObject.initFilterTypeList();
            optionsOprObj.getOptions();
            projectObj.checkMainSpread();
            projectObj.loadProjectData();
           // autoFlashHeight();
        </script>

        <SCRIPT type="text/javascript">
            let clearFlag = false;
            function onCheck(e, treeId, treeNode) {
                count();
                if (clearFlag) {
                    clearCheckedOldNodes();
                }
            }
            function clearCheckedOldNodes() {
                let zTree = $.fn.zTree.getZTreeObj("treeDemo"),
                    nodes = zTree.getChangeCheckedNodes();
                for (let i=0, l=nodes.length; i<l; i++) {
                    nodes[i].checkedOld = nodes[i].checked;
                }
            }
            function count() {
                let zTree = $.fn.zTree.getZTreeObj("treeDemo"),
                    checkCount = zTree.getCheckedNodes(true).length;
                $("#checkCount").text(checkCount);

            }
         /*   $(document).ready(function(){
                document.addEventListener('visibilitychange', function() {
                    if(document.hidden){ //页面不可见状态
                        //document.title = '你离开了';
                    }else{ //页面可见状态
                        //document.title = '你回来了';
                        hideTooltip();
                    }
                });
            });*/
            window.onfocus  = function () {
                hideTooltip();
            };
            function hideTooltip(){
                setTimeout(function(){
                    $('[data-toggle="tooltip"]').tooltip('hide'); //tooltip 的bug点击带tooltip的钮按，页面再切换回来后，tooltip又自动显示
                },10);
            }

        </SCRIPT>
    <div id="dropdown" style="z-index: 9999; position: fixed ! important;background: white;display:none"> <!--;left:170px;top:790px -->
        <!--<form><table border='1px' bordercolor='#CCCCCC' cellspacing='0px' style='border-collapse:collapse;font-size: 10px;><tr style='height:10px'><td style='width: 50px'>定额：</td><td style='width: 70px' align='right'><input type='text'value='1' name=0 style='width:30px;border:0;height:14px' align='right' id=coe_ration onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr><tr style='height:10px'><td style='width: 50px'>人工：</td><td style='width: 70px' align='right'><input type='text'value='1' name=1 style='width:30px;border:0;height:14px' align='right' id=manual onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr><tr style='height:10px'><td style='width: 50px'>材料：</td><td style='width: 70px' align='right'><input type='text'value='1' name=2 style='width:30px;border:0;height:14px' align='right' id=material onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr><tr style='height:10px'><td style='width: 50px'>机械：</td><td style='width: 70px' align='right'><input type='text'value='1' name=3 style='width:30px;border:0;height:14px' align='right' id=manchine onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr><tr style='height:10px'><td style='width: 50px'>主材：</td><td style='width: 70px' align='right'><input type='text'value='1' name=4 style='width:30px;border:0;height:14px' align='right' id=main onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr><tr style='height:10px'><td style='width: 50px'>设备：</td><td style='width: 70px' align='right'><input type='text'value='1' name=5 style='width:30px;border:0;height:14px' align='right' id=equipment onchange='gljOprObj.onInputChange(this.id,this.name)'></td></tr></table></form>-->
    </div>
</body>
</html>
