<!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>项目管理-<%= title%></title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.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/spreadjs/sheets/css/gc.spread.sheets.sc.css">
    <!--zTree-->
    <link rel="stylesheet" href="/lib/ztree/css/zTreeStyle.css" type="text/css">
    <link rel="stylesheet" href="/lib/jquery-contextmenu/jquery.contextMenu.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">
    <script>
        // 这里的变量供页面调用
        var userAccount = '<%- userAccount %>';
        var userID = '<%- userID %>';
        let isFirst = JSON.parse('<%- isFirst %>');
        let isShow = JSON.parse('<%- isShow %>');
        let unreadShareList = JSON.parse('<%- unreadShareList %>');
        const cloudTitle = '<%- cloudTitle %>';
        const isFree = JSON.parse('<%- isFree %>');
        function _showFreeUserInfo() {
            const showFreeUserInfo = `尊敬的用户：<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;养护云计价学习版，将于2022年5月8日停用。请在之前升级专业版，以便继续使用。如有疑问，请联系：<br>纵横全国服务热线：0756-3850888，企业QQ：800003850`;
            if (isFree && cloudTitle !== '纵横公路云造价') {
                setTimeout(()=> {
                    hintBox.infoBox('温馨提示', showFreeUserInfo);
                }, 100);
            }
        }
    </script>
    <style type="text/css">
        .hidden-area{
            display: none;
        }
        #summary-engineering,#summary-project{
            display: none;
        }
        #shareToInfo {
            display:block;
            height:200px;
            overflow-y:auto;
            -webkit-overflow-scrolling: touch;
        }
    </style>
</head>

<body oncontextmenu="return false;">  <!--屏蔽input鼠标右键-->
<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/refresh.png" id="refresh_pic" style="display: none">
<img src="/web/dest/css/img/share.png" id="share_pic" style="display: none">
<img src="/web/dest/css/img/copy.png" id="copy_pic" style="display: none">
<img src="/web/dest/css/img/edit.png" id="edit_pic" style="display: none">
<div class="header">
    <input type="hidden" id="projectTitle" value="<%= title%>">
    <div class="top-msg clearfix">
        <div class="alert alert-warning mb-0 py-0" role="alert" style="display: none;">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <strong>注意！</strong> 这是一条消息通知 <a href="#">链接</a>
        </div>
    </div>
    <%include ../../../common/html/header.html %>
