| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503 | 
							- <link href="/public/css/bootstrap/bootstrap-colorpicker.min.css" rel="stylesheet">
 
- <% include ./tender_sub_menu.ejs %>
 
- <div class="panel-content">
 
-     <div class="panel-title">
 
-         <div class="title-main d-flex justify-content-between">
 
-             <% include ./tender_sub_mini_menu.ejs %>
 
-             <% if (tender.ledger_status !== audit.ledger.status.uncheck) { %>
 
-                 <h2>进行至
 
-                     <% if (lastStage) { %>
 
-                         第<%- lastStage.order %>期<small class="<%- audit.stage.statusClass[lastStage.status] %>">(<%- audit.stage.statusString[lastStage.status] %>)</small>
 
-                     <% } else { %>
 
-                         台账<small class="<%- audit.ledger.auditStringClass[tender.ledger_status] %>">(<%- audit.ledger.auditString[tender.ledger_status] %>)</small>
 
-                     <% } %>
 
-                 </h2>
 
-             <% } %>
 
-             <div class="align-items-center">
 
-                 <% if (ctx.tender.data.build_status === buildStatus.status.build) { %>
 
-                 <div class="d-inline-block">
 
-                     在建状态:在建中
 
-                     <% if (!ctx.tender.isTourist) { %>
 
-                     <% if (canFinish) { %>
 
-                     <a href="#mod-status" data-toggle="modal" data-target="#mod-status" class="btn btn-primary btn-sm ml-2">修改状态</a>
 
-                     <% } else { %>
 
-                     <a href="#mod-status2" data-toggle="modal" data-target="#mod-status1" class="btn btn-primary btn-sm ml-2">修改状态</a>
 
-                     <% } %>
 
-                     <% } %>
 
-                 </div>
 
-                 <% } else { %>
 
-                 <div class="d-inline-block ml-2">
 
-                     在建状态:已完工
 
-                     <% if (!ctx.tender.isTourist) { %>
 
-                     <a href="#mod-status1" data-toggle="modal" data-target="#mod-status2" class="btn btn-primary btn-sm ml-2">修改状态</a>
 
-                     <% } %>
 
-                 </div>
 
-                 <% } %>
 
-             </div>
 
-             <% if (cooperation) { %>
 
-                 <div>
 
-                     <a href="/tender/<%= tender.id %>/cooperation" class="btn btn-sm btn-light" ><i class="fa fa-users"></i> 协作办公</a>
 
-                 </div>
 
-             <% } %>
 
-             <div class="clearfix">
 
-                 <a href="javascript:void(0)" title="全屏显示" id="showFull" style="font-size: 16px" class="float-left text-dark mr-3"><i class="fa fa-arrows-alt"></i></a>
 
-                 <div class="dropdown d-flex float-left mt-1 mr-2">
 
-                     <!--<button id="showFull" class="btn btn-sm btn-outline-dark mr-2">全屏</button>-->
 
-                     <a class="btn btn-sm btn-outline-dark dropdown-toggle dropdown-wd" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 
-                         标段
 
-                     </a>
 
-                     <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
 
-                         <a href="#bd-set-1" data-toggle="modal" data-target="#bd-set-1"  class="dropdown-item" >标段属性</a>
 
-                         <a href="#bd-set-2" data-toggle="modal" data-target="#bd-set-2" class="dropdown-item" >小数位数</a>
 
-                         <a href="#bd-set-3" data-toggle="modal" data-target="#bd-set-3" class="dropdown-item" >数量精度</a>
 
-                         <a href="#bd-set-4" data-toggle="modal" data-target="#bd-set-4" class="dropdown-item" >合同参数</a>
 
-                         <a href="#bd-set-5" data-toggle="modal" data-target="#bd-set-5" class="dropdown-item" >显示设置</a>
 
-                         <a href="#bd-set-6" data-toggle="modal" data-target="#bd-set-6" class="dropdown-item" >章节设置</a>
 
-                         <a href="#bd-set-7" data-toggle="modal" data-target="#bd-set-7" class="dropdown-item" >付款账号</a>
 
-                         <a class="dropdown-item" href="javascript: void(0);" id="copyBtn">拷贝设置</a>
 
-                         <a class="dropdown-item" href="/tender/<%- tender.id %>/cert">从业人员</a>
 
-                     </div>
 
-                 </div>
 
-                 <% if (ctx.session.sessionUser.is_admin) { %>
 
-                     <div class="dropdown d-flex mt-1">
 
-                         <a class="btn btn-sm btn-outline-dark dropdown-toggle dropdown-wd" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 
-                             管理员
 
-                         </a>
 
-                         <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
 
-                             <% if (parseInt(ctx.subProject.page_show.xxjd) === 1) { %>
 
-                                 <a href="#xxjd-set" data-toggle="modal" data-target="#xxjd-set" class="dropdown-item">投资进度</a>
 
-                             <% } %>
 
-                             <a href="/tender/<%- tender.id %>/shenpi" class="dropdown-item">审批流程</a>
 
-                             <a href="#bd-set-9" data-toggle="modal" data-target="#bd-set-9" class="dropdown-item">游客账号 <span id="tourist-num" <% if (tourists.length !== 0) { %>class="badge badge-secondary"<% } %>><% if (tourists.length !== 0) { %><%- tourists.length %><% } %></span></a>
 
-                             <a href="#bd-set-10" data-toggle="modal" data-target="#bd-set-10" class="dropdown-item">上报控制</a>
 
-                             <a href="#bd-set-12" data-toggle="modal" data-target="#bd-set-12" class="dropdown-item">功能设置</a>
 
-                             <a href="#bd-set-11" data-toggle="modal" data-target="#bd-set-11" class="dropdown-item">概况设置</a>
 
-                             <a href="#bd-set-13" data-toggle="modal" data-target="#bd-set-13" class="dropdown-item">标段类型</a>
 
-                             <a href="#bd-set-14" data-toggle="modal" data-target="#bd-set-14" class="dropdown-item">超计判断条件</a>
 
-                         </div>
 
-                     </div>
 
-                 <% } %>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     <div class="content-wrap" id="big-data">
 
-         <div style="height: 70px;display: none;<% if (ctx.tender.info.display.dayMode) { %> background-color: #fff;<% } else { %> background-color: #2c3237 !important;<% } %>" id="exitfull-div">
 
-             <div class="title-main d-flex">
 
-                 <div class="ml-auto">
 
-                     <div class="dropdown d-flex float-left mt-1 mr-2">
 
-                         <button id="exitFull" class="btn btn-sm btn-secondary ml-auto">退出全屏</button>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-         <div class="c-body <% if (ctx.tender.info.display.dayMode) { %>c-body-white<% } %>" <% if (!ctx.tender.info.display.dayMode) { %>style="background-color: #2c3237 !important;"<% } %>>
 
-             <div class="sjs-height-0">
 
-             <!--<div class="auto-main-height">-->
 
-                 <div class="main-height-one">
 
-                     <div class="m-3">
 
-                         <!--金额概况-->
 
-                         <div class="row ml-1 mb-3">
 
-                             <div class="col-12">
 
-                                 <div class="row">
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.total_price) %></h5>
 
-                                                 <p class="card-text text-muted">0号台账合同</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <style>
 
-                                         .tooltip-inner {
 
-                                             max-width: 400px;
 
-                                             text-align: left;
 
-                                         }
 
-                                     </style>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<p style='text-align:left;'>计价金额:<%- ctx.helper.formatMoney(tender.change_valuation_tp) %></p>不计价金额:<%- ctx.helper.formatMoney(tender.change_unvaluation_tp) %>">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.change_tp) %></h5>
 
-                                                 <p class="card-text text-muted">已批复变更金额</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.sum) %></h5>
 
-                                                 <p class="card-text text-muted">变更后金额</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<p>截止本期正变更:<%- ctx.helper.formatMoney(tender.end_positive_qc_tp) %></p>截止本期负变更:<%- ctx.helper.formatMoney(tender.end_negative_qc_tp) %>">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.end_qc_tp) %> <small class="text-danger"  data-toggle="tooltip" data-placement="bottom" title="" data-original-title="占合同比例"><%- tender.qc_ratio %>%</small></h5>
 
