123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013 |
- <link href="/public/css/bootstrap/bootstrap-colorpicker.min.css" rel="stylesheet">
- <div class="panel-content" style="background:#2c3237 !important">
- <div class="panel-title fluid border-top-0" style="background:#2c3237 !important">
- <div class="title-main d-flex justify-content-between">
- <div class="d-inline-block mr-2">
- <div class="btn-group" id="first-category">
- <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
- <div class="dropdown-menu" aria-labelledby="zhankai">
- <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
- <% if (categoryData.length > 0 && categoryData[0].value.length > 0) { %>
- <% for (const c of categoryData[0].value) { %>
- <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
- <% } %>
- <% } %>
- </div>
- </div>
- <% if (categoryData[1] && categoryData[1].value.length > 0) { %>
- <div class="btn-group" id="second-category" style="display: none">
- <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
- <div class="dropdown-menu" aria-labelledby="zhankai">
- <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
- <% for (const c of categoryData[1].value) { %>
- <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
- <% } %>
- </div>
- </div>
- <% } %>
- <% if (categoryData[2] && categoryData[2].value.length > 0) { %>
- <div class="btn-group" id="third-category" style="display: none">
- <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
- <div class="dropdown-menu" aria-labelledby="zhankai">
- <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
- <% for (const c of categoryData[2].value) { %>
- <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
- <% } %>
- </div>
- </div>
- <% } %>
- </div>
- <div>
- <a href="javascript:void(0)" title="全屏显示" id="showFull" class="text-white"><i class="fa fa-arrows-alt"></i></a>
- <div class="btn-group">
- <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-toggle="dropdown" id="zhankai">决策大屏<span><%- ctx.subProject.data_collect %></span></button>
- <div class="dropdown-menu" aria-labelledby="zhankai">
- <% for (const i of ctx.subProject.data_collect_pages) { %>
- <% if (i === '6') { %>
- <a class="dropdown-item" href="/sp/<%- ctx.subProject.id %>/datacollect/index/<%- i %>">决策大屏<%- i %></a>
- <% } else { %>
- <a class="dropdown-item change-collect" href="javascript:void(0)" data-collect="<%- i %>">决策大屏<%- i %></a>
- <% } %>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="content-wrap" id="big-data">
- <div style="height: 30px;background-color: #2c3237; display: none" 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" style="background:#2c3237 !important">
- <div class="flex-content" data-content="1" <% if (ctx.subProject.data_collect !== 1 && ctx.subProject.data_collect !== 3) { %>style="display: none"<% } %>>
- <div class="row">
- <div class="col-3 pr-0">
- <div class="left-content">
- <div class="left-card-content">
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-1 height-100">
- <div class="card-body card-per-body">
- <div class="row">
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_num">0</h5>
- <p class="card-text card-case-text text-muted">标段个数</p>
- </div>
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_rate">0%</h5>
- <p class="card-text card-case-text text-muted">计量进度</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_price">0.00</h5>
- <p class="card-text card-case-text text-muted">台账金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
- <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
- <p class="card-text text-muted">已批复变更金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
- <p class="card-text text-muted">变更后金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
- <p class="card-text text-muted">累计完成金额</p>
- </div>
- </div>
- </div>
- <!--<div class="height-20">-->
- <!--<div class="card text-center bg-dark text-white ml-2 mr-2 height-100">-->
- <!--<div class="card-body card-per-body">-->
- <!--<h5 class="card-title card-case-title data_total_material_price">0.00</h5>-->
- <!--<p class="card-text text-muted">材料调差</p>-->
- <!--</div>-->
- <!--</div>-->
- <!--</div>-->
- </div>
- <!--饼图-->
- <div class="left-chart">
- <div class="card height-100 bg-dark mt-2 ml-2 mr-2">
- <div id="jechart" class="jechart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0 pr-0">
- <div class="center-content mr-2">
- <div class="center-chart-content">
- <div class="center-di">
- <div class="card bg-dark height-100">
- <div class="jlchart" data-chart-num="1" id="jlchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 3) { %>display:none;<% } %>"></div>
- <div class="di-content mb-2" id="map1" style="background: #343A40; width: 100%; <% if (ctx.subProject.data_collect === 1) { %>display:none;<% } %>">
- </div>
- </div>
- </div>
- <div class="center-chart">
- <div class="card height-100 bg-dark mt-2">
- <div class="jlchart" data-chart-num="2" id="jlchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 1) { %>display:none;<% } %>"></div>
- <div class="di-content mb-2" <% if (ctx.subProject.data_collect === 3) { %>style="display:none;"<% } %>>
- <div class="jldbchart" data-chart-num="1" id="jldbchart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="center-table">
- <div class="card height-100 bg-dark mt-2">
- <h6 class="bg-dark text-center text-white m-0 py-3">标段明细数据</h6>
- <div class="tablebox">
- <table id="tableId">
- <thead>
- <tr>
- <th>标段</th>
- <th>期数</th>
- <th>0号台账</th>
- <th>本期完成</th>
- <th>截止本期完成</th>
- <th>本期应付</th>
- <th>截止本期应付</th>
- </tr>
- </thead>
- <tbody class="stage-data">
- </tbody>
- </table>
- <table id="tableId1"></table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-3 pl-0">
- <div class="right-content">
- <div class="right-chart-content">
- <div class="right-month">
- <h6 class="card bg-dark text-center text-white m-0 pt-2 pb-3">本月审批统计</h6>
- <div class="row right-month-height">
- <div class="col-6 pr-0 height-50">
- <div class="card text-center bg-dark text-white border-right-0 border-botton-0 height-100">
- <div class="card-body card-small-body height-100">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_stage_num">0</span><small class="small-text">期</small></h5>
- <p class="card-text text-muted height-50">计量期</p>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0 height-50">
- <div class="card text-center bg-dark text-white border-botton-0 height-100">
- <div class="card-body card-small-body height-100">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_change_num">0</span><small class="small-text">条</small></h5>
- <p class="card-text text-muted height-50">变更令</p>
- </div>
- </div>
- </div>
- <div class="col-6 pr-0 height-50">
- <div class="card text-center bg-dark text-white border-right-0 border-top-0 height-100">
- <div class="card-body card-small-body height-100">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_revise_num">0</span><small class="small-text">次</small></h5>
- <p class="card-text text-muted height-50">台账修订</p>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0 height-50">
- <div class="card text-center bg-dark text-white border-top-0 height-100">
- <div class="card-body card-small-body height-100">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_material_num">0</span><small class="small-text">期</small></h5>
- <p class="card-text text-muted height-50">材料调差</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="right-chart">
- <div class="card height-100 bg-dark">
- <div class="jlwcdchart" id="jlwcdchart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- <div class="right-biaoduan">
- <div class="card height-100 bg-dark mt-2">
- <h6 class="bg-dark text-center text-white m-0 py-3">标段审批信息</h6>
- <div id="review_box" class="review_box m-0 p-3 mb-2">
- <ul class="list-unstyled list-comment" id="comment1">
- <% for (const notice of noticeList) { %>
- <% if(notice.type === pushType.stage) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-success">计量审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.material) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.ledger) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账审批</span></div>
- <div class="col-10 text-white">
- <a data-id="<%- notice.id %>"href="/tender/<%- notice.tid %>/ledger" class="text-white"><%- notice.name %></a> <span class="<%- acLedger.statusClass[notice.status] %>"><%- acLedger.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.revise) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账修订</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/revise/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
- <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.change){ %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
- <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.advance) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-warning">预付款</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
- <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } %>
- <% } %>
- </ul>
- <ul id="comment2" class="list-comment"></ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="flex-content" data-content="2" <% if (ctx.subProject.data_collect !== 2 && ctx.subProject.data_collect !== 4) { %>style="display: none"<% } %>>
- <div class="mx-3">
- <div class="row">
- <div class="col-6 pr-1">
- <div class="left-content">
- <div class="left-small-card-content ml-3">
- <div class="row height-100">
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white ml-0 mr-0 height-100">
- <div class="card-body card-per-body">
- <div class="row height-100">
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_num">0</h5>
- <p class="card-text card-case-text text-muted">标段个数</p>
- </div>
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_rate">0%</h5>
- <p class="card-text card-case-text text-muted">计量进度</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_price">0.00</h5>
- <p class="card-text card-case-text text-muted">台账金额</p>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white height-100">
- <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
- <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
- <p class="card-text text-muted">已批复变更金额</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="left-big-chart-content">
- <div class="card height-60 bg-dark mt-2 mb-2">
- <div class="jlchart" id="jlchart" style="height: 100%; width: 100%;"></div>
- </div>
- <div class="height-36">
- <div class="row height-100">
- <div class="col-6 pr-2">
- <div class="left-bottom-chart height-100">
- <div class="card height-100 bg-dark">
- <div class="jlwcdchart" id="jlwcdchart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0">
- <div class="left-bottom-chart height-100">
- <div class="card height-100 bg-dark">
- <div id="tztjchart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-6 pl-1 pr-0">
- <div class="right-content">
- <div class="right-small-card-content mx-3">
- <div class="row height-100">
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white mb-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
- <p class="card-text text-muted">变更后金额</p>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
- <p class="card-text card-case-text text-muted">累计完成金额</p>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0">
- <div class="card text-center bg-dark text-white height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_advance_price">0.00</h5>
- <p class="card-text card-case-text text-muted">预付款</p>
- </div>
- </div>
- </div>
- <!--<div class="col-4 pl-0">-->
- <!--<div class="card text-center bg-dark text-white height-100">-->
- <!--<div class="card-body card-per-body">-->
- <!--<h5 class="card-title card-case-title data_total_material_price">0.00</h5>-->
- <!--<p class="card-text card-case-text text-muted">材料调差</p>-->
- <!--</div>-->
- <!--</div>-->
- <!--</div>-->
- </div>
- </div>
- <div class="right-big-chart-content mr-3">
- <div class="height-60 mt-2">
- <div class="card height-100 bg-dark">
- <div class="jldbchart" data-chart-num="2" id="jldbchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 4) { %>display:none;<% } %>"></div>
- <div class="di-content mb-2" id="map2" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 2) { %>display:none;<% } %>"></div>
- </div>
- </div>
- <div class="height-36 mt-2">
- <div class="height-100 right-bottom-50-fl">
- <div class="left-bd-scroll height-100 mr-1">
- <div class="card bg-dark height-100">
- <h6 class="bg-dark text-center text-white m-0 py-3">标段审批信息</h6>
- <div id="review_box2" class="review_box m-0 p-3 mb-2 height-100">
- <ul class="list-unstyled list-comment" id="comment3">
- <% for (const notice of noticeList) { %>
- <% if(notice.type === pushType.stage) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-success">计量审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.material) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.ledger) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账审批</span></div>
- <div class="col-10 text-white">
- <a data-id="<%- notice.id %>"href="/tender/<%- notice.tid %>/ledger" class="text-white"><%- notice.name %></a> <span class="<%- acLedger.statusClass[notice.status] %>"><%- acLedger.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.revise) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账修订</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/revise/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
- <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.change){ %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
- <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.advance) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-warning">预付款</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
- <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } %>
- <% } %>
- </ul>
- <ul id="comment4" class="list-comment"></ul>
- </div>
- </div>
- </div>
- </div>
- <div class="height-100 right-bottom-50-fl">
- <div class="right-month height-100 ml-1">
- <h6 class="card bg-dark text-center text-white m-0 py-3">本月审批统计</h6>
- <div class="row right-month-height">
- <div class="col-6 pr-0">
- <div class="card text-center bg-dark text-white border-right-0 border-botton-0 height-100">
- <div class="card-body card-small-body">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_stage_num">0</span><small class="small-text">期</small></h5>
- <p class="card-text text-muted height-50">计量期</p>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0">
- <div class="card text-center bg-dark text-white border-botton-0 height-100">
- <div class="card-body card-small-body">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_change_num">0</span><small class="small-text">条</small></h5>
- <p class="card-text text-muted height-50">变更令</p>
- </div>
- </div>
- </div>
- <div class="col-6 pr-0">
- <div class="card text-center bg-dark text-white border-right-0 border-top-0 height-100">
- <div class="card-body card-small-body">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_revise_num">0</span><small class="small-text">次</small></h5>
- <p class="card-text text-muted height-50">台账修订</p>
- </div>
- </div>
- </div>
- <div class="col-6 pl-0">
- <div class="card text-center bg-dark text-white border-top-0 height-100">
- <div class="card-body card-small-body">
- <h5 class="card-title card-approve-title height-50"><span class="card-approve-big month_material_num">0</span><small class="small-text">期</small></h5>
- <p class="card-text text-muted height-50">材料调差</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <% if (ctx.helper._.includes(ctx.subProject.data_collect_pages, '5')) { %>
- <div class="flex-content" data-content="5" <% if (ctx.subProject.data_collect !== 5) { %>style="display: none"<% } %>>
- <div class="row">
- <div class="col-3 pr-0">
- <div class="left-content">
- <div class="left-card-content">
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-1 height-100">
- <div class="card-body card-per-body">
- <div class="row">
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_num">0</h5>
- <p class="card-text card-case-text text-muted">工区个数</p>
- </div>
- <div class="col-6">
- <h5 class="card-title card-case-title data_tender_rate">0%</h5>
- <p class="card-text card-case-text text-muted">计量进度</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_price">0.00</h5>
- <p class="card-text card-case-text text-muted">台账金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
- <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
- <p class="card-text text-muted">已批复变更金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
- <p class="card-text text-muted">变更后金额</p>
- </div>
- </div>
- </div>
- <div class="height-20 mb-2">
- <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
- <div class="card-body card-per-body">
- <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
- <p class="card-text text-muted">累计完成金额</p>
- </div>
- </div>
- </div>
- </div>
- <!--饼图-->
- <div class="left-chart">
- <div class="card height-100 bg-dark mt-2 ml-2 mr-2">
- <div id="jechart5" class="jechart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-9 pl-0">
- <div class="center-content">
- <div class="center-chart-content">
- <div class="height-100">
- <div class="row pl-0 pr-0 center-di">
- <div class="col-12">
- <div class="card bg-dark height-100">
- <div class="jlchart" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- <div class="row pl-3 pr-0 center-chart">
- <div class="col-8 pl-0 pr-0 height-100">
- <div class="card height-100 bg-dark mt-2 mr-2">
- <div class="di-content mb-2">
- <div class="jldbchart" id="jldbchart5" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0 pr-0 height-100">
- <div class="card height-100 bg-dark mt-2 mb-2">
- <div class="jlwcdchart" id="jlwcdchart5" style="height: 100%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row pl-3 pr-0 center-table">
- <div class="col-8 pl-0 pr-0 height-100">
- <div class="mr-2 height-100">
- <div class="card height-100 bg-dark mt-2">
- <h6 class="bg-dark text-center text-white m-0 py-3">各工区明细数据</h6>
- <div class="tablebox">
- <table id="tableId2">
- <thead>
- <tr>
- <th>标段</th>
- <th>期数</th>
- <th>0号台账</th>
- <th>本期完成</th>
- <th>截止本期完成</th>
- <th>本期应付</th>
- <th>截止本期应付</th>
- </tr>
- </thead>
- <tbody class="stage-data">
- </tbody>
- </table>
- <table id="tableId3"></table>
- </div>
- </div>
- </div>
- </div>
- <div class="col-4 pl-0 pr-0 height-100">
- <div class="card height-100 bg-dark mt-2 pr-3">
- <h6 class="bg-dark text-center text-white m-0 py-3">各工区审批信息</h6>
- <div id="review_box3" class="review_box m-0 p-3 mb-2">
- <ul class="list-unstyled list-comment" id="comment5">
- <% for (const notice of noticeList) { %>
- <% if(notice.type === pushType.stage) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-success">计量审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.material) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
- <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.ledger) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账审批</span></div>
- <div class="col-10 text-white">
- <a data-id="<%- notice.id %>"href="/tender/<%- notice.tid %>/ledger" class="text-white"><%- notice.name %></a> <span class="<%- acLedger.statusClass[notice.status] %>"><%- acLedger.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.revise) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-info">台账修订</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/revise/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
- <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.change){ %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
- <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } else if(notice.type === pushType.advance) { %>
- <li class="media pb-3 mb-3 border-bottom-grey-1">
- <div class="media-body">
- <div class="row">
- <div class="col-2"><span class="badge badge-warning">预付款</span></div>
- <div class="col-10 text-white">
- <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
- <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
- <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
- </div>
- </div>
- <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
- <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
- </p>
- </div>
- </li>
- <% } %>
- <% } %>
- </ul>
- <ul id="comment6" class="list-comment"></ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- <script src="/public/js/datacollect_scroll.js"></script>
- <script type="text/javascript"> autoFlashHeight();</script>
- <script type="text/javascript">
- const is_dz = <%- ctx.helper._.includes(ctx.subProject.data_collect_pages, '5') %>;
- // 分类金额饼图表
- var chart1 = document.getElementsByClassName('jechart');
- // var myChart1 = echarts.init(document.getElementById('jechart'), 'dark');
- option1 = {
- tooltip : {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)",
- // 当前鼠标位置
- position: 'right',
- },
- title: {
- text: '金额统计图',
- left: 'center',
- top:'7%'
- },
- color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
- 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
- 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
- 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
- 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
- 'rgba(242, 179, 82, 0.7)'],
- backgroundColor: '#343a40 ',
- // tooltip: {
- // trigger: 'item'
- // },
- // legend: {
- // orient: 'vertical',
- // left: 'center',
- // },
- series: [
- {
- name: '台账金额',
- type: 'pie',
- radius: '60%',
- top:'15%',
- formatter: function(name){
- return name.length>10?name.substr(0,10)+"...":name;
- },
- data: [],
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- var myChart1_1 = echarts.init(chart1[0], 'dark');
- myChart1_1.setOption(option1);
- if (is_dz) {
- var myChart1_2 = echarts.init(chart1[1], 'dark');
- myChart1_2.setOption(option1);
- }
- // 计量情况柱状图表
- // var myChart2 = echarts.init(document.getElementsByClassName('jlchart')[0], 'dark');
- option2 = {
- title: {
- text: '计量情况',
- left: 'center',
- top:'5%'
- },
- color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
- 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
- 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
- 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
- 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
- 'rgba(242, 179, 82, 0.7)'],
- backgroundColor: '#343a40 ',
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- },
- },
- dataZoom: [
- {
- brushSelect:false,
- // zoomLock: false,
- type: 'slider',
- show: true,
- realtime: true,
- showdetail: false,
- showDataShadow: false,
- // dataZoomIndex: 10,
- start: 0,
- end: 8,
- handleSize: 0,
- height: 10,
- bottom: '10%',
- },
- // {
- // // realtime: true,
- // type: 'slider',
- // show: true,
- // realtime: true,
- // showdetail: false,
- // showDataShadow: false,
- // // dataZoomIndex: 10,
- // start: 0,
- // end: 8,
- // handleSize: 0,
- // bottom:30,
- // height:10,
- // }
- ],
- legend: {
- data: ['台账', '截止合同计量', '截止变更计量'],
- top:'17%'
- },
- grid: {
- top:'25%',
- left: '3%',
- right: '4%',
- bottom: '15%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: [],
- axisLabel: {
- show: true,
- interval: 0,
- textStyle: {
- color: "#fff",
- fontSize: 14
- },
- formatter: function(value) {
- var res = value;
- if(res.length > 6) {
- res = res.substring(0, 5) + "..";
- }
- return res;
- }
- }
- }
- ],
- 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}
- },
- // {
- // type: 'value',
- // name:'完成度',
- // position: 'right',
- // min:0,
- // max:100,
- // axisLabel : {
- // formatter: '{value} %'
- // },
- // splitArea : {show : true}
- // }
- ],
- series: [
- {
- name: '台账',
- type: 'bar',
- emphasis: {
- focus: 'series'
- },
- data: []
- },
- {
- name: '截止合同计量',
- type: 'bar',
- stack: '计量',
- emphasis: {
- focus: 'series'
- },
- data: []
- },
- {
- name: '截止变更计量',
- type: 'bar',
- stack: '计量',
- emphasis: {
- focus: 'series'
- },
- data: []
- }
- ]
- };
- var chart2 = document.getElementsByClassName('jlchart');
- var myChart2_1 = echarts.init(chart2[0], 'dark');
- var myChart2_2 = echarts.init(chart2[1], 'dark');
- var myChart2_3 = echarts.init(chart2[2], 'dark');
- myChart2_1.setOption(option2);
- myChart2_2.setOption(option2);
- myChart2_3.setOption(option2);
- if (is_dz) {
- var myChart2_4 = echarts.init(chart2[3], 'dark');
- const option2_4 = _.cloneDeep(option2);
- option2_4.title.text = '各工区计量情况';
- myChart2_4.setOption(option2_4);
- }
- // myChart2.setOption(option);
- // 计量完成度统计柱状图表
- // var myChart3 = echarts.init(document.getElementsByClassName('jlwcdchart')[0], 'dark');
- option3 = {
- title: {
- text: '计量完成度统计',
- left: 'center',
- top:'5%'
- },
- color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
- 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
- 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
- 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
- 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
- 'rgba(242, 179, 82, 0.7)'],
- backgroundColor: '#343a40 ',
- tooltip: {
- trigger: 'axis',
- axisPointer: { // Use axis to trigger tooltip
- type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
- }
- },
- grid: {
- left: '10%',
- right: '10%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: {
- type: 'value'
- },
- yAxis: {
- type: 'category',
- data: [],
- axisLabel: {
- show: true,
- interval: 0,
- // textStyle: {
- // color: "#fff",
- // fontSize: 14
- // },
- formatter: function(value) {
- var res = value;
- if(res.length > 6) {
- res = res.substring(0, 5) + "..";
- }
- return res;
- }
- }
- },
- dataZoom: [
- {
- brushSelect:false,
- start: 0,
- end: 10,
- type: 'slider',
- show: true,
- handleSize: 0,
- realtime: true,
- showDetail: false,
- // filterMode: 'empty',
- yAxisIndex: [0,1],
- width: 10,
- height: '80%',
- right: '5%',
- bottom:'2%'
- },
- ],
- series: [
- {
- name: '完成度',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: []
- }
- ]
- };
- var chart3 = document.getElementsByClassName('jlwcdchart');
- var myChart3_1 = echarts.init(chart3[0], 'dark');
- var myChart3_2 = echarts.init(chart3[1], 'dark');
- myChart3_1.setOption(option3);
- myChart3_2.setOption(option3);
- if (is_dz) {
- var myChart3_3 = echarts.init(chart3[2], 'dark');
- const option3_3 = _.cloneDeep(option3);
- option3_3.title.text = '各工区计量完成百分比统计';
- myChart3_3.setOption(option3_3);
- }
- // 计量对比线形图表
- option4 = {
- title: {
- text: '计量对比',
- left: 'center',
- top:'5%'
- },
- color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
- 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
- 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
- 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
- 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
- 'rgba(242, 179, 82, 0.7)'],
- backgroundColor: '#343a40 ',
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- },
- legend: {
- data: ['本月计量', '累计计量'],
- top:'15%'
- },
- grid: {
- top:'25%',
- left: '3%',
- right: '4%',
- bottom: '15%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- boundaryGap: false,
- data: []
- }
- ],
- yAxis: [
- {
- type: 'value',
- 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;
- }
- },
- }
- ],
- dataZoom: [
- {
- brushSelect: false,
- showdetail: false,
- show: true,
- realtime: true,
- dataZoomIndex: 10,
- start: 0,
- end: 5,
- handleSize: 0,
- height: 10,
- bottom: '10%'
- },
- ],
- series: [
- {
- name: '本月计量',
- type: 'line',
- stack: '总量',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- data: []
- },
- {
- name: '累计计量',
- type: 'line',
- stack: '总量',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- data: []
- }
- ]
- };
- var chart4 = document.getElementsByClassName('jldbchart');
- var myChart4_1 = echarts.init(chart4[0], 'dark');
- var myChart4_2 = echarts.init(chart4[1], 'dark');
- myChart4_1.setOption(option4);
- myChart4_2.setOption(option4);
- if (is_dz) {
- var myChart4_3 = echarts.init(chart4[2], 'dark');
- const option4_3 = _.cloneDeep(option4);
- option4_3.title.text = '全线计量对比';
- myChart4_3.setOption(option4_3);
- }
- // for (var i = 0; i < chart4.length; i++) {
- // var myChart4 = echarts.init(chart4[i], 'dark');
- // myChart4.setOption(option);
- // }
- // 投资统计分析圆饼图表
- var myChart5 = echarts.init(document.getElementById('tztjchart'), 'dark');
- option5 = {
- title: {
- text: '投资统计分析',
- left: 'center',
- top:'7%'
- },
- color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
- 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
- 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
- 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
- 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
- 'rgba(242, 179, 82, 0.7)'],
- backgroundColor: '#343a40 ',
- tooltip: {
- trigger: 'item',
- },
- series: [
- {
- name: '数据来源',
- type: 'pie',
- top:'15%',
- bottom:'10%',
- radius: <% if (categoryData && categoryData[2] && categoryData[2].value.length > 0) { %>['0%', '30%']<% } else if (categoryData && categoryData[1] && categoryData[1].value.length > 0) { %>['0%', '50%']<% } else { %>['0%', '85%']<% } %>,
- // label: {
- // position: 'inner',
- // fontSize: 14
- // },
- label:{
- show:false
- },
- labelLine: {
- show: true
- },
- formatter: function(name){
- return name.length>10?name.substr(0,10)+"...":name;
- },
- data: [
- ]
- },
- {
- name: '数据来源',
- type: 'pie',
- top:'15%',
- bottom:'10%',
- radius: <% if (categoryData && categoryData[2] && categoryData[2].value.length > 0) { %>['30%', '60%']<% } else { %>['50%', '85%']<% } %>,
- // label: {
- // position: 'inner',
- // fontSize: 14
- // },
- label:{
- show:false
- },
- labelLine: {
- show: true,
- },
- formatter: function(name){
- return name.length>10?name.substr(0,10)+"...":name;
- },
- data: [
- ]
- },
- {
- name: '数据来源',
- type: 'pie',
- top:'15%',
- bottom:'10%',
- radius: ['60%', '85%'],
- // label: {
- // position: 'inner',
- // fontSize: 14
- // },
- label:{
- show:false
- },
- labelLine: {
- show: true
- },
- formatter: function(name){
- return name.length>10?name.substr(0,10)+"...":name;
- },
- data: [
- ]
- }
- ]
- };
- myChart5.setOption(option5);
- function echartsReset() {
- myChart1_1.resize();
- myChart2_1.resize();
- myChart2_2.resize();
- myChart2_3.resize();
- myChart3_1.resize();
- myChart3_2.resize();
- myChart4_1.resize();
- myChart4_2.resize();
- myChart5.resize();
- if (is_dz) {
- myChart1_2.resize();
- myChart2_4.resize();
- myChart3_3.resize();
- myChart4_3.resize();
- }
- }
- $(function () {
- $('#showFull').click(function () {
- const full=document.getElementById("big-data");
- launchIntoFullscreen(full);
- });
- $('#exitFull').click(function () {
- exitFullscreen();
- })
- })
- let resizeTimer = null;
- $(window).bind('resize', function () {
- if (resizeTimer) clearTimeout(resizeTimer);
- resizeTimer = setTimeout(function () {
- echartsReset();
- $(".tableid_").find('th').each(function(i) {
- $(this).css('width', $('#tableId').find('th:eq(' + i + ')').innerWidth());
- $(this).css('width', $('#tableId2').find('th:eq(' + i + ')').innerWidth());
- });
- }, 500);
- })
- // 数据全屏
- 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>
- const originDataCollect = parseInt('<%- ctx.subProject.data_collect %>');
- const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
- let tenders = '';
- // let noticeList = '';
- $(function () {
- postData(`/sp/${spid}/datacollect/load`, {}, function (result) {
- tenders = result.tenderList;
- const chart_option5_data = {
- data1: [],
- data2: [],
- data3: [],
- }
- const chart_category_data = {
- data1: [],
- data2: [],
- data3: [],
- }
- let option5_is_tender = false;
- // 设置圆环图5数据,还要设置圆环图大小
- if (category && category.length > 0) {
- if (category[0] && category[0].value.length > 0) {
- for (const c of category[0].value) {
- chart_category_data.data1.push([{
- cid: category[0].id,
- value: c.id,
- }]);
- chart_option5_data.data1.push({
- value: 0,
- name: c.value,
- });
- }
- }
- if (category[1] && category[1].value.length > 0) {
- for (const cc1 of chart_category_data.data1) {
- for (const c of category[1].value) {
- chart_category_data.data2.push([...cc1, {
- cid: category[1].id,
- value: c.id,
- }]);
- }
- }
- for (const cd1 of chart_option5_data.data1) {
- for (const c of category[1].value) {
- chart_option5_data.data2.push({
- value: 0,
- name: cd1.name + ' ' + c.value,
- });
- }
- }
- }
- if (category[2] && category[2].value.length > 0) {
- for (const cc2 of chart_category_data.data2) {
- for (const c of category[2].value) {
- chart_category_data.data3.push([...cc2, {
- cid: category[2].id,
- value: c.id,
- }]);
- }
- }
- for (const cd2 of chart_option5_data.data2) {
- for (const c of category[2].value) {
- chart_option5_data.data3.push({
- value: 0,
- name: cd2.name + ' ' + c.value,
- });
- }
- }
- }
- } else {
- option5_is_tender = true;
- }
- for (const t of tenders) {
- calculateTender(t);
- if (option5_is_tender) {
- if (t.total_price) chart_option5_data.data1.push({ value: t.total_price, name: t.name});
- } else {
- for (const cc1 of chart_category_data.data1) {
- const sameObject = _.intersectionWith(t.category, cc1, _.isEqual);
- if(sameObject.length === 1) {
- const index = _.findIndex(chart_category_data.data1, function (item) {
- return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
- });
- if (index !== -1) {
- chart_option5_data.data1[index].value = ZhCalc.add(chart_option5_data.data1[index].value, (t.total_price ? t.total_price : 0));
- }
- }
- // const index = sameObject[0] ? _.findIndex(cc1, { cid: sameObject[0].cid, value: sameObject[0].value }) : -1;
- // console.log(cc1, chart_category_data.data1, index);
- // if (index !== -1) {
- // chart_option5_data.data1[index].value = ZhCalc.add(chart_option5_data.data1[index].value, (t.total_price ? t.total_price : 0));
- // }
- }
- for (const cc2 of chart_category_data.data2) {
- const sameObject = _.intersectionWith(t.category, cc2, _.isEqual);
- if(sameObject.length === 2) {
- const index = _.findIndex(chart_category_data.data2, function (item) {
- return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
- })
- if (index !== -1) {
- chart_option5_data.data2[index].value = ZhCalc.add(chart_option5_data.data2[index].value, (t.total_price ? t.total_price : 0));
- }
- }
- }
- for (const cc3 of chart_category_data.data3) {
- const sameObject = _.intersectionWith(t.category, cc3, _.isEqual);
- if(sameObject.length === 3) {
- const index = _.findIndex(chart_category_data.data3, function (item) {
- return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
- })
- if (index !== -1) {
- chart_option5_data.data3[index].value = ZhCalc.add(chart_option5_data.data3[index].value, (t.total_price ? t.total_price : 0));
- }
- }
- }
- }
- }
- const option5 = myChart5.getOption();
- option5.series[0].data = _.filter(chart_option5_data.data1, function (item) {
- return item.value !== 0;
- });
- option5.series[1].data = _.filter(chart_option5_data.data2, function (item) {
- return item.value !== 0;
- });
- option5.series[2].data = _.filter(chart_option5_data.data3, function (item) {
- return item.value !== 0;
- });
- myChart5.setOption(option5);
- // const selectCategory = {
- // cid: category && category[0].value ? category[0].id : ,
- // }
- // const categoryName =
- if (category && category.length > 0) {
- if (category[0] && category[0].value.length > 0) {
- for (const [i, fc] of category[0].value.entries()) {
- const fcCategory = {cid: fc.cid, value: fc.id};
- if (_.findIndex(tenders, function (item) {
- return _.findIndex(item.category, fcCategory) !== -1;
- }) === -1) {
- $('#first-category .select-cate').eq(i + 1).hide();
- } else {
- $('#first-category .select-cate').eq(i + 1).show();
- }
- }
- }
- }
- setData(tenders, 0);
- })
- function calculateTender(tender) {
- if (tender.stage_tp) {
- tender.gather_tp = ZhCalc.sum([tender.stage_tp.contract_tp, tender.stage_tp.qc_tp, tender.stage_tp.pc_tp]);
- tender.end_contract_tp = ZhCalc.sum([tender.stage_tp.pre_contract_tp, tender.stage_tp.contract_tp, tender.stage_tp.contract_pc_tp]);
- tender.end_qc_tp = ZhCalc.sum([tender.stage_tp.pre_qc_tp, tender.stage_tp.qc_tp, tender.stage_tp.qc_pc_tp]);
- tender.end_gather_tp = ZhCalc.add(tender.end_contract_tp, tender.end_qc_tp);
- tender.pre_gather_tp = ZhCalc.add(tender.stage_tp.pre_contract_tp, tender.stage_tp.pre_qc_tp);
- tender.yf_tp = ZhCalc.add(tender.stage_tp.yf_tp);
- tender.end_yf_tp = ZhCalc.add(tender.stage_tp.pre_yf_tp, tender.yf_tp);
- }
- }
- function setData(tenderList, categoryIndex = 0) {
- let total_price = 0;
- // let total_change_price = 0;
- let total_checked_change_price = 0;
- // let total_checked_change_positive_price = 0;
- // let total_checked_change_negative_price = 0;
- let total_after_change_price = 0;
- let total_stage_price = 0;
- let total_advance_price = 0;
- // let total_material_price = 0;
- let month_stage_num = 0;
- let month_change_num = 0;
- let month_revise_num = 0;
- let month_material_num = 0;
- let html = '';
- const chart_option_name = [];
- const chart_option2_data = {
- total_price: [],
- contract_tp:[],
- qc_tp:[],
- };
- const chart_option3_data = [];
- const chart_option1_data = [];
- let option1_is_tender = false;
- const chart_category_data = [];
- if (category && category.length > 0 && category[categoryIndex] && category[categoryIndex].value.length > 0) {
- for (const c of category[categoryIndex].value) {
- chart_category_data.push({
- cid: category[categoryIndex].id,
- value: c.id,
- });
- chart_option1_data.push({
- value: 0,
- name: c.value,
- });
- }
- } else {
- option1_is_tender = true;
- }
- const chart_option4_data = [];
- for(const t of tenderList) {
- total_price = ZhCalc.add(total_price, t.total_price);
- // total_change_price = ZhCalc.add(total_change_price, t.end_qc_tp);
- total_checked_change_price = ZhCalc.add(total_checked_change_price, t.change_tp);
- // total_checked_change_positive_price = ZhCalc.add(total_checked_change_positive_price, t.change_p_tp);
- // total_checked_change_negative_price = ZhCalc.add(total_checked_change_negative_price, t.change_n_tp);
- total_after_change_price = ZhCalc.add(total_after_change_price, ZhCalc.add(t.total_price, t.change_tp));
- total_stage_price = ZhCalc.add(total_stage_price, t.end_gather_tp);
- // total_material_price = ZhCalc.add(total_material_price, t.material_tp);
- total_advance_price = ZhCalc.add(total_advance_price, t.advance_tp);
- month_stage_num = ZhCalc.add(month_stage_num, t.month_stage_num);
- month_change_num = ZhCalc.add(month_change_num, t.month_change_num);
- month_revise_num = ZhCalc.add(month_revise_num, t.month_revise_num);
- month_material_num = ZhCalc.add(month_material_num, t.month_material_num);
- html += '<tr>\n' +
- ' <td><span data-toggle="tooltip" data-placement="right" data-original-title="'+ t.name +'">'+ (t.name.length > 15 ? t.name.substring(0, 15) + '...' : t.name) +'</span></td>\n' +
- ' <td>'+ (t.progress ? t.progress.title : (t.cur_flow ? t.cur_flow.title : '')) + '</td>\n' +
- ' <td>'+ (t.total_price ? t.total_price : 0) +'</td>\n' +
- ' <td>'+ (t.gather_tp ? t.gather_tp : 0) +'</td>\n' +
- ' <td>'+ (t.end_gather_tp ? t.end_gather_tp : 0) +'</td>\n' +
- ' <td>'+ (t.yf_tp ? t.yf_tp : 0) +'</td>\n' +
- ' <td>'+ (t.end_yf_tp ? t.end_yf_tp : 0) +'</td>\n' +
- ' </tr>\n';
- chart_option_name.push(t.name);
- chart_option2_data.total_price.push(t.total_price ? t.total_price : 0);
- chart_option2_data.contract_tp.push(t.end_contract_tp ? t.end_contract_tp : 0);
- chart_option2_data.qc_tp.push(t.end_qc_tp ? t.end_qc_tp : 0);
- const rate = ZhCalc.mul(ZhCalc.div(ZhCalc.add(t.pre_gather_tp, t.gather_tp), ZhCalc.add(t.total_price, t.end_qc_tp), 2), 100, 0);
- chart_option3_data.push(rate ? rate : '');
- if (option1_is_tender) {
- if(t.total_price) chart_option1_data.push({ value: t.total_price, name: t.name});
- } else {
- const sameObject = _.intersectionWith(t.category, chart_category_data, _.isEqual);
- const index = sameObject[0] ? _.findIndex(chart_category_data, { cid: sameObject[0].cid, value: sameObject[0].value }) : -1;
- if (index !== -1) {
- chart_option1_data[index].value = ZhCalc.add(chart_option1_data[index].value, (t.total_price ? t.total_price : 0));
- }
- }
- for (const s of t.month_stage) {
- const index = _.findIndex(chart_option4_data, { yearmonth: s.yearmonth });
- if (index === -1) {
- chart_option4_data.push({
- yearmonth: s.yearmonth,
- tp: s.tp,
- end_tp: s.end_tp,
- })
- // chart_option4_data.yearmonth.push(s.yearmonth);
- // chart_option4_data.tp.push(s.tp);
- // chart_option4_data.end_tp.push(s.end_tp);
- } else {
- // chart_option4_data.tp[index].tp = ZhCalc.add(chart_option4_data.tp[index].tp, s.tp);
- // chart_option4_data.tp[index].end_tp = ZhCalc.add(chart_option4_data.tp[index].end_tp, s.end_tp);
- chart_option4_data[index].tp = ZhCalc.add(chart_option4_data[index].tp, s.tp);
- chart_option4_data[index].end_tp = ZhCalc.add(chart_option4_data[index].end_tp, s.end_tp);
- }
- }
- }
- // console.log(tenderList);
- $('.data_tender_num').text(tenderList.length);
- // const rate = total_price && total_change_price ? ZhCalc.round(ZhCalc.div(total_stage_price, ZhCalc.add(total_price, total_change_price)) * 100, 2) : 0;
- const rate = total_stage_price && total_after_change_price ? ZhCalc.round(ZhCalc.div(total_stage_price, total_after_change_price) * 100, 2) : 0;
- $('.data_tender_rate').text(rate ? rate + '%' : '0%');
- $('.data_total_price').text(formatMoney(total_price));
- // $('.data_total_change_price').text(formatMoney(total_change_price));
- $('.data_total_checked_change_price').text(formatMoney(total_checked_change_price));
- // $('.data_total_checked_change_price').parents('div').attr('data-original-title', "<p style='text-align:left;'>批复正变更:" + formatMoney(total_checked_change_positive_price) + "</p>批复负变更:" + formatMoney(total_checked_change_negative_price));
- $('.data_total_after_change_price').text(formatMoney(total_after_change_price));
- $('.data_total_stage_price').text(formatMoney(total_stage_price));
- $('.data_total_advance_price').text(formatMoney(total_advance_price));
- // $('.data_total_material_price').text(formatMoney(total_material_price));
- $('.month_stage_num').text(month_stage_num);
- $('.month_change_num').text(month_change_num);
- $('.month_revise_num').text(month_revise_num);
- $('.month_material_num').text(month_material_num);
- // 滚动数据
- $('.stage-data').eq(0).html(html);
- // if (originDataCollect === 1 || originDataCollect === 2) {
- tableScroll('tableId', '100%', 30, 7);
- if (is_dz) {
- $('.stage-data').eq(1).html(html);
- tableScroll('tableId2', '100%', 30, 7);
- }
- // }
- $('[data-toggle="tooltip"]').tooltip();
- // 图表数据赋值
- const option2 = myChart2_1.getOption();
- option2.dataZoom[0].start = 0;
- option2.dataZoom[0].end = computedPosition(tenderList.length);
- option2.xAxis[0].data = chart_option_name;
- option2.series[0].data = chart_option2_data.total_price;
- option2.series[1].data = chart_option2_data.contract_tp;
- option2.series[2].data = chart_option2_data.qc_tp;
- option2.series[2].data = chart_option2_data.qc_tp;
- if (tenderList.length >= 8) {
- option2.dataZoom[0].show = true;
- } else {
- option2.dataZoom[0].show = false;
- }
- myChart2_1.setOption(option2);
- myChart2_2.setOption(option2);
- myChart2_3.setOption(option2);
- if (is_dz) {
- const option2_4 = _.cloneDeep(option2);
- option2_4.title[0].text = '各工区计量情况';
- myChart2_4.setOption(option2_4);
- }
- const option3 = myChart3_1.getOption();
- option3.dataZoom[0].start = 0;
- option3.dataZoom[0].end = computedPosition(tenderList.length);
- option3.yAxis[0].data = chart_option_name;
- option3.series[0].data = chart_option3_data;
- if (tenderList.length >= 8) {
- option3.dataZoom[0].show = true;
- // option3.dataZoom[0].bottom = '10%';
- // option3.grid.bottom = '15%';
- } else {
- option3.dataZoom[0].show = false;
- // option3.dataZoom[0].bottom = '0%';
- // option3.grid.bottom = '3%';
- }
- myChart3_1.setOption(option3);
- myChart3_2.setOption(option3);
- if (is_dz) {
- const option3_3 = _.cloneDeep(option3);
- option3_3.title[0].text = '各工区计量完成百分比统计';
- myChart3_3.setOption(option3_3);
- }
- const option1 = myChart1_1.getOption();
- option1.series[0].data = _.filter(chart_option1_data, function (item) {
- return item.value !== 0;
- });
- myChart1_1.setOption(option1);
- if (is_dz) {
- myChart1_2.setOption(option1);
- }
- const option4_data = {
- yearmonth: [],
- tp: [],
- end_tp: [],
- }
- if (chart_option4_data.length > 0) {
- // chart_option4_data 排序
- const new_chart_option4_data = _.sortBy(chart_option4_data, 'yearmonth');
- for (const [i,c4] of new_chart_option4_data.entries()) {
- option4_data.yearmonth.push(c4.yearmonth);
- option4_data.tp.push(c4.tp);
- if(i !== 0) {
- option4_data.end_tp.push(ZhCalc.add(c4.tp, option4_data.end_tp[i-1]));
- } else {
- option4_data.end_tp.push(c4.tp);
- }
- }
- }
- const option4 = myChart4_1.getOption();
- option4.dataZoom[0].start = 0;
- option4.dataZoom[0].end = computedPosition(option4_data.yearmonth.length);
- option4.xAxis[0].data = option4_data.yearmonth;
- option4.series[0].data = option4_data.tp;
- option4.series[1].data = option4_data.end_tp;
- if (option4_data.yearmonth.length >= 8) {
- option4.dataZoom[0].show = true;
- // option4.dataZoom[0].bottom = '10%';
- // option4.grid.bottom = '15%';
- } else {
- option4.dataZoom[0].show = false;
- // option4.dataZoom[0].bottom = '0%';
- // option4.grid.bottom = '3%';
- }
- myChart4_1.setOption(option4);
- myChart4_2.setOption(option4);
- if (is_dz) {
- const option4_3 = _.cloneDeep(option4);
- option4_3.title[0].text = '全线计量对比';
- myChart4_3.setOption(option4_3);
- }
- $('#tableId').css({'margin-top': 0});
- if (is_dz) {
- $('#tableId2').css({'margin-top': 0});
- }
- }
- $('.change-collect').on('click', function () {
- const num = parseInt($(this).data('collect'));
- $('#zhankai span').text(num);
- if (num === 1 || num === 3) {
- $('.flex-content[data-content="1"]').show();
- $('.flex-content[data-content="2"]').hide();
- $('.flex-content[data-content="5"]').hide();
- if (originDataCollect !== 1 && originDataCollect !== 3) {
- tableScroll('tableId', '100%', 30, 7);
- }
- if (num === 3) {
- $('.jlchart[data-chart-num="1"]').hide();
- $('.jlchart[data-chart-num="1"]').siblings().show();
- $('.jlchart[data-chart-num="2"]').show();
- $('.jlchart[data-chart-num="2"]').siblings().hide();
- } else {
- $('.jlchart[data-chart-num="1"]').show();
- $('.jlchart[data-chart-num="1"]').siblings().hide();
- $('.jlchart[data-chart-num="2"]').hide();
- $('.jlchart[data-chart-num="2"]').siblings().show();
- }
- // roll(50);
- } else if (num === 2 || num === 4) {
- $('.flex-content[data-content="2"]').show();
- $('.flex-content[data-content="1"]').hide();
- $('.flex-content[data-content="5"]').hide();
- // roll2(50);
- if (num === 4) {
- $('.jldbchart[data-chart-num="2"]').hide();
- $('.jldbchart[data-chart-num="2"]').siblings().show();
- } else {
- $('.jldbchart[data-chart-num="2"]').show();
- $('.jldbchart[data-chart-num="2"]').siblings().hide();
- }
- } else if (num === 5) {
- $('.flex-content[data-content="5"]').show();
- $('.flex-content[data-content="1"]').hide();
- $('.flex-content[data-content="2"]').hide();
- tableScroll('tableId2', '100%', 30, 7);
- // $('.jlchart[data-chart-num="1"]').show();
- // $('.jlchart[data-chart-num="2"]').siblings().show();
- }
- echartsReset();
- });
- // 第一层分类选择
- $("body").on('click', '#first-category .select-cate', function () {
- const id = $(this).data('value');
- $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
- let newTenderList = tenders;
- let categoryIndex = 0;
- if (!id) {
- $('#second-category').hide();
- $('#third-category').hide();
- $('#first-category').children('button').attr('data-cid', '').attr('data-value', '');
- } else {
- // 获取第一层已选类别
- const firstCategory = { cid: parseInt($(this).data('cid')), value: parseInt(id) };
- $('#first-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
- newTenderList = _.filter(tenders, function (item) {
- return _.findIndex(item.category, firstCategory) !== -1;
- })
- categoryIndex = 1;
- if (category[1] && category[1].value.length > 0) {
- $('#second-category').show();
- $('#third-category').hide();
- $('#second-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
- for (const [i,sc] of category[1].value.entries()) {
- const scCategory = { cid: sc.cid, value: sc.id };
- if (_.findIndex(newTenderList, function (item) {
- return _.findIndex(item.category, scCategory) !== -1;}) === -1) {
- $('#second-category .select-cate').eq(i+1).hide();
- } else {
- $('#second-category .select-cate').eq(i+1).show();
- }
- }
- }
- // categoryList.push(firstCategory);
- }
- setData(newTenderList, categoryIndex);
- // 获取新的tenderList及categoryList
- });
- // 第二层分类选择
- $("body").on('click', '#second-category .select-cate', function () {
- const id = $(this).data('value');
- // 获取第一层已选类别
- const first_cid = $('#first-category').children('button').attr('data-cid');
- const first_value = $('#first-category').children('button').attr('data-value');
- const firstCategory = { cid: parseInt(first_cid), value: parseInt(first_value) };
- let newTenderList = _.filter(tenders, function (item) {
- return _.findIndex(item.category, firstCategory) !== -1;
- });
- // let categoryList = [firstCategory];
- let categoryIndex = 1;
- $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
- if (!id) {
- $('#third-category').hide();
- } else {
- // 获取第二层已选类别
- const secondCategory = { cid: parseInt($(this).data('cid')), value: parseInt(id) };
- $('#second-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
- newTenderList = _.filter(newTenderList, function (item) {
- return _.findIndex(item.category, secondCategory) !== -1;
- });
- categoryIndex = 2;
- if (category[2] && category[2].value.length > 0) {
- $('#third-category').show();
- $('#third-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
- for (const [i,sc] of category[2].value.entries()) {
- const tcCategory = { cid: sc.cid, value: sc.id };
- if (_.findIndex(newTenderList, function (item) {
- return _.findIndex(item.category, tcCategory) !== -1;}) === -1) {
- $('#third-category .select-cate').eq(i+1).hide();
- } else {
- $('#third-category .select-cate').eq(i+1).show();
- }
- }
- }
- // categoryList.push(secondCategory);
- }
- setData(newTenderList, categoryIndex);
- // 获取新的tenderList及categoryList
- });
- // 第三层分类选择(至多三层)
- $("body").on('click', '#third-category .select-cate', function () {
- const id = $(this).data('value');
- // 获取第一层已选类别
- const first_cid = $('#first-category').children('button').attr('data-cid');
- const first_value = $('#first-category').children('button').attr('data-value');
- const firstCategory = { cid: parseInt(first_cid), value: parseInt(first_value) };
- let newTenderList = _.filter(tenders, function (item) {
- return _.findIndex(item.category, firstCategory) !== -1;
- });
- // 获取第二层已选类别
- const second_cid = $('#second-category').children('button').attr('data-cid');
- const second_value = $('#second-category').children('button').attr('data-value');
- const secondCategory = { cid: parseInt(second_cid), value: parseInt(second_value) };
- newTenderList = _.filter(newTenderList, function (item) {
- return _.findIndex(item.category, secondCategory) !== -1;
- });
- // let categoryList = [firstCategory, secondCategory];
- let categoryIndex = 2;
- $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
- if (!id) {
- $('#third-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
- } else {
- $('#third-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
- categoryIndex = 3;
- const third_cid = $('#third-category').children('button').attr('data-cid');
- const third_value = $('#third-category').children('button').attr('data-value');
- const thirdCategory = { cid: parseInt(third_cid), value: parseInt(third_value) };
- newTenderList = _.filter(newTenderList, function (item) {
- return _.findIndex(item.category, thirdCategory) !== -1;
- });
- // categoryList.push({ cid: parseInt($(this).data('cid')), value: parseInt($(this).data('value')) });
- }
- setData(newTenderList, categoryIndex);
- // 获取新的tenderList及categoryList
- })
- })
- function formatMoney(s, dot = ',', decimal = 2) {
- if (!s) {
- s = 0;
- return s.toFixed(decimal);
- }
- s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(decimal) + '';
- if (!decimal) {
- s += '.';
- }
- const l = s.split('.')[0].split('').reverse(),
- r = s.split('.')[1];
- let t = '';
- for (let i = 0; i < l.length; i++) {
- t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? dot : '');
- }
- const num = t.split('').reverse().join('') + (decimal === 0 ? '' : '.' + r);
- return num.replace('-,', '-');
- }
- // 计算显示滚动条长度
- function computedPosition(xArrayLength) {
- if (xArrayLength >= 8) {
- return Math.floor(8 / xArrayLength * 100) > 100 ? 100 : Math.floor(8 / xArrayLength * 100);
- // return length <= 10 ? 35 : 100 - Math.floor(35 / length * 100);
- } else {
- return 100;
- }
- }
- </script>
|