</div>
    <div class="main">
        <a id="autoOpenTender" style="display: none;"></a>
        <div class="poj-manage container-fluid p-0">
            <div class="pm-side">
                <div class="poj-cate">
                    <div class="dropdown" style="height: 38px">
                        <!--<a class="btn dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-search"></i>
                        </a>
                        <div class="dropdown-menu p-3" aria-labelledby="dropdownMenuButton">
                            <div class="form-group m-0">
                                <input type="text" class="form-control form-control-sm" placeholder="搜索所有工程"style="width:300px">
                            </div>
                        </div>-->
                    </div>
                    <ul class="nav nav-pills flex-column" id="sideTab">
                        <li class="nav-item" data-original-title="项目管理" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link active" href="#pm_all" role="tab" id="tab_pm_all" data-toggle="tab"><i class="fa fa-bars"></i></a>
                        </li>
                        <!--<li class="nav-item" data-original-title="最近使用" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link" href="javascript:void(0);"><i class="fa fa-bookmark"></i></a>
                        </li>-->
                        <li class="nav-item" data-original-title="分享" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link" href="#pm_share" id="tab_pm_share" data-toggle="tab"><i class="fa fa-share-alt"></i></a>
                            <% if (JSON.parse(unreadShareList).length > 0) { %>
                                <span class="badge badge-danger" id="unread-share-count"><%- JSON.parse(unreadShareList).length %></span>
                            <% } else {%>
                                <span class="badge badge-danger hide-area" id="unread-share-count"><%- JSON.parse(unreadShareList).length %></span>
                            <% } %>
                        </li>
                        <!--<li class="nav-item" data-original-title="协同工作" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link" href="javascript:void(0);"><i class="fa fa-users"></i></a>
                        </li>
                        <li class="nav-item" data-original-title="归档" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link" href="javascript:void(0);"><i class="fa fa-book"></i></a>
                        </li>-->
                        <li class="nav-item" data-original-title="回收站" data-placement="right" data-toggle="tooltip">
                            <a class="nav-link" href="#pm_gc" id="tab_pm_gc" data-toggle="tab"><i class="fa fa-trash"></i></a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="pm-content">
                <div class="tab-content">
                    <div class="tab-pane active" id="pm_all" role="tabpanel">
                        <div class="toolsbar">
                            <legend class="m-0 px-4">项目管理
                                <!--<div class="tools-btn btn-group align-top px-3 mt-2">
                                    &lt;!&ndash;<a id="startA" href="javascript:void(0);" data-toggle="modal" data-target="#addPoj3" class="btn btn-sm"><i class="fa fa-sticky-note-o"></i> 新建</a>&ndash;&gt;
                                    <div class="btn btn-sm">
                                        <a class="dropdown-toggle" id="addMenuBtn" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-plus"></i> 新建</a>
                                        <div class="dropdown-menu dropright" id="addMenu">
                                            <a href="javascript:;" id="addFolderSub" class="dropdown-item" data-toggle="modal" data-target="#add-folder-dialog"><i class="fa fa-folder-open-o" aria-hidden="true"></i> 新建文件夹</a>
                                            <a href="javascript:;" id="addProjectSub" class="dropdown-item" data-toggle="modal" data-target="#add-project-dialog"><i class="fa fa-cubes" aria-hidden="true"></i> 新建建设项目</a>
                                            <a href="javascript:;" id="addTenderSub" class="dropdown-item" data-toggle="modal" data-target="#add-tender-dialog"><i class="fa fa fa-sticky-note-o" aria-hidden="true"></i> 新建分段</a>
                                        </div>
                                    </div>
                                    <a id="upLevel" href="javascript:void(0);" class="btn btn-light btn-sm disabled" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
                                    <a id="downLevel" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
                                    <a id="upMove" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
                                    <a id="downMove" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
                                </div>-->
                                <div class="tools-btn btn-group align-top btn-group-sm my-1 ml-3">
                                    <a id="addMenuBtn" href="javascript:;" data-toggle="modal" data-target="#add-tender-dialog" class="btn btn-primary px-5 border-radius"><i class="fa fa-plus"></i> 新建</a>
                                    <!--<div class="dropdown-menu dropright" id="addMenu">
                                        <a href="javascript:;" id="addFolderSub" class="dropdown-item" data-toggle="modal" data-target="#add-folder-dialog"><i class="pm-i fa fa-folder-open-o" aria-hidden="true"></i> 新建文件夹</a>
                                        <a href="javascript:;" id="addProjectSub" class="dropdown-item" data-toggle="modal" data-target="#add-project-dialog"><i class="pm-i fa fa-cubes" aria-hidden="true"></i> 新建建设项目</a>
                                        <a href="javascript:;" id="addTenderSub" class="dropdown-item" data-toggle="modal" data-target="#add-tender-dialog"><i class="pm-i fa fa-sticky-note-o" aria-hidden="true"></i> 新建单位工程</a>
                                    </div>-->
                                </div>
                                <div class="tools-btn btn-group align-top px-3 my-1">
                                    <a id="upLevel" href="javascript:void(0);" class="btn btn-light btn-sm disabled" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
                                    <a id="downLevel" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
                                    <a id="upMove" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
                                    <a id="downMove" href="javascript:void(0);" class="btn btn-light btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
                                </div>
                            </legend>
                        </div>
                        <div class="poj-list" id="projSpread">
                        </div>
                    </div>
                    <div class="tab-pane" role="tabpanel" id="pm_gc">
                        <%include project-management-Recycle.html %>
                    </div>
                    <div class="tab-pane" role="tabpanel" id="pm_share">
                        <%include project-management-share.html %>
                    </div>
                </div>
            </div>
    </div>
    <div class="slide-sidebar">
        <div class="side-content">
            <!--建设项目汇总-->
            <div class="p-3" id="summary-project">
                <legend>单价文件</legend>
                <table class="table table-bordered table-hover table-sm table-sc" id="summary-project-unit-price-table">
                    <thead>
                        <th style="width: 25px;" class="text-center"></th>
                        <th style="width: 330px;" class="text-center">名称</th>
                        <th style="width: 55px;" class="text-center">使用</th>
                    </thead>
                    <tbody>
                    </tbody>
                </table>


                <legend>费率文件</legend>
                <table class="table table-bordered table-hover table-sm table-sc" id="summary-project-fee-table">
                    <thead>
                        <th style="width: 25px;" class="text-center"></th>
                        <th style="width: 330px;" class="text-center">名称</th>
                        <th style="width: 55px;" class="text-center">使用</th>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
            <!--单项工程汇总-->
            <div class="p-3" id="summary-engineering">
                <legend><span id="summary-engineering-name">6号生产车间</span> 汇总</legend>
                <table class="table table-bordered table-hover table-sm" id="summary-engineering-table">
                    <thead>
                    <tr>
                        <th rowspan="2" style="text-align:center;vertical-align:middle">序号</th>
                        <th rowspan="2" style="text-align:center;vertical-align:middle">单位工程名称</th>
                        <th rowspan="2" style="text-align:center;vertical-align:middle">金额（元）</th>
                        <th colspan="3" style="text-align:center;vertical-align:middle">其中</th>
                    </tr>
                    <tr>
                        <th style="text-align:center;vertical-align:middle;">暂估价（元）</th>
                        <th style="text-align:center;vertical-align:middle;">安全文明施工费（元）</th>
                        <th style="text-align:center;vertical-align:middle;">规费（元）</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>1</td>
                        <td>1</td>
                        <td>建筑工程3</td>
                        <td>12345.67</td>
                        <td>5436.87</td>
                        <td>54345.68</td>
                        <td>514.54</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>2</td>
                        <td>建筑工程4</td>
                        <td>12345.67</td>
                        <td>5436.87</td>
                        <td>54345.68</td>
                        <td>514.54</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>3</td>
                        <td>建筑工程5</td>
                        <td> </td>
                        <td> </td>
                        <td> </td>
                        <td> </td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td> </td>
                        <td>合计</td>
                        <td>110789.36</td>
                        <td>5971.32</td>
                        <td>58900.46</td>
                        <td>1049.41

                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<!--弹出新建建设项目-->
