index.ejs 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019
  1. <link href="/public/css/bootstrap/bootstrap-colorpicker.min.css" rel="stylesheet">
  2. <div class="panel-content" style="background:#2c3237 !important">
  3. <div class="panel-title fluid border-top-0" style="background:#2c3237 !important">
  4. <div class="title-main d-flex justify-content-between">
  5. <div class="d-inline-block mr-2">
  6. <div class="btn-group" id="first-category">
  7. <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
  8. <div class="dropdown-menu" aria-labelledby="zhankai">
  9. <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
  10. <% if (categoryData.length > 0 && categoryData[0].value.length > 0) { %>
  11. <% for (const c of categoryData[0].value) { %>
  12. <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
  13. <% } %>
  14. <% } %>
  15. </div>
  16. </div>
  17. <% if (categoryData[1] && categoryData[1].value.length > 0) { %>
  18. <div class="btn-group" id="second-category" style="display: none">
  19. <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
  20. <div class="dropdown-menu" aria-labelledby="zhankai">
  21. <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
  22. <% for (const c of categoryData[1].value) { %>
  23. <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
  24. <% } %>
  25. </div>
  26. </div>
  27. <% } %>
  28. <% if (categoryData[2] && categoryData[2].value.length > 0) { %>
  29. <div class="btn-group" id="third-category" style="display: none">
  30. <button type="button" class="btn btn-sm btn-outline-dark text-white dropdown-toggle" data-cid="" data-value="" data-toggle="dropdown">全部</button>
  31. <div class="dropdown-menu" aria-labelledby="zhankai">
  32. <a class="dropdown-item select-cate" data-value="" href="javascript:void(0);">全部</a>
  33. <% for (const c of categoryData[2].value) { %>
  34. <a class="dropdown-item select-cate" data-cid="<%- c.cid %>" data-value="<%- c.id %>" href="javascript:void(0);"><%- c.value %></a>
  35. <% } %>
  36. </div>
  37. </div>
  38. <% } %>
  39. </div>
  40. <div>
  41. <a href="javascript:void(0)" title="全屏显示" id="showFull" class="text-white"><i class="fa fa-arrows-alt"></i></a>
  42. <div class="btn-group">
  43. <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>
  44. <div class="dropdown-menu" aria-labelledby="zhankai">
  45. <% for (const i of ctx.subProject.data_collect_pages) { %>
  46. <% if (['6', '7'].includes(i)) { %>
  47. <a class="dropdown-item" href="/sp/<%- ctx.subProject.id %>/datacollect/index/<%- i %>">决策大屏<%- i %></a>
  48. <% } else if (['8'].includes(i)) { %>
  49. <a class="dropdown-item" target="_blank" href="<%- shj_url %>">决策大屏<%- i %></a>
  50. <% } else { %>
  51. <a class="dropdown-item change-collect" href="javascript:void(0)" data-collect="<%- i %>">决策大屏<%- i %></a>
  52. <% } %>
  53. <% } %>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="content-wrap" id="big-data">
  60. <div style="height: 30px;background-color: #2c3237; display: none" id="exitfull-div">
  61. <div class="title-main d-flex">
  62. <div class="ml-auto">
  63. <div class="dropdown d-flex float-left mt-1 mr-2">
  64. <button id="exitFull" class="btn btn-sm btn-secondary ml-auto">退出全屏</button>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="c-body" style="background:#2c3237 !important">
  70. <div class="flex-content" data-content="1" <% if (ctx.subProject.data_collect !== 1 && ctx.subProject.data_collect !== 3) { %>style="display: none"<% } %>>
  71. <div class="row">
  72. <div class="col-3 pr-0">
  73. <div class="left-content">
  74. <div class="left-card-content">
  75. <div class="height-20 mb-2">
  76. <div class="card text-center bg-dark text-white ml-2 mr-2 py-1 height-100">
  77. <div class="card-body card-per-body">
  78. <div class="row">
  79. <div class="col-6">
  80. <h5 class="card-title card-case-title data_tender_num">0</h5>
  81. <p class="card-text card-case-text text-muted">标段个数</p>
  82. </div>
  83. <div class="col-6">
  84. <h5 class="card-title card-case-title data_tender_rate">0%</h5>
  85. <p class="card-text card-case-text text-muted">计量进度</p>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="height-20 mb-2">
  92. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  93. <div class="card-body card-per-body">
  94. <h5 class="card-title card-case-title data_total_price">0.00</h5>
  95. <p class="card-text card-case-text text-muted">台账金额</p>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="height-20 mb-2">
  100. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  101. <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
  102. <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
  103. <p class="card-text text-muted">已批复变更金额</p>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="height-20 mb-2">
  108. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  109. <div class="card-body card-per-body">
  110. <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
  111. <p class="card-text text-muted">变更后金额</p>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="height-20 mb-2">
  116. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  117. <div class="card-body card-per-body">
  118. <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
  119. <p class="card-text text-muted">累计完成金额</p>
  120. </div>
  121. </div>
  122. </div>
  123. <!--<div class="height-20">-->
  124. <!--<div class="card text-center bg-dark text-white ml-2 mr-2 height-100">-->
  125. <!--<div class="card-body card-per-body">-->
  126. <!--<h5 class="card-title card-case-title data_total_material_price">0.00</h5>-->
  127. <!--<p class="card-text text-muted">材料调差</p>-->
  128. <!--</div>-->
  129. <!--</div>-->
  130. <!--</div>-->
  131. </div>
  132. <!--饼图-->
  133. <div class="left-chart">
  134. <div class="card height-100 bg-dark mt-2 ml-2 mr-2">
  135. <div id="jechart" class="jechart" style="height: 100%; width: 100%;"></div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="col-6 pl-0 pr-0">
  141. <div class="center-content mr-2">
  142. <div class="center-chart-content">
  143. <div class="center-di">
  144. <div class="card bg-dark height-100">
  145. <div class="jlchart" data-chart-num="1" id="jlchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 3) { %>display:none;<% } %>"></div>
  146. <div class="di-content mb-2" id="map1" style="background: #343A40; width: 100%; <% if (ctx.subProject.data_collect === 1) { %>display:none;<% } %>">
  147. </div>
  148. </div>
  149. </div>
  150. <div class="center-chart">
  151. <div class="card height-100 bg-dark mt-2">
  152. <div class="jlchart" data-chart-num="2" id="jlchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 1) { %>display:none;<% } %>"></div>
  153. <div class="di-content mb-2" <% if (ctx.subProject.data_collect === 3) { %>style="display:none;"<% } %>>
  154. <div class="jldbchart" data-chart-num="1" id="jldbchart" style="height: 100%; width: 100%;"></div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="center-table">
  160. <div class="card height-100 bg-dark mt-2">
  161. <h6 class="bg-dark text-center text-white m-0 py-3">标段明细数据</h6>
  162. <div class="tablebox">
  163. <table id="tableId">
  164. <thead>
  165. <tr>
  166. <th>标段</th>
  167. <th>期数</th>
  168. <th>0号台账</th>
  169. <th>本期完成</th>
  170. <th>截止本期完成</th>
  171. <th>本期应付</th>
  172. <th>截止本期应付</th>
  173. </tr>
  174. </thead>
  175. <tbody class="stage-data">
  176. </tbody>
  177. </table>
  178. <table id="tableId1"></table>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="col-3 pl-0">
  185. <div class="right-content">
  186. <div class="right-chart-content">
  187. <div class="right-month">
  188. <h6 class="card bg-dark text-center text-white m-0 pt-2 pb-3">本月审批统计</h6>
  189. <div class="row right-month-height">
  190. <div class="col-6 pr-0 height-50">
  191. <div class="card text-center bg-dark text-white border-right-0 border-botton-0 height-100">
  192. <div class="card-body card-small-body height-100">
  193. <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>
  194. <p class="card-text text-muted height-50">计量期</p>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="col-6 pl-0 height-50">
  199. <div class="card text-center bg-dark text-white border-botton-0 height-100">
  200. <div class="card-body card-small-body height-100">
  201. <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>
  202. <p class="card-text text-muted height-50">变更令</p>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="col-6 pr-0 height-50">
  207. <div class="card text-center bg-dark text-white border-right-0 border-top-0 height-100">
  208. <div class="card-body card-small-body height-100">
  209. <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>
  210. <p class="card-text text-muted height-50">台账修订</p>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="col-6 pl-0 height-50">
  215. <div class="card text-center bg-dark text-white border-top-0 height-100">
  216. <div class="card-body card-small-body height-100">
  217. <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>
  218. <p class="card-text text-muted height-50">材料调差</p>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="right-chart">
  225. <div class="card height-100 bg-dark">
  226. <div class="jlwcdchart" id="jlwcdchart" style="height: 100%; width: 100%;"></div>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="right-biaoduan">
  231. <div class="card height-100 bg-dark mt-2">
  232. <h6 class="bg-dark text-center text-white m-0 py-3">标段审批信息</h6>
  233. <div id="review_box" class="review_box m-0 p-3 mb-2">
  234. <ul class="list-unstyled list-comment" id="comment1">
  235. <% for (const notice of noticeList) { %>
  236. <% if(notice.type === pushType.stage) { %>
  237. <li class="media pb-3 mb-3 border-bottom-grey-1">
  238. <div class="media-body">
  239. <div class="row">
  240. <div class="col-2"><span class="badge badge-success">计量审批</span></div>
  241. <div class="col-10 text-white">
  242. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  243. <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  244. <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
  245. </div>
  246. </div>
  247. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  248. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  249. </p>
  250. </div>
  251. </li>
  252. <% } else if(notice.type === pushType.material) { %>
  253. <li class="media pb-3 mb-3 border-bottom-grey-1">
  254. <div class="media-body">
  255. <div class="row">
  256. <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
  257. <div class="col-10 text-white">
  258. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  259. <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  260. <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
  261. </div>
  262. </div>
  263. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  264. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  265. </p>
  266. </div>
  267. </li>
  268. <% } else if(notice.type === pushType.ledger) { %>
  269. <li class="media pb-3 mb-3 border-bottom-grey-1">
  270. <div class="media-body">
  271. <div class="row">
  272. <div class="col-2"><span class="badge badge-info">台账审批</span></div>
  273. <div class="col-10 text-white">
  274. <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>
  275. </div>
  276. </div>
  277. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  278. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  279. </p>
  280. </div>
  281. </li>
  282. <% } else if(notice.type === pushType.revise) { %>
  283. <li class="media pb-3 mb-3 border-bottom-grey-1">
  284. <div class="media-body">
  285. <div class="row">
  286. <div class="col-2"><span class="badge badge-info">台账修订</span></div>
  287. <div class="col-10 text-white">
  288. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  289. <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
  290. <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
  291. </div>
  292. </div>
  293. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  294. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  295. </p>
  296. </div>
  297. </li>
  298. <% } else if(notice.type === pushType.change){ %>
  299. <li class="media pb-3 mb-3 border-bottom-grey-1">
  300. <div class="media-body">
  301. <div class="row">
  302. <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
  303. <div class="col-10 text-white">
  304. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  305. <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
  306. <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
  307. </div>
  308. </div>
  309. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  310. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  311. </p>
  312. </div>
  313. </li>
  314. <% } else if(notice.type === pushType.advance) { %>
  315. <li class="media pb-3 mb-3 border-bottom-grey-1">
  316. <div class="media-body">
  317. <div class="row">
  318. <div class="col-2"><span class="badge badge-warning">预付款</span></div>
  319. <div class="col-10 text-white">
  320. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  321. <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
  322. <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
  323. </div>
  324. </div>
  325. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  326. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  327. </p>
  328. </div>
  329. </li>
  330. <% } %>
  331. <% } %>
  332. </ul>
  333. <ul id="comment2" class="list-comment"></ul>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. </div>
  341. <div class="flex-content" data-content="2" <% if (ctx.subProject.data_collect !== 2 && ctx.subProject.data_collect !== 4) { %>style="display: none"<% } %>>
  342. <div class="mx-3">
  343. <div class="row">
  344. <div class="col-6 pr-1">
  345. <div class="left-content">
  346. <div class="left-small-card-content ml-3">
  347. <div class="row height-100">
  348. <div class="col-4 pl-0">
  349. <div class="card text-center bg-dark text-white ml-0 mr-0 height-100">
  350. <div class="card-body card-per-body">
  351. <div class="row height-100">
  352. <div class="col-6">
  353. <h5 class="card-title card-case-title data_tender_num">0</h5>
  354. <p class="card-text card-case-text text-muted">标段个数</p>
  355. </div>
  356. <div class="col-6">
  357. <h5 class="card-title card-case-title data_tender_rate">0%</h5>
  358. <p class="card-text card-case-text text-muted">计量进度</p>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. <div class="col-4 pl-0">
  365. <div class="card text-center bg-dark text-white height-100">
  366. <div class="card-body card-per-body">
  367. <h5 class="card-title card-case-title data_total_price">0.00</h5>
  368. <p class="card-text card-case-text text-muted">台账金额</p>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="col-4 pl-0">
  373. <div class="card text-center bg-dark text-white height-100">
  374. <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
  375. <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
  376. <p class="card-text text-muted">已批复变更金额</p>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <div class="left-big-chart-content">
  383. <div class="card height-60 bg-dark mt-2 mb-2">
  384. <div class="jlchart" id="jlchart" style="height: 100%; width: 100%;"></div>
  385. </div>
  386. <div class="height-36">
  387. <div class="row height-100">
  388. <div class="col-6 pr-2">
  389. <div class="left-bottom-chart height-100">
  390. <div class="card height-100 bg-dark">
  391. <div class="jlwcdchart" id="jlwcdchart" style="height: 100%; width: 100%;"></div>
  392. </div>
  393. </div>
  394. </div>
  395. <div class="col-6 pl-0">
  396. <div class="left-bottom-chart height-100">
  397. <div class="card height-100 bg-dark">
  398. <div id="tztjchart" style="height: 100%; width: 100%;"></div>
  399. </div>
  400. </div>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="col-6 pl-1 pr-0">
  408. <div class="right-content">
  409. <div class="right-small-card-content mx-3">
  410. <div class="row height-100">
  411. <div class="col-4 pl-0">
  412. <div class="card text-center bg-dark text-white mb-2 height-100">
  413. <div class="card-body card-per-body">
  414. <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
  415. <p class="card-text text-muted">变更后金额</p>
  416. </div>
  417. </div>
  418. </div>
  419. <div class="col-4 pl-0">
  420. <div class="card text-center bg-dark text-white height-100">
  421. <div class="card-body card-per-body">
  422. <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
  423. <p class="card-text card-case-text text-muted">累计完成金额</p>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="col-4 pl-0">
  428. <div class="card text-center bg-dark text-white height-100">
  429. <div class="card-body card-per-body">
  430. <h5 class="card-title card-case-title data_total_advance_price">0.00</h5>
  431. <p class="card-text card-case-text text-muted">预付款</p>
  432. </div>
  433. </div>
  434. </div>
  435. <!--<div class="col-4 pl-0">-->
  436. <!--<div class="card text-center bg-dark text-white height-100">-->
  437. <!--<div class="card-body card-per-body">-->
  438. <!--<h5 class="card-title card-case-title data_total_material_price">0.00</h5>-->
  439. <!--<p class="card-text card-case-text text-muted">材料调差</p>-->
  440. <!--</div>-->
  441. <!--</div>-->
  442. <!--</div>-->
  443. </div>
  444. </div>
  445. <div class="right-big-chart-content mr-3">
  446. <div class="height-60 mt-2">
  447. <div class="card height-100 bg-dark">
  448. <div class="jldbchart" data-chart-num="2" id="jldbchart" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 4) { %>display:none;<% } %>"></div>
  449. <div class="di-content mb-2" id="map2" style="height: 100%; width: 100%; <% if (ctx.subProject.data_collect === 2) { %>display:none;<% } %>"></div>
  450. </div>
  451. </div>
  452. <div class="height-36 mt-2">
  453. <div class="height-100 right-bottom-50-fl">
  454. <div class="left-bd-scroll height-100 mr-1">
  455. <div class="card bg-dark height-100">
  456. <h6 class="bg-dark text-center text-white m-0 py-3">标段审批信息</h6>
  457. <div id="review_box2" class="review_box m-0 p-3 mb-2 height-100">
  458. <ul class="list-unstyled list-comment" id="comment3">
  459. <% for (const notice of noticeList) { %>
  460. <% if(notice.type === pushType.stage) { %>
  461. <li class="media pb-3 mb-3 border-bottom-grey-1">
  462. <div class="media-body">
  463. <div class="row">
  464. <div class="col-2"><span class="badge badge-success">计量审批</span></div>
  465. <div class="col-10 text-white">
  466. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  467. <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  468. <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
  469. </div>
  470. </div>
  471. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  472. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  473. </p>
  474. </div>
  475. </li>
  476. <% } else if(notice.type === pushType.material) { %>
  477. <li class="media pb-3 mb-3 border-bottom-grey-1">
  478. <div class="media-body">
  479. <div class="row">
  480. <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
  481. <div class="col-10 text-white">
  482. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  483. <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  484. <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
  485. </div>
  486. </div>
  487. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  488. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  489. </p>
  490. </div>
  491. </li>
  492. <% } else if(notice.type === pushType.ledger) { %>
  493. <li class="media pb-3 mb-3 border-bottom-grey-1">
  494. <div class="media-body">
  495. <div class="row">
  496. <div class="col-2"><span class="badge badge-info">台账审批</span></div>
  497. <div class="col-10 text-white">
  498. <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>
  499. </div>
  500. </div>
  501. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  502. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  503. </p>
  504. </div>
  505. </li>
  506. <% } else if(notice.type === pushType.revise) { %>
  507. <li class="media pb-3 mb-3 border-bottom-grey-1">
  508. <div class="media-body">
  509. <div class="row">
  510. <div class="col-2"><span class="badge badge-info">台账修订</span></div>
  511. <div class="col-10 text-white">
  512. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  513. <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
  514. <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
  515. </div>
  516. </div>
  517. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  518. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  519. </p>
  520. </div>
  521. </li>
  522. <% } else if(notice.type === pushType.change){ %>
  523. <li class="media pb-3 mb-3 border-bottom-grey-1">
  524. <div class="media-body">
  525. <div class="row">
  526. <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
  527. <div class="col-10 text-white">
  528. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  529. <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
  530. <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
  531. </div>
  532. </div>
  533. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  534. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  535. </p>
  536. </div>
  537. </li>
  538. <% } else if(notice.type === pushType.advance) { %>
  539. <li class="media pb-3 mb-3 border-bottom-grey-1">
  540. <div class="media-body">
  541. <div class="row">
  542. <div class="col-2"><span class="badge badge-warning">预付款</span></div>
  543. <div class="col-10 text-white">
  544. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  545. <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
  546. <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
  547. </div>
  548. </div>
  549. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  550. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  551. </p>
  552. </div>
  553. </li>
  554. <% } %>
  555. <% } %>
  556. </ul>
  557. <ul id="comment4" class="list-comment"></ul>
  558. </div>
  559. </div>
  560. </div>
  561. </div>
  562. <div class="height-100 right-bottom-50-fl">
  563. <div class="right-month height-100 ml-1">
  564. <h6 class="card bg-dark text-center text-white m-0 py-3">本月审批统计</h6>
  565. <div class="row right-month-height">
  566. <div class="col-6 pr-0">
  567. <div class="card text-center bg-dark text-white border-right-0 border-botton-0 height-100">
  568. <div class="card-body card-small-body">
  569. <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>
  570. <p class="card-text text-muted height-50">计量期</p>
  571. </div>
  572. </div>
  573. </div>
  574. <div class="col-6 pl-0">
  575. <div class="card text-center bg-dark text-white border-botton-0 height-100">
  576. <div class="card-body card-small-body">
  577. <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>
  578. <p class="card-text text-muted height-50">变更令</p>
  579. </div>
  580. </div>
  581. </div>
  582. <div class="col-6 pr-0">
  583. <div class="card text-center bg-dark text-white border-right-0 border-top-0 height-100">
  584. <div class="card-body card-small-body">
  585. <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>
  586. <p class="card-text text-muted height-50">台账修订</p>
  587. </div>
  588. </div>
  589. </div>
  590. <div class="col-6 pl-0">
  591. <div class="card text-center bg-dark text-white border-top-0 height-100">
  592. <div class="card-body card-small-body">
  593. <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>
  594. <p class="card-text text-muted height-50">材料调差</p>
  595. </div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. </div>
  604. </div>
  605. </div>
  606. </div>
  607. </div>
  608. <% if (ctx.helper._.includes(ctx.subProject.data_collect_pages, '5')) { %>
  609. <div class="flex-content" data-content="5" <% if (ctx.subProject.data_collect !== 5) { %>style="display: none"<% } %>>
  610. <div class="row">
  611. <div class="col-3 pr-0">
  612. <div class="left-content">
  613. <div class="left-card-content">
  614. <div class="height-20 mb-2">
  615. <div class="card text-center bg-dark text-white ml-2 mr-2 py-1 height-100">
  616. <div class="card-body card-per-body">
  617. <div class="row">
  618. <div class="col-6">
  619. <h5 class="card-title card-case-title data_tender_num">0</h5>
  620. <p class="card-text card-case-text text-muted">工区个数</p>
  621. </div>
  622. <div class="col-6">
  623. <h5 class="card-title card-case-title data_tender_rate">0%</h5>
  624. <p class="card-text card-case-text text-muted">计量进度</p>
  625. </div>
  626. </div>
  627. </div>
  628. </div>
  629. </div>
  630. <div class="height-20 mb-2">
  631. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  632. <div class="card-body card-per-body">
  633. <h5 class="card-title card-case-title data_total_price">0.00</h5>
  634. <p class="card-text card-case-text text-muted">台账金额</p>
  635. </div>
  636. </div>
  637. </div>
  638. <div class="height-20 mb-2">
  639. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  640. <div class="card-body card-per-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="">
  641. <h5 class="card-title card-case-title data_total_checked_change_price">0.00</h5>
  642. <p class="card-text text-muted">已批复变更金额</p>
  643. </div>
  644. </div>
  645. </div>
  646. <div class="height-20 mb-2">
  647. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  648. <div class="card-body card-per-body">
  649. <h5 class="card-title card-case-title data_total_after_change_price">0.00</h5>
  650. <p class="card-text text-muted">变更后金额</p>
  651. </div>
  652. </div>
  653. </div>
  654. <div class="height-20 mb-2">
  655. <div class="card text-center bg-dark text-white ml-2 mr-2 py-2 height-100">
  656. <div class="card-body card-per-body">
  657. <h5 class="card-title card-case-title data_total_stage_price">0.00</h5>
  658. <p class="card-text text-muted">累计完成金额</p>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. <!--饼图-->
  664. <div class="left-chart">
  665. <div class="card height-100 bg-dark mt-2 ml-2 mr-2">
  666. <div id="jechart5" class="jechart" style="height: 100%; width: 100%;"></div>
  667. </div>
  668. </div>
  669. </div>
  670. </div>
  671. <div class="col-9 pl-0">
  672. <div class="center-content">
  673. <div class="center-chart-content">
  674. <div class="height-100">
  675. <div class="row pl-0 pr-0 center-di">
  676. <div class="col-12">
  677. <div class="card bg-dark height-100">
  678. <div class="jlchart" style="height: 100%; width: 100%;"></div>
  679. </div>
  680. </div>
  681. </div>
  682. <div class="row pl-3 pr-0 center-chart">
  683. <div class="col-8 pl-0 pr-0 height-100">
  684. <div class="card height-100 bg-dark mt-2 mr-2">
  685. <div class="di-content mb-2">
  686. <div class="jldbchart" id="jldbchart5" style="height: 100%; width: 100%;"></div>
  687. </div>
  688. </div>
  689. </div>
  690. <div class="col-4 pl-0 pr-0 height-100">
  691. <div class="card height-100 bg-dark mt-2 mb-2">
  692. <div class="jlwcdchart" id="jlwcdchart5" style="height: 100%; width: 100%;"></div>
  693. </div>
  694. </div>
  695. </div>
  696. </div>
  697. </div>
  698. <div class="row pl-3 pr-0 center-table">
  699. <div class="col-8 pl-0 pr-0 height-100">
  700. <div class="mr-2 height-100">
  701. <div class="card height-100 bg-dark mt-2">
  702. <h6 class="bg-dark text-center text-white m-0 py-3">各工区明细数据</h6>
  703. <div class="tablebox">
  704. <table id="tableId2">
  705. <thead>
  706. <tr>
  707. <th>标段</th>
  708. <th>期数</th>
  709. <th>0号台账</th>
  710. <th>本期完成</th>
  711. <th>截止本期完成</th>
  712. <th>本期应付</th>
  713. <th>截止本期应付</th>
  714. </tr>
  715. </thead>
  716. <tbody class="stage-data">
  717. </tbody>
  718. </table>
  719. <table id="tableId3"></table>
  720. </div>
  721. </div>
  722. </div>
  723. </div>
  724. <div class="col-4 pl-0 pr-0 height-100">
  725. <div class="card height-100 bg-dark mt-2 pr-3">
  726. <h6 class="bg-dark text-center text-white m-0 py-3">各工区审批信息</h6>
  727. <div id="review_box3" class="review_box m-0 p-3 mb-2">
  728. <ul class="list-unstyled list-comment" id="comment5">
  729. <% for (const notice of noticeList) { %>
  730. <% if(notice.type === pushType.stage) { %>
  731. <li class="media pb-3 mb-3 border-bottom-grey-1">
  732. <div class="media-body">
  733. <div class="row">
  734. <div class="col-2"><span class="badge badge-success">计量审批</span></div>
  735. <div class="col-10 text-white">
  736. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  737. <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  738. <span class="<%- acStage.statusClass[notice.status] %>"><%- acStage.statusString[notice.status]%></span>
  739. </div>
  740. </div>
  741. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  742. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  743. </p>
  744. </div>
  745. </li>
  746. <% } else if(notice.type === pushType.material) { %>
  747. <li class="media pb-3 mb-3 border-bottom-grey-1">
  748. <div class="media-body">
  749. <div class="row">
  750. <div class="col-2"><span class="badge badge-secondary">材料调差</span></div>
  751. <div class="col-10 text-white">
  752. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  753. <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>" class="text-white">第<%- notice.order %>期 </a>
  754. <span class="<%- acMaterial.statusClass[notice.status] %>"><%- acMaterial.statusString[notice.status]%></span>
  755. </div>
  756. </div>
  757. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  758. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  759. </p>
  760. </div>
  761. </li>
  762. <% } else if(notice.type === pushType.ledger) { %>
  763. <li class="media pb-3 mb-3 border-bottom-grey-1">
  764. <div class="media-body">
  765. <div class="row">
  766. <div class="col-2"><span class="badge badge-info">台账审批</span></div>
  767. <div class="col-10 text-white">
  768. <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>
  769. </div>
  770. </div>
  771. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  772. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  773. </p>
  774. </div>
  775. </li>
  776. <% } else if(notice.type === pushType.revise) { %>
  777. <li class="media pb-3 mb-3 border-bottom-grey-1">
  778. <div class="media-body">
  779. <div class="row">
  780. <div class="col-2"><span class="badge badge-info">台账修订</span></div>
  781. <div class="col-10 text-white">
  782. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  783. <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info" class="text-white">台账修订(第<%- notice.corder %>次)</a>
  784. <span class="<%- acRevise.statusClass[notice.status] %>"><%- acRevise.statusString[notice.status]%></span>
  785. </div>
  786. </div>
  787. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  788. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  789. </p>
  790. </div>
  791. </li>
  792. <% } else if(notice.type === pushType.change){ %>
  793. <li class="media pb-3 mb-3 border-bottom-grey-1">
  794. <div class="media-body">
  795. <div class="row">
  796. <div class="col-2"><span class="badge badge-danger">变更审批</span></div>
  797. <div class="col-10 text-white">
  798. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  799. <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information" class="text-white"><%- notice.c_code %> </a>
  800. <span class="<%- acChange.statusClass[notice.status] %>"><%- acChange.statusString[notice.status]%></span>
  801. </div>
  802. </div>
  803. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  804. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  805. </p>
  806. </div>
  807. </li>
  808. <% } else if(notice.type === pushType.advance) { %>
  809. <li class="media pb-3 mb-3 border-bottom-grey-1">
  810. <div class="media-body">
  811. <div class="row">
  812. <div class="col-2"><span class="badge badge-warning">预付款</span></div>
  813. <div class="col-10 text-white">
  814. <a href="/tender/<%- notice.tid %>" class="text-white"><%- notice.name %></a>
  815. <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail" class="text-white">第<%- notice.order %>期</a>
  816. <span class="<%- acAdvance.statusClass[notice.status] %>"><%- acAdvance.statusString[notice.status]%></span>
  817. </div>
  818. </div>
  819. <p class="mt-1 mb-0 text-white"><%- notice.su_name %><small class="ml-1 text-muted"><%- (notice.su_role ? '- ' + notice.su_role : '') %></small>
  820. <span class="pull-right text-muted"><%- ctx.helper.formatFullDate(notice.create_time) %></span>
  821. </p>
  822. </div>
  823. </li>
  824. <% } %>
  825. <% } %>
  826. </ul>
  827. <ul id="comment6" class="list-comment"></ul>
  828. </div>
  829. </div>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. <% } %>
  836. </div>
  837. </div>
  838. </div>
  839. </div>
  840. <script src="/public/js/datacollect_scroll.js"></script>
  841. <script type="text/javascript"> autoFlashHeight();</script>
  842. <script type="text/javascript">
  843. const is_dz = <%- ctx.helper._.includes(ctx.subProject.data_collect_pages, '5') %>;
  844. // 分类金额饼图表
  845. var chart1 = document.getElementsByClassName('jechart');
  846. // var myChart1 = echarts.init(document.getElementById('jechart'), 'dark');
  847. option1 = {
  848. tooltip : {
  849. trigger: 'item',
  850. formatter: "{a} <br/>{b} : {c} ({d}%)",
  851. // 当前鼠标位置
  852. position: 'right',
  853. },
  854. title: {
  855. text: '金额统计图',
  856. left: 'center',
  857. top:'7%'
  858. },
  859. color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
  860. 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
  861. 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
  862. 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
  863. 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
  864. 'rgba(242, 179, 82, 0.7)'],
  865. backgroundColor: '#343a40 ',
  866. // tooltip: {
  867. // trigger: 'item'
  868. // },
  869. // legend: {
  870. // orient: 'vertical',
  871. // left: 'center',
  872. // },
  873. series: [
  874. {
  875. name: '台账金额',
  876. type: 'pie',
  877. radius: '60%',
  878. top:'15%',
  879. formatter: function(name){
  880. return name.length>10?name.substr(0,10)+"...":name;
  881. },
  882. data: [],
  883. emphasis: {
  884. itemStyle: {
  885. shadowBlur: 10,
  886. shadowOffsetX: 0,
  887. shadowColor: 'rgba(0, 0, 0, 0.5)'
  888. }
  889. }
  890. }
  891. ]
  892. };
  893. var myChart1_1 = echarts.init(chart1[0], 'dark');
  894. myChart1_1.setOption(option1);
  895. if (is_dz) {
  896. var myChart1_2 = echarts.init(chart1[1], 'dark');
  897. myChart1_2.setOption(option1);
  898. }
  899. // 计量情况柱状图表
  900. // var myChart2 = echarts.init(document.getElementsByClassName('jlchart')[0], 'dark');
  901. option2 = {
  902. title: {
  903. text: '计量情况',
  904. left: 'center',
  905. top:'5%'
  906. },
  907. color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
  908. 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
  909. 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
  910. 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
  911. 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
  912. 'rgba(242, 179, 82, 0.7)'],
  913. backgroundColor: '#343a40 ',
  914. tooltip: {
  915. trigger: 'axis',
  916. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  917. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  918. },
  919. },
  920. dataZoom: [
  921. {
  922. brushSelect:false,
  923. // zoomLock: false,
  924. type: 'slider',
  925. show: true,
  926. realtime: true,
  927. showdetail: false,
  928. showDataShadow: false,
  929. // dataZoomIndex: 10,
  930. start: 0,
  931. end: 8,
  932. handleSize: 0,
  933. height: 10,
  934. bottom: '10%',
  935. },
  936. // {
  937. // // realtime: true,
  938. // type: 'slider',
  939. // show: true,
  940. // realtime: true,
  941. // showdetail: false,
  942. // showDataShadow: false,
  943. // // dataZoomIndex: 10,
  944. // start: 0,
  945. // end: 8,
  946. // handleSize: 0,
  947. // bottom:30,
  948. // height:10,
  949. // }
  950. ],
  951. legend: {
  952. data: ['台账', '截止合同计量', '截止变更计量'],
  953. top:'17%'
  954. },
  955. grid: {
  956. top:'25%',
  957. left: '3%',
  958. right: '4%',
  959. bottom: '15%',
  960. containLabel: true
  961. },
  962. xAxis: [
  963. {
  964. type: 'category',
  965. data: [],
  966. axisLabel: {
  967. show: true,
  968. interval: 0,
  969. textStyle: {
  970. color: "#fff",
  971. fontSize: 14
  972. },
  973. formatter: function(value) {
  974. var res = value;
  975. if(res.length > 6) {
  976. res = res.substring(0, 5) + "..";
  977. }
  978. return res;
  979. }
  980. }
  981. }
  982. ],
  983. yAxis: [
  984. {
  985. type: 'value',
  986. name:'金额',
  987. position: 'left',
  988. axisLabel : {
  989. formatter: function (value, index) {
  990. if (value < 0) {
  991. let newValue = Math.abs(value);
  992. if (newValue >= 10000 && newValue < 10000000) {
  993. newValue = newValue / 10000 + "万";
  994. } else if (newValue >= 10000000) {
  995. newValue = newValue / 10000000 + "千万";
  996. }
  997. value = '-' + newValue;
  998. }
  999. if (value >= 10000 && value < 10000000) {
  1000. value = value / 10000 + "万";
  1001. } else if (value >= 10000000) {
  1002. value = value / 10000000 + "千万";
  1003. }
  1004. return value;
  1005. }
  1006. },
  1007. splitArea : {show : true}
  1008. },
  1009. // {
  1010. // type: 'value',
  1011. // name:'完成度',
  1012. // position: 'right',
  1013. // min:0,
  1014. // max:100,
  1015. // axisLabel : {
  1016. // formatter: '{value} %'
  1017. // },
  1018. // splitArea : {show : true}
  1019. // }
  1020. ],
  1021. series: [
  1022. {
  1023. name: '台账',
  1024. type: 'bar',
  1025. emphasis: {
  1026. focus: 'series'
  1027. },
  1028. data: []
  1029. },
  1030. {
  1031. name: '截止合同计量',
  1032. type: 'bar',
  1033. stack: '计量',
  1034. emphasis: {
  1035. focus: 'series'
  1036. },
  1037. data: []
  1038. },
  1039. {
  1040. name: '截止变更计量',
  1041. type: 'bar',
  1042. stack: '计量',
  1043. emphasis: {
  1044. focus: 'series'
  1045. },
  1046. data: []
  1047. }
  1048. ]
  1049. };
  1050. var chart2 = document.getElementsByClassName('jlchart');
  1051. var myChart2_1 = echarts.init(chart2[0], 'dark');
  1052. var myChart2_2 = echarts.init(chart2[1], 'dark');
  1053. var myChart2_3 = echarts.init(chart2[2], 'dark');
  1054. myChart2_1.setOption(option2);
  1055. myChart2_2.setOption(option2);
  1056. myChart2_3.setOption(option2);
  1057. if (is_dz) {
  1058. var myChart2_4 = echarts.init(chart2[3], 'dark');
  1059. const option2_4 = _.cloneDeep(option2);
  1060. option2_4.title.text = '各工区计量情况';
  1061. myChart2_4.setOption(option2_4);
  1062. }
  1063. // myChart2.setOption(option);
  1064. // 计量完成度统计柱状图表
  1065. // var myChart3 = echarts.init(document.getElementsByClassName('jlwcdchart')[0], 'dark');
  1066. option3 = {
  1067. title: {
  1068. text: '计量完成度统计',
  1069. left: 'center',
  1070. top:'5%'
  1071. },
  1072. color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
  1073. 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
  1074. 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
  1075. 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
  1076. 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
  1077. 'rgba(242, 179, 82, 0.7)'],
  1078. backgroundColor: '#343a40 ',
  1079. tooltip: {
  1080. trigger: 'axis',
  1081. axisPointer: { // Use axis to trigger tooltip
  1082. type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
  1083. }
  1084. },
  1085. grid: {
  1086. left: '10%',
  1087. right: '10%',
  1088. bottom: '3%',
  1089. containLabel: true
  1090. },
  1091. xAxis: {
  1092. type: 'value'
  1093. },
  1094. yAxis: {
  1095. type: 'category',
  1096. data: [],
  1097. axisLabel: {
  1098. show: true,
  1099. interval: 0,
  1100. // textStyle: {
  1101. // color: "#fff",
  1102. // fontSize: 14
  1103. // },
  1104. formatter: function(value) {
  1105. var res = value;
  1106. if(res.length > 6) {
  1107. res = res.substring(0, 5) + "..";
  1108. }
  1109. return res;
  1110. }
  1111. }
  1112. },
  1113. dataZoom: [
  1114. {
  1115. brushSelect:false,
  1116. start: 0,
  1117. end: 10,
  1118. type: 'slider',
  1119. show: true,
  1120. handleSize: 0,
  1121. realtime: true,
  1122. showDetail: false,
  1123. // filterMode: 'empty',
  1124. yAxisIndex: [0,1],
  1125. width: 10,
  1126. height: '80%',
  1127. right: '5%',
  1128. bottom:'2%'
  1129. },
  1130. ],
  1131. series: [
  1132. {
  1133. name: '完成度',
  1134. type: 'bar',
  1135. stack: 'total',
  1136. label: {
  1137. show: true
  1138. },
  1139. emphasis: {
  1140. focus: 'series'
  1141. },
  1142. data: []
  1143. }
  1144. ]
  1145. };
  1146. var chart3 = document.getElementsByClassName('jlwcdchart');
  1147. var myChart3_1 = echarts.init(chart3[0], 'dark');
  1148. var myChart3_2 = echarts.init(chart3[1], 'dark');
  1149. myChart3_1.setOption(option3);
  1150. myChart3_2.setOption(option3);
  1151. if (is_dz) {
  1152. var myChart3_3 = echarts.init(chart3[2], 'dark');
  1153. const option3_3 = _.cloneDeep(option3);
  1154. option3_3.title.text = '各工区计量完成百分比统计';
  1155. myChart3_3.setOption(option3_3);
  1156. }
  1157. // 计量对比线形图表
  1158. option4 = {
  1159. title: {
  1160. text: '计量对比',
  1161. left: 'center',
  1162. top:'5%'
  1163. },
  1164. color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
  1165. 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
  1166. 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
  1167. 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
  1168. 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
  1169. 'rgba(242, 179, 82, 0.7)'],
  1170. backgroundColor: '#343a40 ',
  1171. tooltip: {
  1172. trigger: 'axis',
  1173. axisPointer: {
  1174. type: 'cross',
  1175. label: {
  1176. backgroundColor: '#6a7985'
  1177. }
  1178. }
  1179. },
  1180. legend: {
  1181. data: ['本月计量', '累计计量'],
  1182. top:'15%'
  1183. },
  1184. grid: {
  1185. top:'25%',
  1186. left: '3%',
  1187. right: '4%',
  1188. bottom: '15%',
  1189. containLabel: true
  1190. },
  1191. xAxis: [
  1192. {
  1193. type: 'category',
  1194. boundaryGap: false,
  1195. data: []
  1196. }
  1197. ],
  1198. yAxis: [
  1199. {
  1200. type: 'value',
  1201. axisLabel : {
  1202. formatter: function (value, index) {
  1203. if (value < 0) {
  1204. let newValue = Math.abs(value);
  1205. if (newValue >= 10000 && newValue < 10000000) {
  1206. newValue = newValue / 10000 + "万";
  1207. } else if (newValue >= 10000000) {
  1208. newValue = newValue / 10000000 + "千万";
  1209. }
  1210. value = '-' + newValue;
  1211. }
  1212. if (value >= 10000 && value < 10000000) {
  1213. value = value / 10000 + "万";
  1214. } else if (value >= 10000000) {
  1215. value = value / 10000000 + "千万";
  1216. }
  1217. return value;
  1218. }
  1219. },
  1220. }
  1221. ],
  1222. dataZoom: [
  1223. {
  1224. brushSelect: false,
  1225. showdetail: false,
  1226. show: true,
  1227. realtime: true,
  1228. dataZoomIndex: 10,
  1229. start: 0,
  1230. end: 5,
  1231. handleSize: 0,
  1232. height: 10,
  1233. bottom: '10%'
  1234. },
  1235. ],
  1236. series: [
  1237. {
  1238. name: '本月计量',
  1239. type: 'line',
  1240. stack: '总量',
  1241. areaStyle: {},
  1242. emphasis: {
  1243. focus: 'series'
  1244. },
  1245. data: []
  1246. },
  1247. {
  1248. name: '累计计量',
  1249. type: 'line',
  1250. stack: '总量',
  1251. areaStyle: {},
  1252. emphasis: {
  1253. focus: 'series'
  1254. },
  1255. data: []
  1256. }
  1257. ]
  1258. };
  1259. var chart4 = document.getElementsByClassName('jldbchart');
  1260. var myChart4_1 = echarts.init(chart4[0], 'dark');
  1261. var myChart4_2 = echarts.init(chart4[1], 'dark');
  1262. myChart4_1.setOption(option4);
  1263. myChart4_2.setOption(option4);
  1264. if (is_dz) {
  1265. var myChart4_3 = echarts.init(chart4[2], 'dark');
  1266. const option4_3 = _.cloneDeep(option4);
  1267. option4_3.title.text = '全线计量对比';
  1268. myChart4_3.setOption(option4_3);
  1269. }
  1270. // for (var i = 0; i < chart4.length; i++) {
  1271. // var myChart4 = echarts.init(chart4[i], 'dark');
  1272. // myChart4.setOption(option);
  1273. // }
  1274. // 投资统计分析圆饼图表
  1275. var myChart5 = echarts.init(document.getElementById('tztjchart'), 'dark');
  1276. option5 = {
  1277. title: {
  1278. text: '投资统计分析',
  1279. left: 'center',
  1280. top:'7%'
  1281. },
  1282. color: ['rgba(38, 217, 217,0.7)','rgba(78, 139, 229,0.7)',
  1283. 'rgba(78, 229, 139,0.7)','rgba(108, 78, 229,0.7)',
  1284. 'rgba(58,207,221,0.7)','rgba(164, 229, 78,0.7)',
  1285. 'rgba(199, 78, 229,0.7)', 'rgba(229, 92, 174, 0.7)',
  1286. 'rgba(229, 214, 78, 0.7)', 'rgba(241, 87, 96, 0.7)',
  1287. 'rgba(242, 179, 82, 0.7)'],
  1288. backgroundColor: '#343a40 ',
  1289. tooltip: {
  1290. trigger: 'item',
  1291. },
  1292. series: [
  1293. {
  1294. name: '数据来源',
  1295. type: 'pie',
  1296. top:'15%',
  1297. bottom:'10%',
  1298. 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%']<% } %>,
  1299. // label: {
  1300. // position: 'inner',
  1301. // fontSize: 14
  1302. // },
  1303. label:{
  1304. show:false
  1305. },
  1306. labelLine: {
  1307. show: true
  1308. },
  1309. formatter: function(name){
  1310. return name.length>10?name.substr(0,10)+"...":name;
  1311. },
  1312. data: [
  1313. ]
  1314. },
  1315. {
  1316. name: '数据来源',
  1317. type: 'pie',
  1318. top:'15%',
  1319. bottom:'10%',
  1320. radius: <% if (categoryData && categoryData[2] && categoryData[2].value.length > 0) { %>['30%', '60%']<% } else { %>['50%', '85%']<% } %>,
  1321. // label: {
  1322. // position: 'inner',
  1323. // fontSize: 14
  1324. // },
  1325. label:{
  1326. show:false
  1327. },
  1328. labelLine: {
  1329. show: true,
  1330. },
  1331. formatter: function(name){
  1332. return name.length>10?name.substr(0,10)+"...":name;
  1333. },
  1334. data: [
  1335. ]
  1336. },
  1337. {
  1338. name: '数据来源',
  1339. type: 'pie',
  1340. top:'15%',
  1341. bottom:'10%',
  1342. radius: ['60%', '85%'],
  1343. // label: {
  1344. // position: 'inner',
  1345. // fontSize: 14
  1346. // },
  1347. label:{
  1348. show:false
  1349. },
  1350. labelLine: {
  1351. show: true
  1352. },
  1353. formatter: function(name){
  1354. return name.length>10?name.substr(0,10)+"...":name;
  1355. },
  1356. data: [
  1357. ]
  1358. }
  1359. ]
  1360. };
  1361. myChart5.setOption(option5);
  1362. function echartsReset() {
  1363. myChart1_1.resize();
  1364. myChart2_1.resize();
  1365. myChart2_2.resize();
  1366. myChart2_3.resize();
  1367. myChart3_1.resize();
  1368. myChart3_2.resize();
  1369. myChart4_1.resize();
  1370. myChart4_2.resize();
  1371. myChart5.resize();
  1372. if (is_dz) {
  1373. myChart1_2.resize();
  1374. myChart2_4.resize();
  1375. myChart3_3.resize();
  1376. myChart4_3.resize();
  1377. }
  1378. }
  1379. $(function () {
  1380. $('#showFull').click(function () {
  1381. const full=document.getElementById("big-data");
  1382. launchIntoFullscreen(full);
  1383. });
  1384. $('#exitFull').click(function () {
  1385. exitFullscreen();
  1386. })
  1387. })
  1388. let resizeTimer = null;
  1389. $(window).bind('resize', function () {
  1390. if (resizeTimer) clearTimeout(resizeTimer);
  1391. resizeTimer = setTimeout(function () {
  1392. echartsReset();
  1393. $(".tableid_").find('th').each(function(i) {
  1394. $(this).css('width', $('#tableId').find('th:eq(' + i + ')').innerWidth());
  1395. $(this).css('width', $('#tableId2').find('th:eq(' + i + ')').innerWidth());
  1396. });
  1397. }, 500);
  1398. })
  1399. // 数据全屏
  1400. function launchIntoFullscreen(element) {
  1401. if(element.requestFullscreen){
  1402. element.requestFullscreen();
  1403. }
  1404. else if(element.mozRequestFullScreen) {
  1405. element.mozRequestFullScreen();
  1406. }
  1407. else if(element.webkitRequestFullscreen) {
  1408. element.webkitRequestFullscreen();
  1409. }
  1410. else if(element.msRequestFullscreen) {
  1411. element.msRequestFullscreen();
  1412. }
  1413. }
  1414. function exitFullscreen() {
  1415. if(document.exitFullscreen) {
  1416. document.exitFullscreen();
  1417. } else if(document.mozCancelFullScreen) {
  1418. document.mozCancelFullScreen();
  1419. } else if(document.webkitExitFullscreen) {
  1420. document.webkitExitFullscreen();
  1421. }
  1422. }
  1423. document.addEventListener("fullscreenchange", function (event) {
  1424. if (document.fullscreenElement) {
  1425. $('#exitfull-div').show();
  1426. $('#showFull').hide();
  1427. } else {
  1428. $('#exitfull-div').hide();
  1429. $('#showFull').show();
  1430. }
  1431. });
  1432. </script>
  1433. <script>
  1434. const originDataCollect = parseInt('<%- ctx.subProject.data_collect %>');
  1435. const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
  1436. let tenders = '';
  1437. // let noticeList = '';
  1438. $(function () {
  1439. postData(`/sp/${spid}/datacollect/load`, {}, function (result) {
  1440. tenders = result.tenderList;
  1441. const chart_option5_data = {
  1442. data1: [],
  1443. data2: [],
  1444. data3: [],
  1445. }
  1446. const chart_category_data = {
  1447. data1: [],
  1448. data2: [],
  1449. data3: [],
  1450. }
  1451. let option5_is_tender = false;
  1452. // 设置圆环图5数据,还要设置圆环图大小
  1453. if (category && category.length > 0) {
  1454. if (category[0] && category[0].value.length > 0) {
  1455. for (const c of category[0].value) {
  1456. chart_category_data.data1.push([{
  1457. cid: category[0].id,
  1458. value: c.id,
  1459. }]);
  1460. chart_option5_data.data1.push({
  1461. value: 0,
  1462. name: c.value,
  1463. });
  1464. }
  1465. }
  1466. if (category[1] && category[1].value.length > 0) {
  1467. for (const cc1 of chart_category_data.data1) {
  1468. for (const c of category[1].value) {
  1469. chart_category_data.data2.push([...cc1, {
  1470. cid: category[1].id,
  1471. value: c.id,
  1472. }]);
  1473. }
  1474. }
  1475. for (const cd1 of chart_option5_data.data1) {
  1476. for (const c of category[1].value) {
  1477. chart_option5_data.data2.push({
  1478. value: 0,
  1479. name: cd1.name + ' ' + c.value,
  1480. });
  1481. }
  1482. }
  1483. }
  1484. if (category[2] && category[2].value.length > 0) {
  1485. for (const cc2 of chart_category_data.data2) {
  1486. for (const c of category[2].value) {
  1487. chart_category_data.data3.push([...cc2, {
  1488. cid: category[2].id,
  1489. value: c.id,
  1490. }]);
  1491. }
  1492. }
  1493. for (const cd2 of chart_option5_data.data2) {
  1494. for (const c of category[2].value) {
  1495. chart_option5_data.data3.push({
  1496. value: 0,
  1497. name: cd2.name + ' ' + c.value,
  1498. });
  1499. }
  1500. }
  1501. }
  1502. } else {
  1503. option5_is_tender = true;
  1504. }
  1505. for (const t of tenders) {
  1506. calculateTender(t);
  1507. if (option5_is_tender) {
  1508. if (t.total_price) chart_option5_data.data1.push({ value: t.total_price, name: t.name});
  1509. } else {
  1510. for (const cc1 of chart_category_data.data1) {
  1511. const sameObject = _.intersectionWith(t.category, cc1, _.isEqual);
  1512. if(sameObject.length === 1) {
  1513. const index = _.findIndex(chart_category_data.data1, function (item) {
  1514. return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
  1515. });
  1516. if (index !== -1) {
  1517. chart_option5_data.data1[index].value = ZhCalc.add(chart_option5_data.data1[index].value, (t.total_price ? t.total_price : 0));
  1518. }
  1519. }
  1520. // const index = sameObject[0] ? _.findIndex(cc1, { cid: sameObject[0].cid, value: sameObject[0].value }) : -1;
  1521. // console.log(cc1, chart_category_data.data1, index);
  1522. // if (index !== -1) {
  1523. // chart_option5_data.data1[index].value = ZhCalc.add(chart_option5_data.data1[index].value, (t.total_price ? t.total_price : 0));
  1524. // }
  1525. }
  1526. for (const cc2 of chart_category_data.data2) {
  1527. const sameObject = _.intersectionWith(t.category, cc2, _.isEqual);
  1528. if(sameObject.length === 2) {
  1529. const index = _.findIndex(chart_category_data.data2, function (item) {
  1530. return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
  1531. })
  1532. if (index !== -1) {
  1533. chart_option5_data.data2[index].value = ZhCalc.add(chart_option5_data.data2[index].value, (t.total_price ? t.total_price : 0));
  1534. }
  1535. }
  1536. }
  1537. for (const cc3 of chart_category_data.data3) {
  1538. const sameObject = _.intersectionWith(t.category, cc3, _.isEqual);
  1539. if(sameObject.length === 3) {
  1540. const index = _.findIndex(chart_category_data.data3, function (item) {
  1541. return _.isEqual(_.sortBy(item, 'cid'), _.sortBy(sameObject, 'cid'));
  1542. })
  1543. if (index !== -1) {
  1544. chart_option5_data.data3[index].value = ZhCalc.add(chart_option5_data.data3[index].value, (t.total_price ? t.total_price : 0));
  1545. }
  1546. }
  1547. }
  1548. }
  1549. }
  1550. const option5 = myChart5.getOption();
  1551. option5.series[0].data = _.filter(chart_option5_data.data1, function (item) {
  1552. return item.value !== 0;
  1553. });
  1554. option5.series[1].data = _.filter(chart_option5_data.data2, function (item) {
  1555. return item.value !== 0;
  1556. });
  1557. option5.series[2].data = _.filter(chart_option5_data.data3, function (item) {
  1558. return item.value !== 0;
  1559. });
  1560. myChart5.setOption(option5);
  1561. // const selectCategory = {
  1562. // cid: category && category[0].value ? category[0].id : ,
  1563. // }
  1564. // const categoryName =
  1565. if (category && category.length > 0) {
  1566. if (category[0] && category[0].value.length > 0) {
  1567. for (const [i, fc] of category[0].value.entries()) {
  1568. const fcCategory = {cid: fc.cid, value: fc.id};
  1569. if (_.findIndex(tenders, function (item) {
  1570. return _.findIndex(item.category, fcCategory) !== -1;
  1571. }) === -1) {
  1572. $('#first-category .select-cate').eq(i + 1).hide();
  1573. } else {
  1574. $('#first-category .select-cate').eq(i + 1).show();
  1575. }
  1576. }
  1577. }
  1578. }
  1579. setData(tenders, 0);
  1580. })
  1581. function calculateTender(tender) {
  1582. if (tender.stage_tp) {
  1583. tender.gather_tp = ZhCalc.sum([tender.stage_tp.contract_tp, tender.stage_tp.qc_tp, tender.stage_tp.pc_tp]);
  1584. tender.end_contract_tp = ZhCalc.sum([tender.stage_tp.pre_contract_tp, tender.stage_tp.contract_tp, tender.stage_tp.contract_pc_tp]);
  1585. tender.end_qc_tp = ZhCalc.sum([tender.stage_tp.pre_qc_tp, tender.stage_tp.qc_tp, tender.stage_tp.qc_pc_tp]);
  1586. tender.end_gather_tp = ZhCalc.add(tender.end_contract_tp, tender.end_qc_tp);
  1587. tender.pre_gather_tp = ZhCalc.add(tender.stage_tp.pre_contract_tp, tender.stage_tp.pre_qc_tp);
  1588. tender.yf_tp = ZhCalc.add(tender.stage_tp.yf_tp);
  1589. tender.end_yf_tp = ZhCalc.add(tender.stage_tp.pre_yf_tp, tender.yf_tp);
  1590. }
  1591. }
  1592. function setData(tenderList, categoryIndex = 0) {
  1593. let total_price = 0;
  1594. // let total_change_price = 0;
  1595. let total_checked_change_price = 0;
  1596. // let total_checked_change_positive_price = 0;
  1597. // let total_checked_change_negative_price = 0;
  1598. let total_after_change_price = 0;
  1599. let total_stage_price = 0;
  1600. let total_advance_price = 0;
  1601. // let total_material_price = 0;
  1602. let month_stage_num = 0;
  1603. let month_change_num = 0;
  1604. let month_revise_num = 0;
  1605. let month_material_num = 0;
  1606. let html = '';
  1607. const chart_option_name = [];
  1608. const chart_option2_data = {
  1609. total_price: [],
  1610. contract_tp:[],
  1611. qc_tp:[],
  1612. };
  1613. const chart_option3_data = [];
  1614. const chart_option1_data = [];
  1615. let option1_is_tender = false;
  1616. const chart_category_data = [];
  1617. if (category && category.length > 0 && category[categoryIndex] && category[categoryIndex].value.length > 0) {
  1618. for (const c of category[categoryIndex].value) {
  1619. chart_category_data.push({
  1620. cid: category[categoryIndex].id,
  1621. value: c.id,
  1622. });
  1623. chart_option1_data.push({
  1624. value: 0,
  1625. name: c.value,
  1626. });
  1627. }
  1628. } else {
  1629. option1_is_tender = true;
  1630. }
  1631. const chart_option4_data = [];
  1632. for(const t of tenderList) {
  1633. total_price = ZhCalc.add(total_price, t.total_price);
  1634. // total_change_price = ZhCalc.add(total_change_price, t.end_qc_tp);
  1635. total_checked_change_price = ZhCalc.add(total_checked_change_price, t.change_tp);
  1636. // total_checked_change_positive_price = ZhCalc.add(total_checked_change_positive_price, t.change_p_tp);
  1637. // total_checked_change_negative_price = ZhCalc.add(total_checked_change_negative_price, t.change_n_tp);
  1638. total_after_change_price = ZhCalc.add(total_after_change_price, ZhCalc.add(t.total_price, t.change_tp));
  1639. console.log(total_after_change_price, t.total_price, t.change_tp);
  1640. total_stage_price = ZhCalc.add(total_stage_price, t.end_gather_tp);
  1641. // total_material_price = ZhCalc.add(total_material_price, t.material_tp);
  1642. total_advance_price = ZhCalc.add(total_advance_price, t.advance_tp);
  1643. month_stage_num = ZhCalc.add(month_stage_num, t.month_stage_num);
  1644. month_change_num = ZhCalc.add(month_change_num, t.month_change_num);
  1645. month_revise_num = ZhCalc.add(month_revise_num, t.month_revise_num);
  1646. month_material_num = ZhCalc.add(month_material_num, t.month_material_num);
  1647. html += '<tr>\n' +
  1648. ' <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' +
  1649. ' <td>'+ (t.progress ? t.progress.title : (t.cur_flow ? t.cur_flow.title : '')) + '</td>\n' +
  1650. ' <td>'+ (t.total_price ? t.total_price : 0) +'</td>\n' +
  1651. ' <td>'+ (t.gather_tp ? t.gather_tp : 0) +'</td>\n' +
  1652. ' <td>'+ (t.end_gather_tp ? t.end_gather_tp : 0) +'</td>\n' +
  1653. ' <td>'+ (t.yf_tp ? t.yf_tp : 0) +'</td>\n' +
  1654. ' <td>'+ (t.end_yf_tp ? t.end_yf_tp : 0) +'</td>\n' +
  1655. ' </tr>\n';
  1656. chart_option_name.push(t.name);
  1657. chart_option2_data.total_price.push(t.total_price ? t.total_price : 0);
  1658. chart_option2_data.contract_tp.push(t.end_contract_tp ? t.end_contract_tp : 0);
  1659. chart_option2_data.qc_tp.push(t.end_qc_tp ? t.end_qc_tp : 0);
  1660. 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);
  1661. chart_option3_data.push(rate ? rate : '');
  1662. if (option1_is_tender) {
  1663. if(t.total_price) chart_option1_data.push({ value: t.total_price, name: t.name});
  1664. } else {
  1665. const sameObject = _.intersectionWith(t.category, chart_category_data, _.isEqual);
  1666. const index = sameObject[0] ? _.findIndex(chart_category_data, { cid: sameObject[0].cid, value: sameObject[0].value }) : -1;
  1667. if (index !== -1) {
  1668. chart_option1_data[index].value = ZhCalc.add(chart_option1_data[index].value, (t.total_price ? t.total_price : 0));
  1669. }
  1670. }
  1671. for (const s of t.month_stage) {
  1672. const index = _.findIndex(chart_option4_data, { yearmonth: s.yearmonth });
  1673. if (index === -1) {
  1674. chart_option4_data.push({
  1675. yearmonth: s.yearmonth,
  1676. tp: s.tp,
  1677. end_tp: s.end_tp,
  1678. })
  1679. // chart_option4_data.yearmonth.push(s.yearmonth);
  1680. // chart_option4_data.tp.push(s.tp);
  1681. // chart_option4_data.end_tp.push(s.end_tp);
  1682. } else {
  1683. // chart_option4_data.tp[index].tp = ZhCalc.add(chart_option4_data.tp[index].tp, s.tp);
  1684. // chart_option4_data.tp[index].end_tp = ZhCalc.add(chart_option4_data.tp[index].end_tp, s.end_tp);
  1685. chart_option4_data[index].tp = ZhCalc.add(chart_option4_data[index].tp, s.tp);
  1686. chart_option4_data[index].end_tp = ZhCalc.add(chart_option4_data[index].end_tp, s.end_tp);
  1687. }
  1688. }
  1689. }
  1690. // console.log(tenderList);
  1691. $('.data_tender_num').text(tenderList.length);
  1692. // const rate = total_price && total_change_price ? ZhCalc.round(ZhCalc.div(total_stage_price, ZhCalc.add(total_price, total_change_price)) * 100, 2) : 0;
  1693. const rate = total_stage_price && total_after_change_price ? ZhCalc.round(ZhCalc.div(total_stage_price, total_after_change_price) * 100, 2) : 0;
  1694. $('.data_tender_rate').text(rate ? rate + '%' : '0%');
  1695. $('.data_total_price').text(formatMoney(total_price));
  1696. // $('.data_total_change_price').text(formatMoney(total_change_price));
  1697. $('.data_total_checked_change_price').text(formatMoney(total_checked_change_price));
  1698. // $('.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));
  1699. $('.data_total_after_change_price').text(formatMoney(total_after_change_price));
  1700. $('.data_total_stage_price').text(formatMoney(total_stage_price));
  1701. $('.data_total_advance_price').text(formatMoney(total_advance_price));
  1702. // $('.data_total_material_price').text(formatMoney(total_material_price));
  1703. $('.month_stage_num').text(month_stage_num);
  1704. $('.month_change_num').text(month_change_num);
  1705. $('.month_revise_num').text(month_revise_num);
  1706. $('.month_material_num').text(month_material_num);
  1707. // 滚动数据
  1708. $('.stage-data').eq(0).html(html);
  1709. // if (originDataCollect === 1 || originDataCollect === 2) {
  1710. tableScroll('tableId', '100%', 30, 7);
  1711. if (is_dz) {
  1712. $('.stage-data').eq(1).html(html);
  1713. tableScroll('tableId2', '100%', 30, 7);
  1714. }
  1715. // }
  1716. $('[data-toggle="tooltip"]').tooltip();
  1717. // 图表数据赋值
  1718. const option2 = myChart2_1.getOption();
  1719. option2.dataZoom[0].start = 0;
  1720. option2.dataZoom[0].end = computedPosition(tenderList.length);
  1721. option2.xAxis[0].data = chart_option_name;
  1722. option2.series[0].data = chart_option2_data.total_price;
  1723. option2.series[1].data = chart_option2_data.contract_tp;
  1724. option2.series[2].data = chart_option2_data.qc_tp;
  1725. option2.series[2].data = chart_option2_data.qc_tp;
  1726. if (tenderList.length >= 8) {
  1727. option2.dataZoom[0].show = true;
  1728. } else {
  1729. option2.dataZoom[0].show = false;
  1730. }
  1731. myChart2_1.setOption(option2);
  1732. myChart2_2.setOption(option2);
  1733. myChart2_3.setOption(option2);
  1734. if (is_dz) {
  1735. const option2_4 = _.cloneDeep(option2);
  1736. option2_4.title[0].text = '各工区计量情况';
  1737. myChart2_4.setOption(option2_4);
  1738. }
  1739. const option3 = myChart3_1.getOption();
  1740. option3.dataZoom[0].start = 0;
  1741. option3.dataZoom[0].end = computedPosition(tenderList.length);
  1742. option3.yAxis[0].data = chart_option_name;
  1743. option3.series[0].data = chart_option3_data;
  1744. if (tenderList.length >= 8) {
  1745. option3.dataZoom[0].show = true;
  1746. // option3.dataZoom[0].bottom = '10%';
  1747. // option3.grid.bottom = '15%';
  1748. } else {
  1749. option3.dataZoom[0].show = false;
  1750. // option3.dataZoom[0].bottom = '0%';
  1751. // option3.grid.bottom = '3%';
  1752. }
  1753. myChart3_1.setOption(option3);
  1754. myChart3_2.setOption(option3);
  1755. if (is_dz) {
  1756. const option3_3 = _.cloneDeep(option3);
  1757. option3_3.title[0].text = '各工区计量完成百分比统计';
  1758. myChart3_3.setOption(option3_3);
  1759. }
  1760. const option1 = myChart1_1.getOption();
  1761. option1.series[0].data = _.filter(chart_option1_data, function (item) {
  1762. return item.value !== 0;
  1763. });
  1764. myChart1_1.setOption(option1);
  1765. if (is_dz) {
  1766. myChart1_2.setOption(option1);
  1767. }
  1768. const option4_data = {
  1769. yearmonth: [],
  1770. tp: [],
  1771. end_tp: [],
  1772. }
  1773. if (chart_option4_data.length > 0) {
  1774. // chart_option4_data 排序
  1775. const new_chart_option4_data = _.sortBy(chart_option4_data, 'yearmonth');
  1776. for (const [i,c4] of new_chart_option4_data.entries()) {
  1777. option4_data.yearmonth.push(c4.yearmonth);
  1778. option4_data.tp.push(c4.tp);
  1779. if(i !== 0) {
  1780. option4_data.end_tp.push(ZhCalc.add(c4.tp, option4_data.end_tp[i-1]));
  1781. } else {
  1782. option4_data.end_tp.push(c4.tp);
  1783. }
  1784. }
  1785. }
  1786. const option4 = myChart4_1.getOption();
  1787. option4.dataZoom[0].start = 0;
  1788. option4.dataZoom[0].end = computedPosition(option4_data.yearmonth.length);
  1789. option4.xAxis[0].data = option4_data.yearmonth;
  1790. option4.series[0].data = option4_data.tp;
  1791. option4.series[1].data = option4_data.end_tp;
  1792. if (option4_data.yearmonth.length >= 8) {
  1793. option4.dataZoom[0].show = true;
  1794. // option4.dataZoom[0].bottom = '10%';
  1795. // option4.grid.bottom = '15%';
  1796. } else {
  1797. option4.dataZoom[0].show = false;
  1798. // option4.dataZoom[0].bottom = '0%';
  1799. // option4.grid.bottom = '3%';
  1800. }
  1801. myChart4_1.setOption(option4);
  1802. myChart4_2.setOption(option4);
  1803. if (is_dz) {
  1804. const option4_3 = _.cloneDeep(option4);
  1805. option4_3.title[0].text = '全线计量对比';
  1806. myChart4_3.setOption(option4_3);
  1807. }
  1808. $('#tableId').css({'margin-top': 0});
  1809. if (is_dz) {
  1810. $('#tableId2').css({'margin-top': 0});
  1811. }
  1812. }
  1813. $('.change-collect').on('click', function () {
  1814. const num = parseInt($(this).data('collect'));
  1815. $('#zhankai span').text(num);
  1816. if (num === 1 || num === 3) {
  1817. $('.flex-content[data-content="1"]').show();
  1818. $('.flex-content[data-content="2"]').hide();
  1819. $('.flex-content[data-content="5"]').hide();
  1820. if (originDataCollect !== 1 && originDataCollect !== 3) {
  1821. tableScroll('tableId', '100%', 30, 7);
  1822. }
  1823. if (num === 3) {
  1824. $('.jlchart[data-chart-num="1"]').hide();
  1825. $('.jlchart[data-chart-num="1"]').siblings().show();
  1826. $('.jlchart[data-chart-num="2"]').show();
  1827. $('.jlchart[data-chart-num="2"]').siblings().hide();
  1828. } else {
  1829. $('.jlchart[data-chart-num="1"]').show();
  1830. $('.jlchart[data-chart-num="1"]').siblings().hide();
  1831. $('.jlchart[data-chart-num="2"]').hide();
  1832. $('.jlchart[data-chart-num="2"]').siblings().show();
  1833. }
  1834. // roll(50);
  1835. } else if (num === 2 || num === 4) {
  1836. $('.flex-content[data-content="2"]').show();
  1837. $('.flex-content[data-content="1"]').hide();
  1838. $('.flex-content[data-content="5"]').hide();
  1839. // roll2(50);
  1840. if (num === 4) {
  1841. $('.jldbchart[data-chart-num="2"]').hide();
  1842. $('.jldbchart[data-chart-num="2"]').siblings().show();
  1843. } else {
  1844. $('.jldbchart[data-chart-num="2"]').show();
  1845. $('.jldbchart[data-chart-num="2"]').siblings().hide();
  1846. }
  1847. } else if (num === 5) {
  1848. $('.flex-content[data-content="5"]').show();
  1849. $('.flex-content[data-content="1"]').hide();
  1850. $('.flex-content[data-content="2"]').hide();
  1851. tableScroll('tableId2', '100%', 30, 7);
  1852. // $('.jlchart[data-chart-num="1"]').show();
  1853. // $('.jlchart[data-chart-num="2"]').siblings().show();
  1854. }
  1855. echartsReset();
  1856. });
  1857. // 第一层分类选择
  1858. $("body").on('click', '#first-category .select-cate', function () {
  1859. const id = $(this).data('value');
  1860. $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
  1861. let newTenderList = tenders;
  1862. let categoryIndex = 0;
  1863. if (!id) {
  1864. $('#second-category').hide();
  1865. $('#third-category').hide();
  1866. $('#first-category').children('button').attr('data-cid', '').attr('data-value', '');
  1867. } else {
  1868. // 获取第一层已选类别
  1869. const firstCategory = { cid: parseInt($(this).data('cid')), value: parseInt(id) };
  1870. $('#first-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
  1871. newTenderList = _.filter(tenders, function (item) {
  1872. return _.findIndex(item.category, firstCategory) !== -1;
  1873. })
  1874. categoryIndex = 1;
  1875. if (category[1] && category[1].value.length > 0) {
  1876. $('#second-category').show();
  1877. $('#third-category').hide();
  1878. $('#second-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
  1879. for (const [i,sc] of category[1].value.entries()) {
  1880. const scCategory = { cid: sc.cid, value: sc.id };
  1881. if (_.findIndex(newTenderList, function (item) {
  1882. return _.findIndex(item.category, scCategory) !== -1;}) === -1) {
  1883. $('#second-category .select-cate').eq(i+1).hide();
  1884. } else {
  1885. $('#second-category .select-cate').eq(i+1).show();
  1886. }
  1887. }
  1888. }
  1889. // categoryList.push(firstCategory);
  1890. }
  1891. setData(newTenderList, categoryIndex);
  1892. // 获取新的tenderList及categoryList
  1893. });
  1894. // 第二层分类选择
  1895. $("body").on('click', '#second-category .select-cate', function () {
  1896. const id = $(this).data('value');
  1897. // 获取第一层已选类别
  1898. const first_cid = $('#first-category').children('button').attr('data-cid');
  1899. const first_value = $('#first-category').children('button').attr('data-value');
  1900. const firstCategory = { cid: parseInt(first_cid), value: parseInt(first_value) };
  1901. let newTenderList = _.filter(tenders, function (item) {
  1902. return _.findIndex(item.category, firstCategory) !== -1;
  1903. });
  1904. // let categoryList = [firstCategory];
  1905. let categoryIndex = 1;
  1906. $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
  1907. if (!id) {
  1908. $('#third-category').hide();
  1909. } else {
  1910. // 获取第二层已选类别
  1911. const secondCategory = { cid: parseInt($(this).data('cid')), value: parseInt(id) };
  1912. $('#second-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
  1913. newTenderList = _.filter(newTenderList, function (item) {
  1914. return _.findIndex(item.category, secondCategory) !== -1;
  1915. });
  1916. categoryIndex = 2;
  1917. if (category[2] && category[2].value.length > 0) {
  1918. $('#third-category').show();
  1919. $('#third-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
  1920. for (const [i,sc] of category[2].value.entries()) {
  1921. const tcCategory = { cid: sc.cid, value: sc.id };
  1922. if (_.findIndex(newTenderList, function (item) {
  1923. return _.findIndex(item.category, tcCategory) !== -1;}) === -1) {
  1924. $('#third-category .select-cate').eq(i+1).hide();
  1925. } else {
  1926. $('#third-category .select-cate').eq(i+1).show();
  1927. }
  1928. }
  1929. }
  1930. // categoryList.push(secondCategory);
  1931. }
  1932. setData(newTenderList, categoryIndex);
  1933. // 获取新的tenderList及categoryList
  1934. });
  1935. // 第三层分类选择(至多三层)
  1936. $("body").on('click', '#third-category .select-cate', function () {
  1937. const id = $(this).data('value');
  1938. // 获取第一层已选类别
  1939. const first_cid = $('#first-category').children('button').attr('data-cid');
  1940. const first_value = $('#first-category').children('button').attr('data-value');
  1941. const firstCategory = { cid: parseInt(first_cid), value: parseInt(first_value) };
  1942. let newTenderList = _.filter(tenders, function (item) {
  1943. return _.findIndex(item.category, firstCategory) !== -1;
  1944. });
  1945. // 获取第二层已选类别
  1946. const second_cid = $('#second-category').children('button').attr('data-cid');
  1947. const second_value = $('#second-category').children('button').attr('data-value');
  1948. const secondCategory = { cid: parseInt(second_cid), value: parseInt(second_value) };
  1949. newTenderList = _.filter(newTenderList, function (item) {
  1950. return _.findIndex(item.category, secondCategory) !== -1;
  1951. });
  1952. // let categoryList = [firstCategory, secondCategory];
  1953. let categoryIndex = 2;
  1954. $(this).parents('.dropdown-menu').siblings('button').text($(this).text());
  1955. if (!id) {
  1956. $('#third-category').children('button').text('全部').attr('data-cid', '').attr('data-value', '');
  1957. } else {
  1958. $('#third-category').children('button').attr('data-cid', $(this).data('cid')).attr('data-value', id);
  1959. categoryIndex = 3;
  1960. const third_cid = $('#third-category').children('button').attr('data-cid');
  1961. const third_value = $('#third-category').children('button').attr('data-value');
  1962. const thirdCategory = { cid: parseInt(third_cid), value: parseInt(third_value) };
  1963. newTenderList = _.filter(newTenderList, function (item) {
  1964. return _.findIndex(item.category, thirdCategory) !== -1;
  1965. });
  1966. // categoryList.push({ cid: parseInt($(this).data('cid')), value: parseInt($(this).data('value')) });
  1967. }
  1968. setData(newTenderList, categoryIndex);
  1969. // 获取新的tenderList及categoryList
  1970. })
  1971. })
  1972. function formatMoney(s, dot = ',', decimal = 2) {
  1973. if (!s) {
  1974. s = 0;
  1975. return s.toFixed(decimal);
  1976. }
  1977. console.log(parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(decimal) + '');
  1978. // 按decimal位数四舍五入方法
  1979. s = decimal === 0 ? parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(decimal) + '' : (Math.round(parseFloat((s + '').replace(/[^\d\.-]/g, '')) * Math.pow(10, decimal)) / Math.pow(10, decimal)).toFixed(decimal) + '';
  1980. console.log(s, Math.pow(10, decimal));
  1981. if (!decimal) {
  1982. s += '.';
  1983. }
  1984. const l = s.split('.')[0].split('').reverse(),
  1985. r = s.split('.')[1];
  1986. let t = '';
  1987. for (let i = 0; i < l.length; i++) {
  1988. t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? dot : '');
  1989. }
  1990. const num = t.split('').reverse().join('') + (decimal === 0 ? '' : '.' + r);
  1991. return num.replace('-,', '-');
  1992. }
  1993. // 计算显示滚动条长度
  1994. function computedPosition(xArrayLength) {
  1995. if (xArrayLength >= 8) {
  1996. return Math.floor(8 / xArrayLength * 100) > 100 ? 100 : Math.floor(8 / xArrayLength * 100);
  1997. // return length <= 10 ? 35 : 100 - Math.floor(35 / length * 100);
  1998. } else {
  1999. return 100;
  2000. }
  2001. }
  2002. </script>