-                                                 <p class="card-text text-muted">截止本期变更</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.gather_tp) %></h5>
 
-                                                 <p class="card-text text-muted">本期完成</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.end_gather_tp) %></h5>
 
-                                                 <p class="card-text text-muted">截止本期完成</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <!--<div class="col-auto pl-0">-->
 
-                                         <!--<div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">-->
 
-                                             <!--<div class="card-body">-->
 
-                                                 <!--<h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.pre_gather_tp) %></h5>-->
 
-                                                 <!--<p class="card-text text-muted">截止上期完成</p>-->
 
-                                             <!--</div>-->
 
-                                         <!--</div>-->
 
-                                     <!--</div>-->
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.yf_tp) %></h5>
 
-                                                 <p class="card-text text-muted">本期应付</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                     <div class="col-auto pl-0">
 
-                                         <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                             <div class="card-body">
 
-                                                 <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.sf_tp) %></h5>
 
-                                                 <p class="card-text text-muted">本期实付</p>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                         <!--进度条-->
 
-                         <div class="">
 
-                             <div class="progress">
 
-                                 <% if (tender.pre_ratio > 0) { %>
 
-                                     <div class="progress-bar bg-success bg-green" style="width: <%- tender.pre_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="截止上期累计完成:¥<%- ctx.helper.formatMoney(tender.pre_gather_tp) %>"><%- tender.pre_ratio %>%</div>
 
-                                 <% } %>
 
-                                 <% if (tender.cur_ratio > 0) { %>
 
-                                     <div class="progress-bar bg-info bg-blue" style="width: <%- tender.cur_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="本期完成:¥<%- ctx.helper.formatMoney(tender.gather_tp) %>"><%- tender.cur_ratio %>%</div>
 
-                                 <% } %>
 
-                                 <% if (tender.other_ratio > 0) { %>
 
-                                     <div class="progress-bar bg-danger bg-red" style="width: <%- tender.other_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="未完成:¥<%- ctx.helper.formatMoney(tender.other_tp) %>"><%- tender.other_ratio %>%</div>
 
-                                 <% } %>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <!--图表1-->
 
-                 <div class="main-height-two">
 
-                     <div class="m-3">
 
-                         <div class="row">
 
-                             <div class="col-3">
 
-                                 <!--计量完成概况-->
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <div class="card-header"><h6 class="mb-0">计量完成概况</h6></div>
 
-                                     <div class="card-body">
 
-                                         <div id="jlchart1" style="height: 100%; width: 100%;">
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                                 <!--支付情况-->
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <div class="card-header"><h6 class="mb-0">支付情况</h6></div>
 
-                                     <div class="card-body">
 
-                                         <div id="jlchart2" style="height: 100%; width: 100%;">
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                             <!--章节计量情况图-->
 
-                             <div class="col-6 pl-0">
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <% if (hadMap === 2) { %>
 
-                                         <div style="position:relative;height: 388px; width: 100%;">
 
-                                             <% if (map_pic) { %>
 
-                                             <% if (!ctx.tender.info.display.dayMode) { %>
 
-                                             <div style="position:absolute;top:0;left:0;width:100%;height: 388px;background-color: rgba(44, 50, 55, 0.2);z-index: 10"></div>
 
-                                             <% } %>
 
-                                             <img style="display:block;width:100%;height: 388px;margin:0 auto;" src="<%- fujianOssPath + map_pic %>">
 
-                                             <% } else { %>
 
-                                             <div class="p-5 text-center text-muted">
 
-                                                 <img src="/public/images/nulllogo.png" />
 
-                                                 <div class="pt-3">请上传你的静态图片</div>
 
-                                             </div>
 
-                                             <% } %>
 
-                                         </div>
 
-                                     <% } else  { %>
 
-                                         <div class="card-header"><h6 class="mb-0">章节计量情况图</h6></div>
 
-                                         <div class="card-body">
 
-                                             <div id="jlchart3" style="height: 304px; width: 100%;">
 
-                                             </div>
 
-                                         </div>
 
-                                     <% } %>
 
-                                 </div>
 
-                             </div>
 
-                             <div class="col-3 pl-0">
 
-                                 <!--台账审批进度-->
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <div class="card-header"><h6 class="mb-0"><% if (lastStage) { %>计量审批进度<% } else { %>台账审批进度<% } %></h6></div>
 
-                                     <div class="card-body">
 
-                                         <div style="">
 
-                                             <div class="btn-group btn-group-sm btn-block my-1">
 