<div class="modal fade" id="add-project-dialog" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><i class="fa fa-cubes"></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">
                <form>
                    <div class="form-group">
                        <label>建设项目</label>
                        <input type="text" class="form-control" placeholder="输入建设项目名称" id="project-name">
                        <span class="form-text text-danger" id="project-name-info" style="display: none;">已存在 “建筑工程1”</span>
                    </div>
                    <div id="project-reserve"></div>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" id="addProjOk">确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="add-tender-dialog" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"> <i class="fa fa-sticky-note-o"></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">
                <form>
                    <div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">建设项目</label>
                        <div class="col">
                            <div class="input-group input-group-sm">
                                <input type="text" class="form-control" aria-label="Text input with dropdown button" id="poj-name" autocomplete="off">
                                <div class="input-group-append">
                                    <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
                                    <div class="dropdown-menu dropdown-menu-right w-100" id="poj-name-list">
                                        <a class="dropdown-item" href="#">Action</a>
                                        <a class="dropdown-item" href="#">Another action</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <span class="form-text text-info" id="poj-name-info" style="display: none;"></span>
                    <div id="tender-reserve"></div>
                    <!--<div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">单项工程</label>
                        <div class="col">
                            <div class="input-group input-group-sm">
                                <input type="text" class="form-control" aria-label="Text input with dropdown button" id="eng-name" autocomplete="off">
                                <div class="input-group-append">
                                    <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
                                    <div class="dropdown-menu dropdown-menu-right w-100" id="eng-name-list">
                                        <a class="dropdown-item" href="#">Action</a>
                                        <a class="dropdown-item" href="#">Another action</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>-->
                    <span class="form-text text-info" id="eng-name-info" style="display: none;">新建 “左2号生产车间2”</span>
                    <div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;段</label>
                        <div class="col">
                            <input type="text" class="form-control form-control-sm" placeholder="输入分段名称" id="tender-name" autocomplete="off">
                        </div>
                    </div>
                    <span class="form-text text-danger" id="tender-name-info" style="display: none;">已存在 “建筑工程1”</span>
                    <div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">单价文件</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="unit-price">
                                <option value="">新建单价文件</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">费率文件</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="tender-fee-rate">
                                <option value="">新建费率文件</option>
                            </select>
                        </div>
                    </div>
                    <!--养护中计价方式为项目类别，预算用清单计价原字段，工程量清单用定额计价原字段-->
                    <div class="form-group row" id="val-type-group">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">项目类别</label>
                        <div class="col">
                            <% if (compilationName.includes('公路造价')) { %>
                            <div class="custom-control custom-radio custom-control-inline">
                                <input type="radio" value="suggestion" checked id="radioSuggestion" name="valuation_type" class="custom-control-input">
                                <label class="custom-control-label" for="radioSuggestion">建议估算</label>
                            </div>
                            <div class="custom-control custom-radio custom-control-inline">
                                <input type="radio" value="feasibility" id="radioFeasibility" name="valuation_type" class="custom-control-input">
                                <label class="custom-control-label" for="radioFeasibility">可行性估算</label>
                            </div>
                            <div class="custom-control custom-radio custom-control-inline">
                                <input type="radio" value="rough" id="radioRough" name="valuation_type" class="custom-control-input">
                                <label class="custom-control-label" for="radioRough">概算</label>
                            </div>
                            <% } %>
                            <% if (compilationName.includes('内蒙古高速公路日常养护估算(2021)')) { %>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" value="estimation" id="radioEstimation" name="valuation_type" class="custom-control-input">
                                    <label class="custom-control-label" checked for="radioEstimation">估算</label>
                                </div>
                            <% } else if (compilationName.includes('四川养护(2013)') || compilationName.includes('部颁2018计价标准')) { %>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" value="bill_budget" id="radioRation" name="valuation_type" class="custom-control-input">
                                    <label class="custom-control-label" checked for="radioRation">清单预算</label>
                                </div>
                            <% } else {%>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" value="bill" id="radioBill" name="valuation_type" class="custom-control-input">
                                    <label class="custom-control-label" <%= (compilationName.includes('公路造价')) ? '' : 'checked' %> for="radioBill">预算</label>
                                </div>
                                <div class="custom-control custom-radio custom-control-inline" <% if (!compilationName.includes("广东农村养护(2021)")) { %> style="display:none" <% } %>>
                                    <input type="radio" value="ration" id="radioRation" name="valuation_type" class="custom-control-input">
                                    <label class="custom-control-label" for="radioRation">工程量清单</label>
                                </div>
                            <% } %>
                        </div>
                    </div>
                    <div class="form-group row" style="display: none">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计价规则</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="valuation">
                            </select>
                        </div>
                    </div>
                    <span class="form-text text-danger" id="valuation-info" style="display: none;">请选择计价规则</span>
                    <div class="form-group row" id="regionDiv" style="display: none;">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="regionSels">
                            </select>
                        </div>
                    </div>
                    <div class="form-group row" id="tender-engineering-group" <% if (compilationName.includes('内蒙古高速公路日常养护估算(2021)') ) { %> style="display:none" <% } %>>
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">养护类别</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="tender-engineering">
                            </select>
                        </div>
                    </div>
                    <span class="form-text text-danger" id="engineering-info" style="display: none;">请选择养护类别</span>
                    <div class="form-group row" id="tender-feeStandard-group" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %>>
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm" >费用标准</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="tender-feeStandard"></select>
                        </div>
                    </div>
                    <div class="form-group row" id="tender-adminLevel-group" <% if (!compilationName.includes("广东农村养护(2021)") ) { %> style="display:none" <% } %>>
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm" >行政等级</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="tender-adminLevel"></select>
                        </div>
                    </div>
                    <span class="form-text text-danger" id="feeStandard-info" style="display: none;">请选择费用标准</span>
                    <div class="form-group row" id="taxType_div">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计税方式</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="taxType">
                                &lt;!&ndash;<option value="1">一般计税</option>
                                <option value="2">简易计税</option>&ndash;&gt;
                            </select>
                        </div>
                    </div>
                    <div class="form-group row" style="display: none;">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计算程序</label>
                        <div class="col">
                            <select class="form-control  form-control-sm" id="tender-calcProgram">
                            </select>
                        </div>
                    </div>
                    <span class="form-text text-danger" id="calcProgram-info" style="display: none;">请选择计算程序</span>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" data-dismiss="modal" id="add-tender-confirm">确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出新建文件夹-->
<div class="modal fade" id="add-folder-dialog" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><i class="fa fa-folder-o"></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">
                <form>
                    <div class="form-group">
                        <label>文件夹</label>
                        <input type="text" class="form-control" placeholder="输入文件夹名称" id="folder-name">
                        <span class="form-text text-danger" id="folder-name-info" style="display: none;">已存在 “建筑工程1”</span>
                        <span class="form-text text-muted">目前最多支持3层文件夹。</span>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" id="add-folder-confirm">确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出重命名-->
<div class="modal fade" id="rename-dialog" 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">
                <form>
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="输入名称" id="rename-name">
                        <span class="form-text text-danger" id="rename-name-info" style="display: none;">已存在 “建筑工程1”</span>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" id="rename-confirm">确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出删除-->
<div class="modal fade" id="del" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">删除确认</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h5 class="text-danger" id="tenderHint">删除 "建筑工程" ？</h5>
                <h5 class="text-danger" id="folderHint">删除 "XX项目文件夹" 以及它包含的子项？</h5>
                <p class="" id = 'restoreHint'>删除后，你可以在回收站找到它。</p>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-danger" id="delete-confirm">删除</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出移动到-->
<div class="modal fade" id="move-to-dialog" 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">
                <ul id="treeDemo" class="ztree"></ul>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                <a href="javacript:void(0);" class="btn btn-primary" id="move-to-confirm">确定</a>
            </div>
        </div>
    </div>