-                                                 <% if (lastStage) { %>
 
-                                                     <% if (lastStage.auditors && lastStage.auditors.length > 0) { %>
 
-                                                         <% for (const group of lastStage.auditors) { %>
 
-                                                             <button class="btn <% if (group.status === audit.stage.status.checked) { %>btn-green<% } else if (group.status === audit.stage.status.checking) { %>btn-yellow<% } else if (group.status === audit.stage.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (group.audit_order !== lastStage.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
 
-                                                                     data-placement="top" data-original-title="<%- group.name %> <% if (group.status === audit.stage.status.checked) { %>审批完成<% } else if (group.status === audit.stage.status.checking) { %>审批中<% } else if (group.status === audit.stage.status.checkNo || group.status === audit.stage.status.checkNoPre) { %>审批退回<% } else if (group.status === audit.stage.status.checkAgain) { %>重新审批<% } %> <% if (group.end_time) { %><%- ctx.helper.dateTran(group.end_time, 'YYYY-MM-DD') %><% } %>">
 
-                                                                 <% if (lastStage.auditors.length > 1 && group.audit_order !== 1) { %><i class="fa <% if (lastStage.auditors[group.audit_order-2].status === audit.stage.status.checked) { %>text-green<% } else if (lastStage.auditors[group.audit_order-2].status === audit.stage.status.checking) { %>text-yellow<% } else if (lastStage.auditors[group.audit_order-2].status === audit.stage.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- group.audit_order %></button>
 
-                                                         <% } %>
 
-                                                     <% } else { %>
 
-                                                         <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title=""> </button>
 
-                                                     <% } %>
 
-                                                 <% } else { %>
 
-                                                 <%if (tender.auditors && tender.auditors.length > 0) { %>
 
-                                                     <% for (const group of tender.auditors) { %>
 
-                                                         <button class="btn <% if (group.status === audit.ledger.status.checked) { %>btn-green<% } else if (group.status === audit.ledger.status.checking) { %>btn-yellow<% } else if (group.status === audit.ledger.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (group.audit_order !== tender.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
 
-                                                                 data-placement="top" data-original-title="<%- group.name %> <% if (group.status === audit.ledger.status.checked) { %>审批完成<% } else if (group.status === audit.ledger.status.checking) { %>审批中<% } else if (group.status === audit.ledger.status.checkNo || group.status === audit.ledger.status.checkNoPre) { %>审批退回<% } %> <% if (group.end_time) { %><%- ctx.helper.dateTran(group.end_time, 'YYYY-MM-DD') %><% } %>">
 
-                                                             <% if (tender.auditors.length > 1 && group.audit_order !== 1) { %><i class="fa <% if (tender.auditors[group.audit_order-2].status === audit.ledger.status.checked) { %>text-green<% } else if (tender.auditors[group.audit_order-2].status === audit.ledger.status.checking) { %>text-yellow<% } else if (tender.auditors[group.audit_order-2].status === audit.ledger.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- (group.audit_order) %></button>
 
-                                                     <% } %>
 
-                                                 <% } else { %>
 
-                                                     <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title=""> </button>
 
-                                                 <% } %>
 
-                                                 <% } %>
 
-                                             </div>
 
-                                             <div class="row">
 
-                                                 <div class="col-2">
 
-                                                 </div>
 
-                                                 <div class="col-8 text-center">
 
-                                                     <% if (lastStage) { %>
 
-                                                         第<%- lastStage.order %>期
 
-                                                         <% if (lastStage.status === audit.stage.status.uncheck) { %>
 
-                                                             <span class="text-info"><%- lastStage.status_users %></span>
 
-                                                         <% } else { %>
 
-                                                             <a href="#sp-list" data-toggle="modal" data-target="#sp-list"  data-type="stage" data-order="<%- lastStage.order %>"><%- lastStage.status_users %></a>
 
-                                                         <% } %>
 
-                                                         <span class="<%- audit.stage.statusClass[lastStage.status] %>"><%- audit.stage.statusString[lastStage.status] %></span>
 
-                                                     <% } else { %>
 
-                                                         <% if (tender.ledger_status === audit.ledger.status.uncheck) { %>
 
-                                                             <span class="text-info"><%- tender.status_users %></span> <span>待上报</span>
 
-                                                         <% } else { %>
 
-                                                             <a href="#sp-list" data-toggle="modal" data-target="#sp-list"  data-type="ledger" data-order="<%- tender.order %>"><%- tender.status_users %></a> <span class="<%- audit.ledger.auditStringClass[tender.ledger_status] %> %>"><%- audit.ledger.auditString[tender.ledger_status] %></span>
 
-                                                         <% } %>
 
-                                                     <% } %>
 
-                                                 </div>
 
-                                             </div>
 
-                                             <div class="row mt-1 border-top border-secondary pt-1 mt-2">
 
-                                                 <% if (lastStage) { %>
 
-                                                     <div class="col-7 mb-1">
 
-                                                         本期合同计量金额:
 
-                                                     </div>
 
-                                                     <div class="col-5 text-right  mb-1">
 
-                                                         <%- lastStage.contract_tp %>
 
-                                                     </div>
 
-                                                     <div class="col-7">
 
-                                                         本期变更计量金额:
 
-                                                     </div>
 
-                                                     <div class="col-5 text-right">
 
-                                                         <%- lastStage.qc_tp %>
 
-                                                     </div>
 
-                                                 <% } else { %>
 
-                                                         <div class="col-7 mb-1">
 
-                                                              
 
-                                                         </div>
 
-                                                         <div class="col-5 text-right  mb-1">
 
-                                                              
 
-                                                         </div>
 
-                                                         <div class="col-7">
 
-                                                              
 
-                                                         </div>
 
-                                                         <div class="col-5 text-right">
 
-                                                              
 
-                                                         </div>
 
-                                                 <% } %>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <div class="card-header">
 
-                                         <ul class="nav nav-tabs card-header-tabs panel-card-tabs <% if (ctx.tender.info.display.dayMode) { %>nav-white-tabs<% } %>">
 
-                                             <li class="nav-item">
 
-                                                 <a class="nav-link active" data-toggle="tab" href="#taizhangshenpi" role="tab" aria-selected="true">工程变更进度</a>
 
-                                             </li>
 
-                                             <li class="nav-item">
 
-                                                 <a class="nav-link" data-toggle="tab" href="#taizhangxiuding" role="tab" aria-selected="true">材料调差进度</a>
 
-                                             </li>
 
-                                         </ul>
 
-                                     </div>
 
-                                     <div class="card-body">
 
-                                         <div class="tab-content">
 
-                                             <div class="tab-pane active" id="taizhangshenpi">
 
-                                                 <div id="bgchart" style="height: 100%; width: 100%;"></div>
 
-                                             </div>
 
-                                             <div class="tab-pane" id="taizhangxiuding" >
 
-                                                 <div class="card-body p-0">
 
-                                                     <div>
 
-                                                         <div class="btn-group btn-group-sm btn-block">
 
-                                                             <% if (materialData && materialData.auditors && materialData.auditors.length > 0) { %>
 
-                                                                 <% for (const group of materialData.auditors) { %>
 
-                                                                 <% if (group && group.status) { %>
 
-                                                                     <button class="btn <% if (group.status === audit.material.status.checked) { %>btn-green<% } else if (group.status === audit.material.status.checking) { %>btn-yellow<% } else if (group.status === audit.material.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (group.audit_order !== materialData.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
 
-                                                                             data-placement="top" data-original-title="<%- group.name %> <% if (group.status === audit.material.status.checked) { %>审批完成<% } else if (group.status === audit.material.status.checking) { %>审批中<% } else if (group.status === audit.material.status.checkNo || group.status === audit.material.status.checkNoPre) { %>审批退回<% } else if (group.status === audit.material.status.checkAgain) { %>重新审批<% } %> <% if (group.end_time) { %><%- ctx.helper.dateTran(group.end_time, 'YYYY-MM-DD') %><% } %>">
 
-                                                                         <% if (materialData.auditors.length > 1 && group.audit_order !== 1) { %><i class="fa <% if (materialData.auditors[group.audit_order-2].status === audit.material.status.checked) { %>text-green<% } else if (materialData.auditors[group.audit_order-2].status === audit.material.status.checking) { %>text-yellow<% } else if (materialData.auditors[group.audit_order-2].status === audit.material.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- group.audit_order %></button>
 
-                                                                 <% } %>
 
-                                                                 <% } %>
 
-                                                             <% } else { %>
 
-                                                                 <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title=""> </button>
 
-                                                             <% } %>
 
-                                                             <!--<button class="btn btn-warning" data-toggle="tooltip" data-placement="top" data-original-title="温仁书 审批中">2</button>-->
 
-                                                             <!--<button class="btn btn-info" data-toggle="tooltip" data-placement="top" data-original-title="玉安然">3</button>-->
 
-                                                         </div>
 
-                                                         <div class="row">
 
-                                                             <div class="col-2">
 
-                                                             </div>
 
-                                                             <div class="col-8 text-center">
 
-                                                                 第 <%- (materialData ? materialData.order : '0') %> 期
 
-                                                                 <% if (materialData) { %>
 
-                                                                     <% if (materialData.status === audit.material.status.uncheck) { %>
 
-                                                                         <span class="text-info"><%- materialData.status_users %></span>
 
-                                                                     <% } else { %>
 
-                                                                         <a href="#sp-list" data-toggle="modal" data-target="#sp-list"  data-type="material" data-order="<%- materialData.order %>"><%- materialData.status_users %></a>
 
-                                                                     <% } %>
 
-                                                                     <span class="<%- audit.material.statusClass[materialData.status] %>"><%- audit.material.statusString[materialData.status] %></span>
 
-                                                                 <% } %>
 
-                                                             </div>
 
-                                                         </div>
 
-                                                         <table class="table table-bordered table-2sm mb-0 mt-1 <% if (!ctx.tender.info.display.dayMode) { %>table-dark<% } %>">
 
-                                                             <% if (materialData) { %>
 
-                                                                 <tr><th width="60%">含税(信息价/指数法)</th><td width="20%"><% if (openMaterialTax && materialData.material_tax) { %><% if (materialData.m_tax_tp) { %><%- materialData.m_tax_tp %><% } else { %><%- materialData.m_tp %><% } %><% } else if ((openMaterialTax && !allMaterialTax) || !openMaterialTax) { %><% if (!materialData.material_tax) { %><%= materialData.m_tp !== null ? ctx.helper.round(ctx.helper.mul(materialData.m_tp, 1+materialData.rate/100), materialData.decimal.tp) : 0 %><% } else { %>0<% } %><% } else { %>0<% } %></td><td width="20%"><%= materialData.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(materialData.ex_tp, 1+materialData.rate/100), materialData.decimal.tp) : '0' %></td></tr>
 
-                                                                 <tr><th>不含税(信息价/指数法)</th><td><%= materialData.m_tp !== null ? ctx.helper.round(materialData.m_tp, materialData.decimal.tp) : '0' %></td><td><%= materialData.ex_tp !== null ? ctx.helper.round(materialData.ex_tp, materialData.decimal.tp) : '0' %></td></tr>
 
-                                                             <% } else { %>
 
-                                                                 <tr><th width="60%">含税(信息价/指数法)</th><td width="20%">0</td><td width="20%">0</td></tr>
 
-                                                                 <tr><th>不含税(信息价/指数法)</th><td>0</td><td>0</td></tr>
 
-                                                             <% } %>
 
-                                                         </table>
 
-                                                     </div>
 
-                                                 </div>
 
-                                             </div>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                             <!--期进度表-->
 
-                             <div class="col-6">
 
-                                 <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %> bottom-height">
 
-                                     <% if (hadMap === 2) { %>
 
-                                         <div class="card-header"><h6 class="mb-0">章节计量情况表</h6></div>
 
-                                         <div class="card-body">
 
-                                             <div id="jlchart3" style="height: 300px; width: 100%;"></div>
 
-                                         </div>
 
-                                     <% } else { %>
 
-                                         <div class="card-header"><h6 class="mb-0">期进度表</h6></div>
 
-                                         <div class="card-body">
 
-                                             <div id="chartContainer4" style="height: 300px; width: 100%;"></div>
 
-                                         </div>
 
-                                     <% } %>
 
-                                 </div>
 
-                             </div>
 
-                             <!--月进度表-->
 
-                             <div class="col-6 pl-0">
 
-                                 <div class="card mb-3 bottom-height <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
 
-                                     <% if (hadMap === 2) { %>
 
-                                         <div class="card-header">
 
-                                             <ul class="nav nav-tabs card-header-tabs panel-card-tabs <% if (ctx.tender.info.display.dayMode) { %>nav-white-tabs<% } %>" id="change-echarts">
 
-                                                 <li class="nav-item">
 
-                                                     <a class="nav-link active" data-toggle="tab" href="#qijindubiao" role="tab" aria-selected="true">期进度表</a>
 
-                                                 </li>
 
-                                                 <li class="nav-item">
 
-                                                     <a class="nav-link" data-toggle="tab" href="#yuejindbiao" role="tab" aria-selected="true">月进度表</a>
 
-                                                 </li>
 
-                                             </ul>
 
-                                         </div>
 
-                                         <div class="card-body">
 
-                                             <div class="tab-content">
 
-                                                 <div class="tab-pane active" id="qijindubiao">
 
-                                                     <div id="chartContainer4" class="bottom-height-two" style="width: 100%;"></div>
 
-                                                 </div>
 
-                                                 <div class="tab-pane" id="yuejindbiao" >
 
-                                                     <div id="chartContainer3" class="bottom-height-two" style="width: 100%;"></div>
 
-                                                 </div>
 
-                                             </div>
 
-                                         </div>
 
-                                     <% } else { %>
 
-                                         <div class="card-header"><h6 class="mb-0">月进度表</h6></div>
 
-                                         <div class="card-body">
 
-                                             <div id="chartContainer3" style="height: 300px; width: 100%;"></div>
 
-                                         </div>
 
-                                     <% } %>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- </div>
 
- <script type="text/javascript">
 
-     const tenders = JSON.parse(unescape('<%- escape(JSON.stringify(tenders)) %>'));
 
-     const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
 
-     const tender = JSON.parse('<%- JSON.stringify(tender) %>');
 
-     const cur_uid = parseInt('<%- ctx.session.sessionUser.accountId %>');
 
-     const dayMode = <%- ctx.tender.info.display.dayMode %>;
 
-     //计量完成概况//
 
-     var myChart = echarts.init(document.getElementById('jlchart1')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option = {
 
-         <% if (ctx.tender.info.display.dayMode) { %>
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         <% } else { %>
 
-         color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'],
 
-         backgroundColor: '#343a40 ',
 
-         <% } %>
 
-         tooltip: {
 
-             trigger: 'item'
 
-         },
 
-         legend: {
 
-             top: '0%',
 
-             left: '0%',
 
-             orient:'vertical'
 
-         },
 
-         series: [
 
-             {
 
-                 name: '金额',
 
-                 type: 'pie',
 
-                 top:'0%',
 
-                 left:'50%',
 
-                 radius: ['100%'],
 
-                 avoidLabelOverlap: false,
 
-                 label: {
 
-                     show: false,
 
-                     position: 'right'
 
-                 },
 
-                 emphasis: {
 
-                     label: {
 
-                         show: true,
 
-                         fontSize: '20',
 
-                         fontWeight: 'bold'
 
-                     }
 
-                 },
 
-                 labelLine: {
 
-                     show: false
 
-                 },
 
-                 data: [
 
-                     <% for (const s of stage_total) { %>
 
-                     {value: <%- s.num %>, name: '<%- s.name %>'},
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart.setOption(option);
 
-     //计量完成概况 结束//
 
-     //计量支付概况//
 
-     var myChart1 = echarts.init(document.getElementById('jlchart2')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option1 = {
 
-         <% if (!ctx.tender.info.display.dayMode) { %>backgroundColor: '#343a40 ',<% } %>
 
-         tooltip: {
 
-             trigger: 'axis',
 
-             axisPointer: {
 
-                 type: 'shadow'
 
-             }
 
-         },
 
-         grid: {
 
-             left: '3%',
 
-             right: '18%',
 
-             top:'5%',
 
-             bottom: '0%',
 
-             containLabel: true
 
-         },
 
-         yAxis: {
 
-             type: 'category',
 
-             data: ['总价', '截止应付', '截止实付']
 
-         },
 
-         xAxis: {
 
-             type: 'value',
 
-             name : '金额',
 
-             position:'left',
 
-             axisLabel : {
 
-                 interval: 0,//横轴信息全部显示
 
-                 rotate: 35,// 倾斜角度
 
-                 formatter: function (value, index) {
 
-                     if (value < 0) {
 
-                         let newValue = Math.abs(value);
 
-                         if (newValue >= 10000 && newValue < 10000000) {
 
-                             newValue = newValue / 10000 + "万";
 
-                         } else if (newValue >= 10000000) {
 
-                             newValue = newValue / 10000000 + "千万";
 
-                         }
 
-                         value = '-' + newValue;
 
-                     }
 
-                     if (value >= 10000 && value < 10000000) {
 
-                         value = value / 10000 + "万";
 
-                     } else if (value >= 10000000) {
 
-                         value = value / 10000000 + "千万";
 
-                     }
 
-                     return value;
 
-                 }
 
-             },
 
-             splitArea : {show : true}
 
-         },
 
-         series: [{
 
-             data: [<%- tender.total_price ? tender.total_price : 0 %>, <%- tender.end_yf_tp ? tender.end_yf_tp : 0 %>, <%- tender.end_sf_tp ? tender.end_sf_tp : 0 %>,],
 
-             type: 'bar',
 
-             itemStyle:{
 
-                 normal:{
 
-                     color:function(params){
 
-                         <% if (ctx.tender.info.display.dayMode) { %>
 
-                         var colorlist = ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-                             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-                             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-                             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'];
 
-                         <% } else { %>
 
-                         var colorlist = ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'];
 
-                         <% } %>
 
-                         return colorlist[params.dataIndex];
 
-                     }
 
-                 }
 
-             }
 
-         }]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart1.setOption(option1);
 
-     //计量支付概况 结束//
 
-     //章节计量情况图//
 
-     var myChart2 = echarts.init(document.getElementById('jlchart3')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option2 = {
 
-         <% if (ctx.tender.info.display.dayMode) { %>
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         <% } else { %>
 
-         color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'],
 
-         backgroundColor: '#343a40 ',
 
-         <% } %>
 
-         tooltip: {
 
-             trigger: 'axis',
 
-             axisPointer: {
 
-                 type: 'shadow'
 
-             }
 
-         },
 
-         legend: {
 
-             data: ['台账金额','截止本期计量']
 
-         },
 
-         grid: {
 
-             left: '3%',
 
-             right: '4%',
 
-             bottom: '3%',
 
-             containLabel: true
 
-         },
 
-         yAxis: {
 
-             type : 'value',
 
-             name : '金额',
 
-             position:'left',
 
-             axisLabel : {
 
-                 // if (ctx.tender.info.display.thousandth) {
 
-                 // formatter: function (value, index) {
 
-                 //     return value.format2Str('#,##0.######') + ' 元'
 
-                 // }
 
-                 formatter: function (value, index) {
 
-                     if (value < 0) {
 
-                         let newValue = Math.abs(value);
 
-                         if (newValue >= 10000 && newValue < 10000000) {
 
-                             newValue = newValue / 10000 + "万";
 
-                         } else if (newValue >= 10000000) {
 
-                             newValue = newValue / 10000000 + "千万";
 
-                         }
 
-                         value = '-' + newValue;
 
-                     }
 
-                     if (value >= 10000 && value < 10000000) {
 
-                         value = value / 10000 + "万";
 
-                     } else if (value >= 10000000) {
 
-                         value = value / 10000000 + "千万";
 
-                     }
 
-                     return value;
 
-                 }
 
-             },
 
-             splitArea : {show : true}
 
-         },
 
-         xAxis: {
 
-             type: 'category',
 
-             data: [
 
-                 <% for (const gcl of gclChapter) { %>
 
-                 <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
 
-                 '<%- gcl.code %>章',
 
-                 <% } %>
 
-                 <% } %>
 
-             ]
 
-         },
 
-         series: [
 
-             {
 
-                 name: '台账金额',
 
-                 type: 'bar',
 
-                 data: [
 
-                     <% for (const gcl of gclChapter) { %>
 
-                     <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
 
-                     <%- gcl.total_price %>,
 
-                     <% } %>
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name: '截止本期计量',
 
-                 type: 'bar',
 
-                 data: [
 
-                     <% for (const gcl of gclChapter) { %>
 
-                     <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
 
-                     <%- gcl.end_gather_tp %>,
 
-                     <% } %>
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart2.setOption(option2);
 
-     //4 标段期数计量进度//
 
-     var myChart3 = echarts.init(document.getElementById('chartContainer4')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option3 = {
 
-         <% if (ctx.tender.info.display.dayMode) { %>
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         <% } else { %>
 
-         color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(204,73,80,0.7)','rgba(58,207,221,0.7)','rgba(255,255,225,0.7)'],
 
-         backgroundColor: '#343a40 ',
 
-         <% } %>
 
-         title : {
 
-             text: ''
 
-         },
 
-         tooltip : {
 
-             trigger: 'axis',
 
-         },
 
-         calculable : true,
 
-         legend: {
 
-             itemWidth:15,
 
-             data:['本期合同计量','本期数量变更计量','截止上期完成','本期完成计量','完成度']
 
-         },
 
-         dataZoom: [
 
-             {show: true, start: 0, end: 100,height:10,bottom:30}
 
-         ],
 
-         xAxis : [
 
-             {
 
-                 type : 'category',
 
-                 splitLine : {show : true},
 
-                 data : [
 
-                     <% for (const s of stages) {%>
 
-                     '第<%- s.order %>期',
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ],
 
-         yAxis : [
 
-             {
 
-                 type : 'value',
 
-                 name : '金额',
 
-                 position:'left',
 
-                 axisLabel : {
 
-                     formatter: function (value, index) {
 
-                         if (value < 0) {
 
-                             let newValue = Math.abs(value);
 
-                             if (newValue >= 10000 && newValue < 10000000) {
 
-                                 newValue = newValue / 10000 + "万";
 
-                             } else if (newValue >= 10000000) {
 
-                                 newValue = newValue / 10000000 + "千万";
 
-                             }
 
-                             value = '-' + newValue;
 
-                         }
 
-                         if (value >= 10000 && value < 10000000) {
 
-                             value = value / 10000 + "万";
 
-                         } else if (value >= 10000000) {
 
-                             value = value / 10000000 + "千万";
 
-                         }
 
-                         return value;
 
-                     }
 
-                 },
 
-                 splitArea : {show : true},
 
-                 splitLine : {show : true},
 
-             },
 
-             {
 
-                 type : 'value',
 
-                 name:'完成度',
 
-                 axisLabel : {
 
-                     formatter: '{value} %'
 
-                 },
 
-                 position: 'right',
 
-                 splitArea : {show : false},
 
-                 splitLine : {show : false},
 
-             }
 
-         ],
 
-         series : [
 
-             {
 
-                 name:'本期合同计量',
 
-                 type:'bar',
 
-                 tooltip : {
 
-                     trigger: 'item',
 
-                     <% if (ctx.tender.info.display.thousandth) { %>
 
-                     formatter: function (params, ticket, callback) {
 
-                         return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
 
-                     }
 
-                     <% } else { %>
 
-                     tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                     <% } %>
 
-                 },
 
-                 stack: '合同',
 
-                 data:[
 
-                     <% for (const s of stages) {%>
 
-                     <%- s.contract_tp %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本期数量变更计量',
 
-                 type:'bar',
 
-                 tooltip : {
 
-                     trigger: 'item',
 
-                     <% if (ctx.tender.info.display.thousandth) { %>
 
-                     formatter: function (params, ticket, callback) {
 
-                         return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
 
-                     }
 
-                     <% } else { %>
 
-                     tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                     <% } %>
 
-                 },
 
-                 stack: '变更',
 
-                 data:[
 
-                     <% for (const s of stages) {%>
 
-                     <%- s.qc_tp %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'截止上期完成',
 
-                 type:'bar',
 
-                 tooltip : {
 
-                     trigger: 'item',
 
-                     <% if (ctx.tender.info.display.thousandth) { %>
 
-                     formatter: function (params, ticket, callback) {
 
-                         return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
 
-                     }
 
-                     <% } else { %>
 
-                     tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                     <% } %>
 
-                 },
 
-                 stack: '完成',
 
-                 data:[
 
-                     <% for (const s of stages) {%>
 
-                     <%- ctx.helper.add(s.pre_contract_tp, s.pre_qc_tp) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本期完成计量',
 
-                 type:'bar',
 
-                 tooltip : {
 
-                     trigger: 'item',
 
-                     <% if (ctx.tender.info.display.thousandth) { %>
 
-                     formatter: function (params, ticket, callback) {
 
-                         return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
 
-                     }
 
-                     <% } else { %>
 
-                     tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                     <% } %>
 
-                 },
 
-                 stack: '完成',
 
-                 data:[
 
-                     <% for (const s of stages) {%>
 
-                     <%- ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'完成度',
 
-                 type:'line',
 
-                 tooltip : {trigger: 'axis',formatter: "{b}占总标段<br/>{a}:{c} %"},
 
-                 yAxisIndex: 1,
 
-                 data:[
 
-                     <% for (const s of stages) {%>
 
-                     <%- ctx.helper.mul(ctx.helper.div(ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]), tender.sum, 2), 100) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart3.setOption(option3);
 
-     //4 标段期数计量进度//
 
-     //3 标段月进度//
 
-     // 基于准备好的dom,初始化echarts图表
 
-     var myChart4 = echarts.init(document.getElementById('chartContainer3')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option4 = {
 
-         <% if (ctx.tender.info.display.dayMode) { %>
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         <% } else { %>
 
-         color:["#17a2b8","#28a745"],
 
-         backgroundColor: '#343a40 ',
 
-         <% } %>
 
-         title : {
 
-             text: ''
 
-         },
 
-         tooltip : {
 
-             trigger: 'axis',
 
-             formatter: function (params, ticket, callback) {
 
-                 let sHint = '';
 
-                 for (const param of params) {
 
-                     if (sHint !== '') {
 
-                         sHint += '<br>';
 
-                     }
 
-                     if (sHint === '' && param.name !== '') {
 
-                         sHint = param.name + '<br>';
 
-                     }
 
-                     sHint += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + param.color +'"></span>';
 
-                     if (param.data) {
 
-                         sHint += param.seriesName + ': ' + param.data + ' %';
 
-                     } else {
 
-                         sHint += param.seriesName + ': -';
 
-                     }
 
-                 }
 
-                 return sHint;
 
-             },
 
-         },
 
-         legend: {
 
-             data:['截止本月完成','本月完成']
 
-         },
 
-         toolbox: {
 
-             show : true,
 
-             right:'3%',
 
-             feature : {
 
-                 magicType : {
 
-                     show: true,
 
-                     type: ['line', 'bar'],
 
-                     title:{
 
-                         line:'切换为折线图',
 
-                         bar:'切换为柱状图'
 
-                     }
 
-                 }
 
-             }
 
-         },
 
-         dataZoom : {
 
-             show : true,
 
-             start : 50,
 
-             end : 100,
 
-             height:10,
 
-             bottom:30
 
-         },
 
-         xAxis : [
 
-             {
 
-                 type : 'category',
 
-                 boundaryGap : true,
 
-                 data : [
 
-                     <% for (const mp of monthProgress) { %>
 
-                     '<%- mp.month %>',
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ],
 
-         yAxis : [
 
-             {
 
-                 type : 'value',
 
-                 axisLabel : {
 
-                     formatter: '{value} %'
 
-                 },
 
-                 splitArea : {show : true}
 
-             }
 
-         ],
 
-         series : [
 
-             {
 
-                 name:'截止本月完成',
 
-                 type:'line',
 
-                 itemStyle: {
 
-                     normal: {
 
-                         lineStyle: {
 
-                             shadowColor : 'rgba(0,0,0,0.4)',
 
-                             shadowBlur: 5,
 
-                             shadowOffsetX: 3,
 
-                             shadowOffsetY: 3
 
-                         }
 
-                     }
 
-                 },
 
-                 areaStyle: { // 区域填充样式
 
-                     color: { // 填充的颜色 // 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置
 
-                         type: 'linear',
 
-                         x: 0,
 
-                         y: 0,
 
-                         x2: 0,
 
-                         y2: 1,
 
-                         colorStops: [
 
-                             {
 
-                                 offset: 0,
 
-                                 color: 'rgba(37,234,255,0.7)', // 0% 处的颜色
 
-                             },
 
-                             {
 
-                                 offset: 1,
 
-                                 color: 'rgba(37,234,255,0.7)' // 100% 处的颜色
 
-                             }
 
-                         ],
 
-                         global: false, // 缺省为 false
 
-                     }
 
-                 },
 
-                 data:[
 
-                     <% for (const mp of monthProgress) { %>
 
-                     <%- mp.end_ratio %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本月完成',
 
-                 type:'line',
 
-                 itemStyle: {
 
-                     normal: {
 
-                         lineStyle: {
 
-                             shadowColor : 'rgba(0,0,0,0.4)',
 
-                             shadowBlur: 5,
 
-                             shadowOffsetX: 3,
 
-                             shadowOffsetY: 3
 
-                         }
 
-                     }
 
-                 },
 
-                 areaStyle: { // 区域填充样式
 
-                     color: { // 填充的颜色 // 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置
 
-                         type: 'linear',
 
-                         x: 0,
 
-                         y: 0,
 
-                         x2: 0,
 
-                         y2: 1,
 
-                         colorStops: [
 
-                             {
 
-                                 offset: 0,
 
-                                 color: 'rgba(40,167,69,0.7)', // 0% 处的颜色
 
-                             },
 
-                             {
 
-                                 offset: 1,
 
-                                 color: 'rgba(40,167,69,0.7)' // 100% 处的颜色
 
-                             }
 
-                         ],
 
-                         global: false, // 缺省为 false
 
-                     }
 
-                 },
 
-                 data:[
 
-                     <% for (const mp of monthProgress) { %>
 
-                     <%- mp.ratio %>,
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart4.setOption(option4);
 
-     //3 标段月进度//
 
-     //变更审批进度//
 
-     var myChart5 = echarts.init(document.getElementById('bgchart')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
 
-     var option5 = {
 
-         <% if (ctx.tender.info.display.dayMode) { %>
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         <% } else {%>
 
-         color: ['rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(255,255,225,0.7)'],
 
-         backgroundColor: '#343a40 ',
 
-         <% } %>
 
-         tooltip: {
 
-             trigger: 'item'
 
-         },
 
-         // legend: {
 
-         //     top: '0%',
 
-         //     right: '0%',
 
-         //     orient:'vertical',
 
-         //     itemWidth:15,
 
-         //     data: ['一般变更', '较大变更', '重大变更', '待上报', '审批中', '已完成']
 
-         // },
 
-         legend:[{
 
-             top: '0%',
 
-             right: '0%',
 
-             orient:'vertical',
 
-             itemWidth:15,
 
-             data:['一般变更','较大变更','重大变更']
 
-         },{
 
-             top: '0%',
 
-             right: '35%',
 
-             orient:'vertical',
 
-             itemWidth:15,
 
-             data:['待上报','审批中','已完成']
 
-         }],
 
-         series: [
 
-             {
 
-                 name: '数量',
 
-                 type: 'pie',
 
-                 top:'0%',
 
-                 right:'65%',
 
-                 selectedMode: 'single',
 
-                 radius:  '50%',
 
-                 avoidLabelOverlap: false,
 
-                 label: {
 
-                     show:false,
 
-                     //position: 'inner',
 
-                     //fontSize: 14,
 
-                 },
 
-                 labelLine: {
 
-                     show: false
 
-                 },
 
-                 data: [
 
-                     <% for (const cs of change_status_total) { %>
 
-                     {value: <%- cs.num %>, name: '<%- cs.name %>'},
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name: '数量',
 
-                 type: 'pie',
 
-                 top:'0%',
 
-                 right:'65%',
 
-                 radius: ['70%', '100%'],
 
-                 avoidLabelOverlap: false,
 
-                 label: {
 
-                     show: false,
 
-                     position: 'center'
 
-                 },
 
-                 emphasis: {
 
-                     label: {
 
-                         show: false,
 
-                         //fontSize: '14',
 
-                         //fontWeight: 'bold'
 
-                     }
 
-                 },
 
-                 labelLine: {
 
-                     //show: false,
 
-                     length: 20,
 
-                 },
 
-                 data: [
 
-                     <% for (const cq of change_quality_total) { %>
 
-                     {value: <%- cq.num %>, name: '<%- cq.name %>'},
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart5.setOption(option5);
 
-     function echartsReset() {
 
-         myChart.resize();
 
-         myChart1.resize();
 
-         myChart2.resize();
 
-         myChart3.resize();
 
-         myChart4.resize();
 
-         myChart5.resize();
 
-     }
 
-     $(function () {
 
-         $('#change-echarts a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
 
-             myChart3.resize();
 
-             myChart4.resize();
 
-         });
 
-         $('#showFull').click(function () {
 
-             const full=document.getElementById("big-data");
 
-             launchIntoFullscreen(full);
 
-             // $('#exitFull').show();
 
-             // $('#showFull').hide();
 
-         });
 
-         $('#exitFull').click(function () {
 
-             exitFullscreen();
 
-             // $('#exitFull').hide();
 
-             // $('#showFull').show();
 
-         })
 
-     })
 
-     $(window).resize(echartsReset);
 
-     // 数据全屏
 
-     function launchIntoFullscreen(element) {
 
-         if(element.requestFullscreen){
 
-             element.requestFullscreen();
 
-         }
 
-         else if(element.mozRequestFullScreen) {
 
-             element.mozRequestFullScreen();
 
-         }
 
-         else if(element.webkitRequestFullscreen) {
 
-             element.webkitRequestFullscreen();
 
-         }
 
-         else if(element.msRequestFullscreen) {
 
-             element.msRequestFullscreen();
 
-         }
 
-     }
 
-     function exitFullscreen() {
 
-         if(document.exitFullscreen) {
 
-             document.exitFullscreen();
 
-         } else if(document.mozCancelFullScreen) {
 
-             document.mozCancelFullScreen();
 
-         } else if(document.webkitExitFullscreen) {
 
-             document.webkitExitFullscreen();
 
-         }
 
-     }
 
-     document.addEventListener("fullscreenchange", function (event) {
 
-         if (document.fullscreenElement) {
 
-             $('#exitfull-div').show();
 
-             $('#showFull').hide();
 
-         } else {
 
-             $('#exitfull-div').hide();
 
-             $('#showFull').show();
 
-         }
 
-     });
 
- </script>
 
- <script src="/public/js/sub_menu.js"></script>
 
- <script>
 
-     $.subMenu({
 
-         menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
 
-         toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
 
-         key: 'menu.1.0.0',
 
-         miniHint: '#sub-mini-hint', hintKey: 'menu.hint.1.0.1',
 
-         callback: function (info) {
 
-             if (info.mini) {
 
-                 $('.panel-title').addClass('fluid');
 
-                 $('#sub-menu').removeClass('panel-sidebar');
 
-             } else {
 
-                 $('.panel-title').removeClass('fluid');
 
-                 $('#sub-menu').addClass('panel-sidebar');
 
-             }
 
-             autoFlashHeight();
 
-             echartsReset();
 
-         }
 
-     });
 
- </script>
 
- <script>
 
-     const tenderId = parseInt('<%- tender.id %>');
 
-     const auditType = JSON.parse('<%- JSON.stringify(audit.auditType) %>');
 
-     $(document).ready(function () {
 
-         const getAuditTypeText = function (type) {
 
-             if (type === auditType.key.common) return '';
 
-             return `<span class="text-${auditType.info[type].class}">${auditType.info[type].long}</span>`;
 
-         };
 
-         const loadStageHistory = function (result, auditConst) {
 
-             const { auditHistory, auditors2, user } = result;
 
-             let historyHTML = [];
 
-             const darkHTML = !dayMode ? 'bg-dark border-secondary text-white' : '';
 
-             const textClass = !dayMode ? 'text-light' : '';
 
-             auditHistory.forEach((his, idx) => {
 
-                 if (idx === auditHistory.length - 1 && auditHistory.length !== 1) {
 
-                     historyHTML.push(`<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a></div>`);
 
-                 }
 
-                 historyHTML.push(`<div class="${idx < auditHistory.length - 1 ? 'fold-card' : ''}">`);
 
-                 historyHTML.push(`<div class="text-center text-muted">${idx+1}#</div>`);
 
-                 historyHTML.push(`<ul class="timeline-list list-unstyled mt-2 pr-1 ${ idx === auditHistory.length - 1 && auditHistory.length !== 1 ? 'last-auditor-list' : '' }">`);
 
-                 his.forEach((group, index) => {
 
-                     if (index === 0) {
 
-                         historyHTML.push(`<li class="timeline-list-item pb-2">
 
-                                             <div class="timeline-item-date">
 
-                                                 ${group.beginYear}
 
-                                                 <span class="${textClass}">${group.beginDate}</span>
 
-                                                 <span class="${textClass}">${group.beginTime}</span>
 
-                                             </div>
 
-                                             <div class="timeline-item-tail"></div>
 
-                                             <div class="timeline-item-icon bg-success text-light"><i class="fa fa-caret-down"></i></div>
 
-                                             <div class="timeline-item-content">
 
-                                                 <div class="py-1">
 
-                                                     <span>原报</span>
 
-                                                     <span class="pull-right text-success">${idx !== 0 ? '重新' : '' }上报审批</span>
 
-                                                 </div>
 
-                                                 <div class="card ${darkHTML}">
 
-                                                     <div class="card-body px-3 py-0">
 
-                                                         <div class="card-text p-2 py-3 row">
 
-                                                             <div class="col">
 
-                                                                 <span class="h6">${user.name}</span>
 
-                                                                 <span class="text-muted ml-1">${user.role}</span>
 
-                                                             </div>
 
-                                                             <div class="col">
 
-                                                                 <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
 
-                                                             </div>
 
-                                                         </div>
 
-                                                     </div>
 
-                                                 </div>
 
-                                             </div>
 
-                                         </li>`);
 
-                     }
 
-                     historyHTML.push(`<li class="timeline-list-item pb-2 ${ group.status === auditConst.status.uncheck && idx === auditHistory.length - 1 && auditHistory.length !== 1 ? 'is_uncheck' : ''}">`);
 
-                     if (group.endYear) {
 
-                         historyHTML.push(`<div class="timeline-item-date ${textClass}">${group.endYear}<span class="${textClass}">${group.endDate}</span><span class="${textClass}">${group.endTime}</span></div>`);
 
-                     }
 
-                     if (index < his.length - 1) {
 
-                         historyHTML.push('<div class="timeline-item-tail"></div>');
 
-                     }
 
-                     if (group.status === auditConst.status.checked) {
 
-                         historyHTML.push('<div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>');
 
-                     } else if (group.status === auditConst.status.checkNo || group.status === auditConst.status.checkNoPre || group.status === auditConst.status.checkCancel) {
 
-                         historyHTML.push('<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>');
 
-                     } else if (group.status === auditConst.status.checking) {
 
-                         historyHTML.push('<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>');
 
-                     } else {
 
-                         historyHTML.push('<div class="timeline-item-icon bg-secondary text-light"></div>');
 
-                     }
 
-                     historyHTML.push('<div class="timeline-item-content">');
 
-                     const statuStr = group.status !== auditConst.status.uncheck ?
 
-                         `<span class="pull-right ${auditConst.statusClass[group.status]}">${auditConst.statusString[group.status]}</span>` : '';
 
-                     historyHTML.push(`<div class="py-1">
 
-                         <span class="">
 
-                         ${ !group.is_final ? group.audit_order + '' : '终' }审 ${getAuditTypeText(group.audit_type)}
 
-                         </span>
 
-                         ${statuStr}
 
-                     </div>`);
 
-                     historyHTML.push(`<div class="card ${darkHTML}"><div class="card-body px-3 py-0">`);
 
-                     for (const [i, auditor] of group.auditors.entries()) {
 
-                         historyHTML.push(`<div class="card-text p-2 py-3 row ${ ( i > 0 ? 'border-top' : '') }">`);
 
-                         historyHTML.push(`<div class="col"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.role}</span></div>`);
 
-                         historyHTML.push('<div class="col">');
 
-                         if (auditor.status === auditConst.status.checked) {
 
-                             historyHTML.push('<span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>');
 
-                         } if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre || auditor.status === auditConst.status.checkCancel) {
 
-                             historyHTML.push('<span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>');
 
-                         }
 
-                         historyHTML.push('</div>');
 
-                         if (auditor.opinion) {
 
-                             historyHTML.push(`<div class="col-12 py-1"><i class="fa fa-commenting-o mr-1"></i>${auditor.opinion}</div>`);
 
-                         }
 
-                         historyHTML.push('</div>');
 
-                     }
 
-                     historyHTML.push('</div></div>');
 
-                     historyHTML.push('</div>');
 
-                     historyHTML.push('</li>');
 
-                 });
 
-                 historyHTML.push('</div>');
 
-                 historyHTML.push('</ul>');
 
-             });
 
-             $('#audit-list').empty();
 
-             $('#audit-list').append(historyHTML.join(''));
 
-         }
 
-         const loadHistory = function (result, auditConst) {
 
-             const { auditHistory, auditors, user } = result
 
-             let historyHTML = ''
 
-             const leftAuditors = auditors;
 
-             const darkHTML = !dayMode ? 'bg-dark border-secondary text-white' : '';
 
-             auditHistory.forEach((auditors, idx) => {
 
-                 if(idx === auditHistory.length - 1 && auditHistory.length !== 1) {
 
-                     historyHTML += `<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show"
 
-                     >展开历史审批流程</a></div>`
 
-                 }
 
-                 historyHTML += `<div class="${idx < auditHistory.length - 1 ? 'fold-card' : ''}">
 
-                 <div class="text-center text-muted">${idx + 1}#</div>
 
-                 <ul class="timeline-list list-unstyled mt-2">`
 
-                 auditors.forEach((auditor, index) => {
 
-                     if (index === 0) {
 
-                         historyHTML += `<li class="timeline-list-item pb-2">
 
-                             <div class="timeline-item-date">
 
-                                 ${formatDate(auditor.begin_time, !dayMode)}
 
-                             </div>
 
-                             <div class="timeline-item-tail"></div>
 
-                             <div class="timeline-item-icon bg-success text-light">
 
-                                 <i class="fa fa-caret-down"></i>
 
-                             </div>
 
-                             <div class="timeline-item-content">
 
-                                 <div class="card ${darkHTML}">
 
-                                     <div class="card-body p-3">
 
-                                         <div class="card-text">
 
-                                             <p class="mb-1"><span
 
-                                                     class="h5">${user.name}</span><span
 
-                                                     class="pull-right text-success">${idx !== 0 ? '重新' : ''}上报审批</span>
 
-                                             </p>
 
-                                             <p class="text-muted mb-0">${user.role}</p>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </li>
 
-                         <li class="timeline-list-item pb-2">
 
-                             <div class="timeline-item-date">
 
-                                 ${formatDate(auditor.end_time, !dayMode)}
 
-                             </div>`
 
-                         if(index < auditors.length - 1) {
 
-                             historyHTML += `<div class="timeline-item-tail"></div>`
 
-                         }
 
-                         if(auditor.status === auditConst.status.checked) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-success text-light">
 
-                                     <i class="fa fa-check"></i>
 
-                                 </div>`
 
-                         } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 
-                                     <i class="fa fa-level-up"></i>
 
-                                 </div>`
 
-                         } else if(auditor.status === auditConst.status.checking) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 
-                                     <i class="fa fa-ellipsis-h"></i>
 
-                                 </div>`
 
-                         } else {
 
-                             historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
 
-                         }
 
-                         historyHTML += `<div class="timeline-item-content">
 
-                                 <div class="card ${darkHTML}">
 
-                                     <div class="card-body p-3">
 
-                                         <div class="card-text">
 
-                                             <p class="mb-1"><span class="h5">${auditor.name}</span><span
 
-                                                     class="pull-right ${auditConst.statusClass[auditor.status]}">${auditConst.statusString[auditor.status]}</span>
 
-                                             </p>
 
-                                             <p class="text-muted mb-0">${auditor.role}</p>
 
-                                         </div>
 
-                                     </div>`
 
-                         if (auditor.opinion) {
 
-                             historyHTML += `<div class="card-body p-3 border-top">
 
-                                     <p style="margin: 0;">${auditor.opinion}</p>
 
-                                 </div>`
 
-                         }
 
-                         historyHTML += `</div></div></li>`
 
-                     } else {
 
-                         historyHTML += `<li class="timeline-list-item pb-2">
 
-                         <div class="timeline-item-date">
 
-                             ${formatDate(auditor.end_time, !dayMode)}
 
-                         </div>`
 
-                         if(index < auditors.length - 1) {
 
-                             historyHTML += `<div class="timeline-item-tail"></div>`
 
-                         }
 
-                         if(auditor.status === auditConst.status.checked) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-success text-light">
 
-                                 <i class="fa fa-check"></i>
 
-                             </div>`
 
-                         } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 
-                                 <i class="fa fa-level-up"></i>
 
-                             </div>`
 
-                         } else if(auditor.status === auditConst.status.checking) {
 
-                             historyHTML += `<div class="timeline-item-icon bg-warning text-light">
 
-                                 <i class="fa fa-ellipsis-h"></i>
 
-                             </div>`
 
-                         } else {
 
-                             historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
 
-                         }
 
-                         historyHTML += `<div class="timeline-item-content">
 
-                         <div class="card ${darkHTML}">
 
-                             <div class="card-body p-3">
 
-                                 <div class="card-text">
 
-                                     <p class="mb-1"><span class="h5">${auditor.name}</span>
 
-                                         <span
 
-                                             class="pull-right
 
-                                                             ${auditConst.statusClass[auditor.status]}">${auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''}
 
-                                             ${auditor.status === auditConst.status.checkNo ? user.name : ''}
 
-                                             ${auditor.status === auditConst.status.checkNoPre ? (leftAuditors.find(item => item.order === auditor.sort-1) ? leftAuditors.find(item => item.order === auditor.sort-1).name : '') : ''}
 
-                                         </span>
 
-                                     </p>
 
-                                     <p class="text-muted mb-0">${auditor.role}</p>
 
-                                 </div>
 
-                             </div>`
 
-                         if (auditor.opinion) {
 
-                             historyHTML += `<div class="card-body p-3 border-top">
 
-                             <p style="margin: 0;">${auditor.opinion} </p>
 
-                         </div>`
 
-                         }
 
-                         historyHTML += `</div></div></li>`
 
-                     }
 
-                 })
 
-                 historyHTML += '</ul></div>'
 
-             })
 
-             $('#audit-list').empty()
 
-             $('#audit-list').append(historyHTML);
 
-         };
 
-         // 获取审批流程
 
-         $('a[data-target="#sp-list" ]').on('click', function () {
 
-             const type = $(this).attr('data-type');
 
-             const data = {
 
-                 order: $(this).attr('data-order'),
 
-             };
 
-             let url = '';
 
-             let auditConst = '';
 
-             if (type === 'stage') {
 
-                 url = '/tender/' + tenderId + '/measure/stage/auditors';
 
-                 auditConst = JSON.parse('<%- JSON.stringify(audit.stage) %>');
 
-             } else if (type === 'ledger') {
 
-                 url = '/tender/' + tenderId + '/measure/ledger/auditors';
 
-                 auditConst = JSON.parse('<%- JSON.stringify(audit.ledger) %>');
 
-             } else if (type === 'material') {
 
-                 url = '/tender/' + tenderId + '/measure/material/auditors';
 
-                 auditConst = JSON.parse('<%- JSON.stringify(audit.material) %>');
 
-             }
 
-             postData(url, data, function (result) {
 
-                 if (type === 'stage'|| type === 'ledger' || type === 'material') {
 
-                     loadStageHistory(result, auditConst);
 
-                 } else {
 
-                     loadHistory(result, auditConst);
 
-                 }
 
-             });
 
-         });
 
-         // 展开/收起历史审核记录
 
-         $('#audit-list').on('click', 'a', function() {
 
-             const type = $(this).data('target')
 
-             const auditCard = $(this).parent().parent()
 
-             console.log('auditCard', auditCard)
 
-             if (type === 'show') {
 
-                 $(this).data('target', 'hide')
 
-                 auditCard.find('.fold-card').slideDown('swing', () => {
 
-                     auditCard.find('#end-target').text($(this).data('idx') + '#')
 
-                     auditCard.find('#fold-btn').text('收起历史审核记录')
 
-                 })
 
-             } else {
 
-                 $(this).data('target', 'show')
 
-                 auditCard.find('.fold-card').slideUp('swing', () => {
 
-                     auditCard.find('#end-target').text('1#')
 
-                     auditCard.find('#fold-btn').text('展开历史审核记录')
 
-                 })
 
-             }
 
-         });
 
-         function formatDate(date, dayMode) {
 
-             if (!date) return '';
 
-             date = new Date(date)
 
-             const year = date.getFullYear();
 
-             let mon = date.getMonth() + 1;
 
-             let day = date.getDate();
 
-             let hour = date.getHours();
 
-             let minute = date.getMinutes();
 
-             let scond = date.getSeconds();
 
-             if (mon < 10) {
 
-                 mon = '0' + mon.toString();
 
-             }
 
-             if (day < 10) {
 
-                 day = '0' + day.toString();
 
-             }
 
-             if (hour < 10) {
 
-                 hour = '0' + hour.toString();
 
-             }
 
-             if (minute < 10) {
 
-                 minute = '0' + minute.toString();
 
-             }
 
-             if (scond < 10) {
 
-                 scond = '0' + scond.toString();
 
-             }
 
-             return `${year}<span class="${dayMode ? 'text-light' : ''}">${mon}-${day}</span><span class="${dayMode ? 'text-light' : ''}">${hour}:${minute}:${scond}</span>`;
 
-         };
 
-     })
 
- </script>
 
 
  |