</div>
<!-- 弹出另存为 -->
<div class="modal fade" id="save-as-dialog" 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">
                <form>
                    <div class="form-group">
                        <p>输入文件名：</p>
                        <input type="text" class="form-control" id="save-as-name">
                    </div>
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="save-file" checked>
                        <label class="custom-control-label" for="save-file">同时另存费率、单价文件</label>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" id="save-as-confirm">确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出复制到-->
<div class="modal fade" id="copy-to-dialog" data-backdrop="static">
    <div class="modal-dialog middle-modal-width" 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">
               <!-- <ul id="treeDemo2" class="ztree"></ul>-->
                <div class="middle-modal-height" id="copyToSpread"><!--sjs ID设置此div--->
                </div>
            </div>
            <div class="modal-footer">
                <a href="javacript:void(0);" class="btn btn-primary disabled" id="copy-to-confirm" >确定</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<!--弹出 批量替换单价文件-->
<div class="modal fade" id="m_replace_file" data-backdrop="static">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="mr_title">批量替换单价文件</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <input type="hidden" id="mr_from">
            <div class="modal-body">
                <div class="row">
                    <div class="col-6">
                        <h5>选择项目</h5>
                        <div style="height: 400px">
                            <div id="replaceSpread" style="height: 100%"></div>
                        </div>
                        <!--<div class="custom-control custom-checkbox">
                            <input type="checkbox" class="custom-control-input" id="selectSameTypeProject">
                            <label class="custom-control-label" for="selectSameTypeProject">自动勾选同专业工程</label>
                        </div>-->
                    </div>
                    <div class="col-6">
                        <h5>更换为</h5>
                        <div class="form-group">
                            <div class="custom-control custom-radio custom-control-inline">
                                <input type="radio" id="customRadioInline33" name="select_from" value="0" class="custom-control-input" checked>
                                <label class="custom-control-label" for="customRadioInline33">从本建设项目中选择</label>
                            </div>
                            <div class="custom-control custom-radio custom-control-inline">
                                <input type="radio" id="customRadioInline44" name="select_from" value="1" class="custom-control-input">
                                <label class="custom-control-label" for="customRadioInline44">从其他建设项目中复制</label>
                            </div>
                        </div>
                        <!--从本建设项目中选择-->
                        <div class="form-group" id = "fromProject">
                            <select class="form-control" id="currentOptions">
                                <option>测试5单价文件</option><!--单价文件-->
                            </select>
                        </div>
                        <!--从其他建设项目中复制-->
                        <div id = "fromOther">
                            <div class="form-group" >
                                <label>选择建设项目</label>
                                <select class="form-control" id="otherProject" >
                                    <option>10.9建筑例题内测</option><!--建设项目-->
                                </select>
                            </div>
                            <div class="form-group">
                                <select class="form-control" id="otherFileOptions">
                                    <option>10.9建筑例题内测单价文件</option><!--建设项目下单价文件-->
                                </select>
                                <span class="form-text text-muted">您选择的文件将复制一份至当前项目，不会影响原建设项目的文件。</span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary mr-3" id="changeFileConfirm">确定</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<%include ../../../common/components/share/index.html %>
<!--弹出删除 单价/费率 文件-->
<div class="modal fade" id="del-wj" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">删除确认</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h5 class="text-danger">删除 "C单价文件" ？</h5>
                <p class="">删除后，你可以在回收站找到它。</p>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-danger" id="fileDelConfirm">删除</a>
                <button type="button" class="btn btn-secondary" data-dismiss="modal" id="fileDelCancel">取消</button>
            </div>
        </div>
    </div>
</div>
<!--弹出 新用户第一次进度条-->
<div class="modal fade" id="progress" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">欢迎使用<%= title%></h5>
            </div>
            <div class="modal-body">
                <h5 class="my-3">首次加载例题，请稍候……</h5>
                <div class="progress mb-3">
                    <div class="progress-bar progress-bar-striped progress-bar-animated" id="progressBar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>
                </div>
            </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">导入建设项目</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" name="import_project_data" id="import_project_data" lang="zh" accept=".ybp">
                    <label class="custom-file-label"  id="import_project_label" style="white-space: nowrap; overflow: hidden;">请选择建设项目文件</label>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary " disabled id="confirm-import">确定导入</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<!--弹出信息-->
<div class="modal fade" id="welcomePage" data-backdrop="static">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">欢迎使用<%= title%></h5>
                <label id="countdown" ></label>
                <button type="button" id="welcomeCloseBtn" class="close text-danger" data-dismiss="modal" aria-label="Close" onclick="_showFreeUserInfo()">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body" id="welcomeBody">
              <input type="hidden" id="showTime" value="<%= showTime %>">
                <div style="max-height:465px">
                     <%- context %>
                </div>
            </div>
        </div>
    </div>
</div>

<!--弹出 数据接口导出-->
<div class="modal fade" id="interface-import-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 for="staticEmail" class="col-auto col-form-label col-form-label-sm">选择文件</label>
                    <div class="col">
                        <div class="custom-file custom-file-sm">
                            <input type="file" class="custom-file-input" id="interface-import-file" lang="zh">
                            <label class="custom-file-label" for="customFile" id="interface-import-label" style="white-space: nowrap; overflow: hidden;">请选择导入文件</label>
                        </div>
                    </div>
                </div>
                <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" style="margin-left: -11px;">
                        <div class="col-6 pr-0">
                            <select class="form-control  form-control-sm" id="import-parent-area">
                            </select>
                        </div>
                        <div class="col-6 pr-0">
                            <select class="form-control  form-control-sm" id="import-sub-area">
                            </select>
                        </div>
                    </div>
                </div>
                <div id="import-rename" style="display: none;">
                    <p style="color: #dc3545;">项目已存在，请重命名</p>
                    <div class="form-group row">
                        <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">建设项目</label>
                        <div class="col">
                            <input type="text" class="form-control form-control-sm" placeholder="输入建设项目名称" id="import-rename-input" autocomplete="off">
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <a id="interface-import-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>

<!-- JS. -->
<script src = "/lib/spreadjs/sheets/gc.spread.sheets.all.11.1.2.min.js"></script>
<script src="/lib/x2js/xml2json.min.js"></script>
<script src = "/lib/fileSaver/FileSaver.min.js"></script>
<script src="/lib/qiniu/qiniu.min.js"></script>
<script>GC.Spread.Sheets.LicenseKey = '<%- LicenseKey %>';</script>
<!-- inject:js -->
<script type="text/javascript" src="/public/web/syntax-detection.js"></script>
<script src="/public/web/uuid.js"></script>
<script src="/public/billsUtil.js"></script>
<script src="/public/web/date_util.js"></script>
<script src="/public/web/upload_cdn.js"></script>
<script src="/web/building_saas/pm/js/pm_tree.js"></script>
<script src="/public/web/id_tree.js"></script>
<script src="/public/web/tree_sheet/tree_sheet_helper.js"></script>
<script src="/public/web/sheet/sheet_data_helper.js"></script>
<script src="/public/web/sheet/sheet_common.js"></script>
<script src="/lib/pinyinjs/pinyin_dict_firstletter.js"></script>
<script src="/lib/pinyinjs/pinyinUtil.js"></script>
<script type="text/javascript" src="/public/web/common_ajax.js"></script>
<script src="/lib/JSExpressionEval_src/Date.js"></script>
<script src="/web/building_saas/glj/js/socket.io.slim.js"></script>
<script src="/public/web/socket/connection.js"></script>
<script src="/web/common/components/share/index.js" ></script>
<script src="/web/building_saas/pm/js/pm_ajax.js"></script>
<script src="/web/building_saas/pm/js/pm_newMain.js"></script>
<script src="/web/building_saas/pm/js/pm_gc.js"></script>
<script src="/web/building_saas/pm/js/pm_share.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/import/base.js"></script>
<script src="/web/building_saas/standard_interface/import/view.js"></script>
<!-- zTree -->
<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/jquery-contextmenu/jquery.contextMenu.min.js"></script>
<!-- endinject -->
<% if (overWriteUrl != undefined) { %>
    <script type="text/javascript" src="<%= overWriteUrl%>"></script>
<% } %>

</body>
<script type="text/javascript">
    autoFlashHeight();
</script>
<script type="text/javascript">
    let suggestionValuation = '<%- suggestionValuation %>';
    let feasibilityValuation = '<%- feasibilityValuation %>';
    let roughValuation = '<%- roughValuation %>';
    let billValuation = '<%- billValuation %>';
    let rationValuation = '<%- rationValuation %>';
    let engineeringList = '<%- engineeringList %>';
    let compilationData = '<%- compilationData %>';
    let estimationData = '<%- estimationValuation %>';
    let adminLevelType = JSON.parse('<%- adminLevelType %>');
    compilationData = JSON.parse(compilationData.replace(/[\s\r\n]/g, ""));//去掉空格字符
    _iniAdminLevel();
</script>
</html>
