detail.ejs 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514
  1. <link href="/public/css/bootstrap/bootstrap-colorpicker.min.css" rel="stylesheet">
  2. <% include ./tender_sub_menu.ejs %>
  3. <div class="panel-content">
  4. <div class="panel-title">
  5. <div class="title-main d-flex justify-content-between">
  6. <% include ./tender_sub_mini_menu.ejs %>
  7. <% if (tender.ledger_status !== audit.ledger.status.uncheck) { %>
  8. <h2>进行至
  9. <% if (lastStage) { %>
  10. 第<%- lastStage.order %>期<small class="<%- audit.stage.statusClass[lastStage.status] %>">(<%- audit.stage.statusString[lastStage.status] %>)</small>
  11. <% } else { %>
  12. 台账<small class="<%- audit.ledger.auditStringClass[tender.ledger_status] %>">(<%- audit.ledger.auditString[tender.ledger_status] %>)</small>
  13. <% } %>
  14. </h2>
  15. <% } %>
  16. <div class="align-items-center">
  17. <% if (ctx.tender.data.build_status === buildStatus.status.build) { %>
  18. <div class="d-inline-block">
  19. 在建状态:在建中
  20. <% if (!ctx.tender.isTourist) { %>
  21. <% if (canFinish) { %>
  22. <a href="#mod-status" data-toggle="modal" data-target="#mod-status" class="btn btn-primary btn-sm ml-2">修改状态</a>
  23. <% } else { %>
  24. <a href="#mod-status2" data-toggle="modal" data-target="#mod-status1" class="btn btn-primary btn-sm ml-2">修改状态</a>
  25. <% } %>
  26. <% } %>
  27. </div>
  28. <% } else { %>
  29. <div class="d-inline-block ml-2">
  30. 在建状态:已完工
  31. <% if (!ctx.tender.isTourist) { %>
  32. <a href="#mod-status1" data-toggle="modal" data-target="#mod-status2" class="btn btn-primary btn-sm ml-2">修改状态</a>
  33. <% } %>
  34. </div>
  35. <% } %>
  36. </div>
  37. <% if (cooperation) { %>
  38. <div>
  39. <a href="/tender/<%= tender.id %>/cooperation" class="btn btn-sm btn-light" ><i class="fa fa-users"></i> 协作办公</a>
  40. </div>
  41. <% } %>
  42. <div class="clearfix">
  43. <a href="javascript:void(0)" title="全屏显示" id="showFull" style="font-size: 16px" class="float-left text-dark mr-3"><i class="fa fa-arrows-alt"></i></a>
  44. <div class="dropdown d-flex float-left mt-1 mr-2">
  45. <!--<button id="showFull" class="btn btn-sm btn-outline-dark mr-2">全屏</button>-->
  46. <a class="btn btn-sm btn-outline-dark dropdown-toggle dropdown-wd" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  47. 标段
  48. </a>
  49. <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
  50. <a href="#bd-set-1" data-toggle="modal" data-target="#bd-set-1" class="dropdown-item" >标段属性</a>
  51. <a href="#bd-set-2" data-toggle="modal" data-target="#bd-set-2" class="dropdown-item" >小数位数</a>
  52. <a href="#bd-set-3" data-toggle="modal" data-target="#bd-set-3" class="dropdown-item" >数量精度</a>
  53. <a href="#bd-set-4" data-toggle="modal" data-target="#bd-set-4" class="dropdown-item" >合同参数</a>
  54. <a href="#bd-set-5" data-toggle="modal" data-target="#bd-set-5" class="dropdown-item" >显示设置</a>
  55. <a href="#bd-set-6" data-toggle="modal" data-target="#bd-set-6" class="dropdown-item" >章节设置</a>
  56. <a href="#bd-set-7" data-toggle="modal" data-target="#bd-set-7" class="dropdown-item" >付款账号</a>
  57. <a class="dropdown-item" href="javascript: void(0);" id="copyBtn">拷贝设置</a>
  58. </div>
  59. </div>
  60. <% if (ctx.session.sessionUser.is_admin) { %>
  61. <div class="dropdown d-flex mt-1">
  62. <a class="btn btn-sm btn-outline-dark dropdown-toggle dropdown-wd" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  63. 管理员
  64. </a>
  65. <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
  66. <% if (ctx.session.sessionProject.page_show !== null && parseInt(ctx.session.sessionProject.page_show.xxjd) === 1) { %>
  67. <a href="#xxjd-set" data-toggle="modal" data-target="#xxjd-set" class="dropdown-item">投资进度</a>
  68. <% } %>
  69. <a href="/tender/<%- tender.id %>/shenpi" class="dropdown-item">审批流程</a>
  70. <a href="#bd-set-9" data-toggle="modal" data-target="#bd-set-9" class="dropdown-item">游客账号 <span id="tourist-num" <% if (tourists.length !== 0) { %>class="badge badge-secondary"<% } %>><% if (tourists.length !== 0) { %><%- tourists.length %><% } %></span></a>
  71. <a href="#bd-set-10" data-toggle="modal" data-target="#bd-set-10" class="dropdown-item">上报控制</a>
  72. <a href="#bd-set-12" data-toggle="modal" data-target="#bd-set-12" class="dropdown-item">功能设置</a>
  73. <a href="#bd-set-11" data-toggle="modal" data-target="#bd-set-11" class="dropdown-item">概况设置</a>
  74. </div>
  75. </div>
  76. <% } %>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="content-wrap" id="big-data">
  81. <div style="height: 70px;display: none;<% if (ctx.tender.info.display.dayMode) { %> background-color: #fff;<% } else { %> background-color: #2c3237 !important;<% } %>" id="exitfull-div">
  82. <div class="title-main d-flex">
  83. <div class="ml-auto">
  84. <div class="dropdown d-flex float-left mt-1 mr-2">
  85. <button id="exitFull" class="btn btn-sm btn-secondary ml-auto">退出全屏</button>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="c-body <% if (ctx.tender.info.display.dayMode) { %>c-body-white<% } %>" <% if (!ctx.tender.info.display.dayMode) { %>style="background-color: #2c3237 !important;"<% } %>>
  91. <div class="sjs-height-0">
  92. <!--<div class="auto-main-height">-->
  93. <div class="main-height-one">
  94. <div class="m-3">
  95. <!--金额概况-->
  96. <div class="row ml-1 mb-3">
  97. <div class="col-12">
  98. <div class="row">
  99. <div class="col-auto pl-0">
  100. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  101. <div class="card-body">
  102. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.total_price) %></h5>
  103. <p class="card-text text-muted">0号台账合同</p>
  104. </div>
  105. </div>
  106. </div>
  107. <style>
  108. .tooltip-inner {
  109. max-width: 400px;
  110. text-align: left;
  111. }
  112. </style>
  113. <div class="col-auto pl-0">
  114. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  115. <div class="card-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<p style='text-align:left;'>批复正变更:<%- ctx.helper.formatMoney(tender.change_p_tp) %></p>批复负变更:<%- ctx.helper.formatMoney(tender.change_n_tp) %>">
  116. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.change_tp) %></h5>
  117. <p class="card-text text-muted">已批复变更金额</p>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="col-auto pl-0">
  122. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  123. <div class="card-body">
  124. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.sum) %></h5>
  125. <p class="card-text text-muted">变更后金额</p>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="col-auto pl-0">
  130. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  131. <div class="card-body" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<p>截止本期正变更:<%- ctx.helper.formatMoney(tender.end_positive_qc_tp) %></p>截止本期负变更:<%- ctx.helper.formatMoney(tender.end_negative_qc_tp) %>">
  132. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.end_qc_tp) %> <small class="text-danger" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="占合同比例"><%- tender.qc_ratio %>%</small></h5>
  133. <p class="card-text text-muted">截止本期变更</p>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="col-auto pl-0">
  138. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  139. <div class="card-body">
  140. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.gather_tp) %></h5>
  141. <p class="card-text text-muted">本期完成</p>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="col-auto pl-0">
  146. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  147. <div class="card-body">
  148. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.end_gather_tp) %></h5>
  149. <p class="card-text text-muted">截止本期完成</p>
  150. </div>
  151. </div>
  152. </div>
  153. <!--<div class="col-auto pl-0">-->
  154. <!--<div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">-->
  155. <!--<div class="card-body">-->
  156. <!--<h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.pre_gather_tp) %></h5>-->
  157. <!--<p class="card-text text-muted">截止上期完成</p>-->
  158. <!--</div>-->
  159. <!--</div>-->
  160. <!--</div>-->
  161. <div class="col-auto pl-0">
  162. <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  163. <div class="card-body">
  164. <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.yf_tp) %></h5>
  165. <p class="card-text text-muted">本期应付</p>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <!--进度条-->
  173. <div class="">
  174. <div class="progress">
  175. <% if (tender.pre_ratio > 0) { %>
  176. <div class="progress-bar bg-success bg-green" style="width: <%- tender.pre_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="截止上期累计完成:¥<%- ctx.helper.formatMoney(tender.pre_gather_tp) %>"><%- tender.pre_ratio %>%</div>
  177. <% } %>
  178. <% if (tender.cur_ratio > 0) { %>
  179. <div class="progress-bar bg-info bg-blue" style="width: <%- tender.cur_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="本期完成:¥<%- ctx.helper.formatMoney(tender.gather_tp) %>"><%- tender.cur_ratio %>%</div>
  180. <% } %>
  181. <% if (tender.other_ratio > 0) { %>
  182. <div class="progress-bar bg-danger bg-red" style="width: <%- tender.other_ratio %>%;" data-placement="bottom" data-toggle="tooltip" data-original-title="未完成:¥<%- ctx.helper.formatMoney(tender.other_tp) %>"><%- tender.other_ratio %>%</div>
  183. <% } %>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <!--图表1-->
  189. <div class="main-height-two">
  190. <div class="m-3">
  191. <div class="row">
  192. <div class="col-3">
  193. <!--计量完成概况-->
  194. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  195. <div class="card-header"><h6 class="mb-0">计量完成概况</h6></div>
  196. <div class="card-body">
  197. <div id="jlchart1" style="height: 100%; width: 100%;">
  198. </div>
  199. </div>
  200. </div>
  201. <!--支付情况-->
  202. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  203. <div class="card-header"><h6 class="mb-0">支付情况</h6></div>
  204. <div class="card-body">
  205. <div id="jlchart2" style="height: 100%; width: 100%;">
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <!--章节计量情况图-->
  211. <div class="col-6 pl-0">
  212. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  213. <% if (hadMap === 1) { %>
  214. <div class="card-body" id="map" style="height: 388px; width: 100%;"></div>
  215. <% } else if (hadMap === 2) { %>
  216. <div style="position:relative;height: 388px; width: 100%;">
  217. <% if (map_pic) { %>
  218. <% if (!ctx.tender.info.display.dayMode) { %>
  219. <div style="position:absolute;top:0;left:0;width:100%;height: 388px;background-color: rgba(44, 50, 55, 0.2);z-index: 10"></div>
  220. <% } %>
  221. <img style="display:block;width:100%;height: 388px;margin:0 auto;" src="<%- fujianOssPath + map_pic %>">
  222. <% } else { %>
  223. <div class="p-5 text-center text-muted">
  224. <img src="/public/images/nulllogo.png" />
  225. <div class="pt-3">请上传你的静态图片</div>
  226. </div>
  227. <% } %>
  228. </div>
  229. <% } else { %>
  230. <div class="card-header"><h6 class="mb-0">章节计量情况图</h6></div>
  231. <div class="card-body">
  232. <div id="jlchart3" style="height: 304px; width: 100%;">
  233. </div>
  234. </div>
  235. <% } %>
  236. </div>
  237. </div>
  238. <div class="col-3 pl-0">
  239. <!--台账审批进度-->
  240. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  241. <div class="card-header"><h6 class="mb-0"><% if (lastStage) { %>计量审批进度<% } else { %>台账审批进度<% } %></h6></div>
  242. <div class="card-body">
  243. <div style="">
  244. <div class="btn-group btn-group-sm btn-block my-1">
  245. <% if (lastStage) { %>
  246. <% if (lastStage.auditors && lastStage.auditors.length > 0) { %>
  247. <% for (const [i,sa] of lastStage.auditors.entries()) { %>
  248. <button class="btn <% if (sa.status === audit.stage.status.checked) { %>btn-green<% } else if (sa.status === audit.stage.status.checking) { %>btn-yellow<% } else if (sa.status === audit.stage.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (i+1 !== lastStage.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
  249. data-placement="top" data-original-title="<%- sa.name %> <% if (sa.status === audit.stage.status.checked) { %>审批完成<% } else if (sa.status === audit.stage.status.checking) { %>审批中<% } else if (sa.status === audit.stage.status.checkNo || sa.status === audit.stage.status.checkNoPre) { %>审批退回<% } else if (sa.status === audit.stage.status.checkAgain) { %>重新审批<% } %> <% if (sa.end_time) { %><%- ctx.helper.dateTran(sa.end_time, 'YYYY-MM-DD') %><% } %>">
  250. <% if (lastStage.auditors.length > 1 && i !== 0) { %><i class="fa <% if (lastStage.auditors[i-1].status === audit.stage.status.checked) { %>text-green<% } else if (lastStage.auditors[i-1].status === audit.stage.status.checking) { %>text-yellow<% } else if (lastStage.auditors[i-1].status === audit.stage.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- (i+1) %></button>
  251. <% } %>
  252. <% } else { %>
  253. <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title="">&nbsp;</button>
  254. <% } %>
  255. <% } else { %>
  256. <%if (tender.auditors && tender.auditors.length > 0) { %>
  257. <% for (const [i, la] of tender.auditors.entries()) { %>
  258. <button class="btn <% if (la.status === audit.ledger.status.checked) { %>btn-green<% } else if (la.status === audit.ledger.status.checking) { %>btn-yellow<% } else if (la.status === audit.ledger.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (i+1 !== tender.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
  259. data-placement="top" data-original-title="<%- la.name %> <% if (la.status === audit.ledger.status.checked) { %>审批完成<% } else if (la.status === audit.ledger.status.checking) { %>审批中<% } else if (la.status === audit.ledger.status.checkNo || la.status === audit.ledger.status.checkNoPre) { %>审批退回<% } %> <% if (la.end_time) { %><%- ctx.helper.dateTran(la.end_time, 'YYYY-MM-DD') %><% } %>">
  260. <% if (tender.auditors.length > 1 && i !== 0) { %><i class="fa <% if (tender.auditors[i-1].status === audit.ledger.status.checked) { %>text-green<% } else if (tender.auditors[i-1].status === audit.ledger.status.checking) { %>text-yellow<% } else if (tender.auditors[i-1].status === audit.ledger.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- (i+1) %></button>
  261. <% } %>
  262. <% } else { %>
  263. <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title="">&nbsp;</button>
  264. <% } %>
  265. <% } %>
  266. </div>
  267. <div class="row">
  268. <div class="col-2">
  269. </div>
  270. <div class="col-8 text-center">
  271. <% if (lastStage) { %>
  272. 第<%- lastStage.order %>期
  273. <% if (lastStage.status === audit.stage.status.uncheck) { %>
  274. <span class="text-info"><%- lastStage.status_users %></span>
  275. <% } else { %>
  276. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" data-type="stage" data-order="<%- lastStage.order %>"><%- lastStage.status_users %></a>
  277. <% } %>
  278. <span class="<%- audit.stage.statusClass[lastStage.status] %>"><%- audit.stage.statusString[lastStage.status] %></span>
  279. <% } else { %>
  280. <% if (tender.ledger_status === audit.ledger.status.uncheck) { %>
  281. <span class="text-info"><%- tender.status_users %></span> <span>待上报</span>
  282. <% } else { %>
  283. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" data-type="ledger" data-order="<%- tender.order %>"><%- tender.status_users %></a> <span class="<%- audit.ledger.auditStringClass[tender.ledger_status] %> %>"><%- audit.ledger.auditString[tender.ledger_status] %></span>
  284. <% } %>
  285. <% } %>
  286. </div>
  287. </div>
  288. <div class="row mt-1 border-top border-secondary pt-1 mt-2">
  289. <% if (lastStage) { %>
  290. <div class="col-7 mb-1">
  291. 本期合同计量金额:
  292. </div>
  293. <div class="col-5 text-right mb-1">
  294. <%- lastStage.contract_tp %>
  295. </div>
  296. <div class="col-7">
  297. 本期变更计量金额:
  298. </div>
  299. <div class="col-5 text-right">
  300. <%- lastStage.qc_tp %>
  301. </div>
  302. <% } else { %>
  303. <div class="col-7 mb-1">
  304. &nbsp;
  305. </div>
  306. <div class="col-5 text-right mb-1">
  307. &nbsp;
  308. </div>
  309. <div class="col-7">
  310. &nbsp;
  311. </div>
  312. <div class="col-5 text-right">
  313. &nbsp;
  314. </div>
  315. <% } %>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  321. <div class="card-header">
  322. <ul class="nav nav-tabs card-header-tabs panel-card-tabs <% if (ctx.tender.info.display.dayMode) { %>nav-white-tabs<% } %>">
  323. <li class="nav-item">
  324. <a class="nav-link active" data-toggle="tab" href="#taizhangshenpi" role="tab" aria-selected="true">工程变更进度</a>
  325. </li>
  326. <li class="nav-item">
  327. <a class="nav-link" data-toggle="tab" href="#taizhangxiuding" role="tab" aria-selected="true">材料调差进度</a>
  328. </li>
  329. </ul>
  330. </div>
  331. <div class="card-body">
  332. <div class="tab-content">
  333. <div class="tab-pane active" id="taizhangshenpi">
  334. <div id="bgchart" style="height: 100%; width: 100%;"></div>
  335. </div>
  336. <div class="tab-pane" id="taizhangxiuding" >
  337. <div class="card-body p-0">
  338. <div>
  339. <div class="btn-group btn-group-sm btn-block">
  340. <% if (materialData && materialData.auditors.length > 0) { %>
  341. <% for (const [i, ma] of materialData.auditors.entries()) { %>
  342. <button class="btn <% if (ma.status === audit.material.status.checked) { %>btn-green<% } else if (ma.status === audit.material.status.checking) { %>btn-yellow<% } else if(ma.status === audit.material.status.checkNo) { %>btn-red<% } else { %>btn-blueOne<% } %><% if (i+1 !== materialData.auditors.length) { %> btn-relative<% } %>" data-toggle="tooltip"
  343. data-placement="top" data-original-title="<%- ma.name %> <% if (ma.status === audit.material.status.checked) { %>审批完成<% } else if (ma.status === audit.material.status.checking) { %>审批中<% } else if (ma.status === audit.material.status.checkNo || ma.status === audit.material.status.checkNoPre) { %>审批退回<% } %> <% if (ma.end_time) { %><%- ctx.helper.dateTran(ma.end_time, 'YYYY-MM-DD') %><% } %>">
  344. <% if (materialData.auditors.length > 1 && i !== 0) { %><i class="fa <% if (materialData.auditors[i-1].status === audit.material.status.checked) { %>text-green<% } else if (materialData.auditors[i-1].status === audit.material.status.checking) { %>text-yellow<% } else if (materialData.auditors[i-1].status === audit.material.status.checkNo) { %>text-red<% } else { %>text-blueOne<% } %> fa-caret-right icon-absolute icon-size"></i><% } %><%- (i+1) %></button>
  345. <% } %>
  346. <% } else { %>
  347. <button class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-original-title="">&nbsp;</button>
  348. <% } %>
  349. <!--<button class="btn btn-warning" data-toggle="tooltip" data-placement="top" data-original-title="温仁书 审批中">2</button>-->
  350. <!--<button class="btn btn-info" data-toggle="tooltip" data-placement="top" data-original-title="玉安然">3</button>-->
  351. </div>
  352. <div class="row">
  353. <div class="col-2">
  354. </div>
  355. <div class="col-8 text-center">
  356. 第 <%- (materialData ? materialData.order : '0') %> 期
  357. <% if (materialData) { %>
  358. <% if (materialData.curAuditor) { %>
  359. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" data-type="material" data-order="<%- materialData.order %>"><%- materialData.curAuditor.name %></a>
  360. <% } %>
  361. <span class="<%- audit.material.auditProgressClass[materialData.status] %>"><%- audit.material.auditProgress[materialData.status] %></span>
  362. <% } %>
  363. </div>
  364. </div>
  365. <table class="table table-bordered table-2sm mb-0 mt-1 <% if (!ctx.tender.info.display.dayMode) { %>table-dark<% } %>">
  366. <% if (materialData) { %>
  367. <tr><th width="60%">含税(信息价/指数法)</th><td width="20%"><%= materialData.m_tp !== null ? ctx.helper.round(ctx.helper.mul(materialData.m_tp, 1+materialData.rate/100), 2) : '0' %></td><td width="20%"><%= materialData.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(materialData.ex_tp, 1+materialData.rate/100), 2) : '0' %></td></tr>
  368. <tr><th>不含税(信息价/指数法)</th><td><%= materialData.m_tp !== null ? ctx.helper.round(materialData.m_tp, 2) : '0' %></td><td><%= materialData.ex_tp !== null ? ctx.helper.round(materialData.ex_tp, 2) : '0' %></td></tr>
  369. <% } else { %>
  370. <tr><th width="60%">含税(信息价/指数法)</th><td width="20%">0</td><td width="20%">0</td></tr>
  371. <tr><th>不含税(信息价/指数法)</th><td>0</td><td>0</td></tr>
  372. <% } %>
  373. </table>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. <!--期进度表-->
  382. <div class="col-6">
  383. <div class="card mb-3 <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %> bottom-height">
  384. <% if (hadMap === 1 || hadMap === 2) { %>
  385. <div class="card-header"><h6 class="mb-0">章节计量情况表</h6></div>
  386. <div class="card-body">
  387. <div id="jlchart3" style="height: 300px; width: 100%;"></div>
  388. </div>
  389. <% } else { %>
  390. <div class="card-header"><h6 class="mb-0">期进度表</h6></div>
  391. <div class="card-body">
  392. <div id="chartContainer4" style="height: 300px; width: 100%;"></div>
  393. </div>
  394. <% } %>
  395. </div>
  396. </div>
  397. <!--月进度表-->
  398. <div class="col-6 pl-0">
  399. <div class="card mb-3 bottom-height <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
  400. <% if (hadMap === 1 || hadMap === 2) { %>
  401. <div class="card-header">
  402. <ul class="nav nav-tabs card-header-tabs panel-card-tabs <% if (ctx.tender.info.display.dayMode) { %>nav-white-tabs<% } %>" id="change-echarts">
  403. <li class="nav-item">
  404. <a class="nav-link active" data-toggle="tab" href="#qijindubiao" role="tab" aria-selected="true">期进度表</a>
  405. </li>
  406. <li class="nav-item">
  407. <a class="nav-link" data-toggle="tab" href="#yuejindbiao" role="tab" aria-selected="true">月进度表</a>
  408. </li>
  409. </ul>
  410. </div>
  411. <div class="card-body">
  412. <div class="tab-content">
  413. <div class="tab-pane active" id="qijindubiao">
  414. <div id="chartContainer4" class="bottom-height-two" style="width: 100%;"></div>
  415. </div>
  416. <div class="tab-pane" id="yuejindbiao" >
  417. <div id="chartContainer3" class="bottom-height-two" style="width: 100%;"></div>
  418. </div>
  419. </div>
  420. </div>
  421. <% } else { %>
  422. <div class="card-header"><h6 class="mb-0">月进度表</h6></div>
  423. <div class="card-body">
  424. <div id="chartContainer3" style="height: 300px; width: 100%;"></div>
  425. </div>
  426. <% } %>
  427. </div>
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. </div>
  436. </div>
  437. <script type="text/javascript">
  438. const tenders = JSON.parse(unescape('<%- escape(JSON.stringify(tenders)) %>'));
  439. const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
  440. const tender = JSON.parse('<%- JSON.stringify(tender) %>');
  441. const cur_uid = parseInt('<%- ctx.session.sessionUser.accountId %>');
  442. const dayMode = <%- ctx.tender.info.display.dayMode %>;
  443. //计量完成概况//
  444. var myChart = echarts.init(document.getElementById('jlchart1')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  445. var option = {
  446. <% if (ctx.tender.info.display.dayMode) { %>
  447. color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  448. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  449. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  450. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
  451. <% } else { %>
  452. color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'],
  453. backgroundColor: '#343a40 ',
  454. <% } %>
  455. tooltip: {
  456. trigger: 'item'
  457. },
  458. legend: {
  459. top: '0%',
  460. left: '0%',
  461. orient:'vertical'
  462. },
  463. series: [
  464. {
  465. name: '金额',
  466. type: 'pie',
  467. top:'0%',
  468. left:'50%',
  469. radius: ['100%'],
  470. avoidLabelOverlap: false,
  471. label: {
  472. show: false,
  473. position: 'right'
  474. },
  475. emphasis: {
  476. label: {
  477. show: true,
  478. fontSize: '20',
  479. fontWeight: 'bold'
  480. }
  481. },
  482. labelLine: {
  483. show: false
  484. },
  485. data: [
  486. <% for (const s of stage_total) { %>
  487. {value: <%- s.num %>, name: '<%- s.name %>'},
  488. <% } %>
  489. ]
  490. }
  491. ]
  492. };
  493. // 为echarts对象加载数据
  494. myChart.setOption(option);
  495. //计量完成概况 结束//
  496. //计量支付概况//
  497. var myChart1 = echarts.init(document.getElementById('jlchart2')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  498. var option1 = {
  499. <% if (!ctx.tender.info.display.dayMode) { %>backgroundColor: '#343a40 ',<% } %>
  500. tooltip: {
  501. trigger: 'axis',
  502. axisPointer: {
  503. type: 'shadow'
  504. }
  505. },
  506. grid: {
  507. left: '3%',
  508. right: '18%',
  509. top:'5%',
  510. bottom: '0%',
  511. containLabel: true
  512. },
  513. yAxis: {
  514. type: 'category',
  515. data: ['总价', '截止应付', '截止实付']
  516. },
  517. xAxis: {
  518. type: 'value',
  519. name : '金额',
  520. position:'left',
  521. axisLabel : {
  522. interval: 0,//横轴信息全部显示
  523. rotate: 35,// 倾斜角度
  524. formatter: function (value, index) {
  525. if (value < 0) {
  526. let newValue = Math.abs(value);
  527. if (newValue >= 10000 && newValue < 10000000) {
  528. newValue = newValue / 10000 + "万";
  529. } else if (newValue >= 10000000) {
  530. newValue = newValue / 10000000 + "千万";
  531. }
  532. value = '-' + newValue;
  533. }
  534. if (value >= 10000 && value < 10000000) {
  535. value = value / 10000 + "万";
  536. } else if (value >= 10000000) {
  537. value = value / 10000000 + "千万";
  538. }
  539. return value;
  540. }
  541. },
  542. splitArea : {show : true}
  543. },
  544. series: [{
  545. data: [<%- tender.total_price ? tender.total_price : 0 %>, <%- tender.end_yf_tp ? tender.end_yf_tp : 0 %>, <%- tender.end_sf_tp ? tender.end_sf_tp : 0 %>,],
  546. type: 'bar',
  547. itemStyle:{
  548. normal:{
  549. color:function(params){
  550. <% if (ctx.tender.info.display.dayMode) { %>
  551. var colorlist = ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  552. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  553. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  554. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'];
  555. <% } else { %>
  556. var colorlist = ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'];
  557. <% } %>
  558. return colorlist[params.dataIndex];
  559. }
  560. }
  561. }
  562. }]
  563. };
  564. // 为echarts对象加载数据
  565. myChart1.setOption(option1);
  566. //计量支付概况 结束//
  567. //章节计量情况图//
  568. var myChart2 = echarts.init(document.getElementById('jlchart3')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  569. var option2 = {
  570. <% if (ctx.tender.info.display.dayMode) { %>
  571. color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  572. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  573. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  574. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
  575. <% } else { %>
  576. color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(255,255,225,0.7)'],
  577. backgroundColor: '#343a40 ',
  578. <% } %>
  579. tooltip: {
  580. trigger: 'axis',
  581. axisPointer: {
  582. type: 'shadow'
  583. }
  584. },
  585. legend: {
  586. data: ['台账金额','截止本期计量']
  587. },
  588. grid: {
  589. left: '3%',
  590. right: '4%',
  591. bottom: '3%',
  592. containLabel: true
  593. },
  594. yAxis: {
  595. type : 'value',
  596. name : '金额',
  597. position:'left',
  598. axisLabel : {
  599. // if (ctx.tender.info.display.thousandth) {
  600. // formatter: function (value, index) {
  601. // return value.format2Str('#,##0.######') + ' 元'
  602. // }
  603. formatter: function (value, index) {
  604. if (value < 0) {
  605. let newValue = Math.abs(value);
  606. if (newValue >= 10000 && newValue < 10000000) {
  607. newValue = newValue / 10000 + "万";
  608. } else if (newValue >= 10000000) {
  609. newValue = newValue / 10000000 + "千万";
  610. }
  611. value = '-' + newValue;
  612. }
  613. if (value >= 10000 && value < 10000000) {
  614. value = value / 10000 + "万";
  615. } else if (value >= 10000000) {
  616. value = value / 10000000 + "千万";
  617. }
  618. return value;
  619. }
  620. },
  621. splitArea : {show : true}
  622. },
  623. xAxis: {
  624. type: 'category',
  625. data: [
  626. <% for (const gcl of gclChapter) { %>
  627. <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
  628. '<%- gcl.code %>章',
  629. <% } %>
  630. <% } %>
  631. ]
  632. },
  633. series: [
  634. {
  635. name: '台账金额',
  636. type: 'bar',
  637. data: [
  638. <% for (const gcl of gclChapter) { %>
  639. <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
  640. <%- gcl.total_price %>,
  641. <% } %>
  642. <% } %>
  643. ]
  644. },
  645. {
  646. name: '截止本期计量',
  647. type: 'bar',
  648. data: [
  649. <% for (const gcl of gclChapter) { %>
  650. <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
  651. <%- gcl.end_gather_tp %>,
  652. <% } %>
  653. <% } %>
  654. ]
  655. }
  656. ]
  657. };
  658. // 为echarts对象加载数据
  659. myChart2.setOption(option2);
  660. //4 标段期数计量进度//
  661. var myChart3 = echarts.init(document.getElementById('chartContainer4')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  662. var option3 = {
  663. <% if (ctx.tender.info.display.dayMode) { %>
  664. color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  665. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  666. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  667. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
  668. <% } else { %>
  669. color: ['rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(145,82,225,0.7)','rgba(204,73,80,0.7)','rgba(58,207,221,0.7)','rgba(255,255,225,0.7)'],
  670. backgroundColor: '#343a40 ',
  671. <% } %>
  672. title : {
  673. text: ''
  674. },
  675. tooltip : {
  676. trigger: 'axis',
  677. },
  678. calculable : true,
  679. legend: {
  680. itemWidth:15,
  681. data:['本期合同计量','本期数量变更计量','截止上期完成','本期完成计量','完成度']
  682. },
  683. dataZoom: [
  684. {show: true, start: 0, end: 100,height:10,bottom:30}
  685. ],
  686. xAxis : [
  687. {
  688. type : 'category',
  689. splitLine : {show : true},
  690. data : [
  691. <% for (const s of stages) {%>
  692. '第<%- s.order %>期',
  693. <% } %>
  694. ]
  695. }
  696. ],
  697. yAxis : [
  698. {
  699. type : 'value',
  700. name : '金额',
  701. position:'left',
  702. axisLabel : {
  703. formatter: function (value, index) {
  704. if (value < 0) {
  705. let newValue = Math.abs(value);
  706. if (newValue >= 10000 && newValue < 10000000) {
  707. newValue = newValue / 10000 + "万";
  708. } else if (newValue >= 10000000) {
  709. newValue = newValue / 10000000 + "千万";
  710. }
  711. value = '-' + newValue;
  712. }
  713. if (value >= 10000 && value < 10000000) {
  714. value = value / 10000 + "万";
  715. } else if (value >= 10000000) {
  716. value = value / 10000000 + "千万";
  717. }
  718. return value;
  719. }
  720. },
  721. splitArea : {show : true},
  722. splitLine : {show : true},
  723. },
  724. {
  725. type : 'value',
  726. name:'完成度',
  727. axisLabel : {
  728. formatter: '{value} %'
  729. },
  730. position: 'right',
  731. splitArea : {show : false},
  732. splitLine : {show : false},
  733. }
  734. ],
  735. series : [
  736. {
  737. name:'本期合同计量',
  738. type:'bar',
  739. tooltip : {
  740. trigger: 'item',
  741. <% if (ctx.tender.info.display.thousandth) { %>
  742. formatter: function (params, ticket, callback) {
  743. return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
  744. }
  745. <% } else { %>
  746. tooltip : {trigger: 'item',formatter: "{b} <br/>{a}:{c}元"},
  747. <% } %>
  748. },
  749. stack: '合同',
  750. data:[
  751. <% for (const s of stages) {%>
  752. <%- s.contract_tp %>,
  753. <% } %>
  754. ]
  755. },
  756. {
  757. name:'本期数量变更计量',
  758. type:'bar',
  759. tooltip : {
  760. trigger: 'item',
  761. <% if (ctx.tender.info.display.thousandth) { %>
  762. formatter: function (params, ticket, callback) {
  763. return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
  764. }
  765. <% } else { %>
  766. tooltip : {trigger: 'item',formatter: "{b} <br/>{a}:{c}元"},
  767. <% } %>
  768. },
  769. stack: '变更',
  770. data:[
  771. <% for (const s of stages) {%>
  772. <%- s.qc_tp %>,
  773. <% } %>
  774. ]
  775. },
  776. {
  777. name:'截止上期完成',
  778. type:'bar',
  779. tooltip : {
  780. trigger: 'item',
  781. <% if (ctx.tender.info.display.thousandth) { %>
  782. formatter: function (params, ticket, callback) {
  783. return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
  784. }
  785. <% } else { %>
  786. tooltip : {trigger: 'item',formatter: "{b} <br/>{a}:{c}元"},
  787. <% } %>
  788. },
  789. stack: '完成',
  790. data:[
  791. <% for (const s of stages) {%>
  792. <%- ctx.helper.add(s.pre_contract_tp, s.pre_qc_tp) %>,
  793. <% } %>
  794. ]
  795. },
  796. {
  797. name:'本期完成计量',
  798. type:'bar',
  799. tooltip : {
  800. trigger: 'item',
  801. <% if (ctx.tender.info.display.thousandth) { %>
  802. formatter: function (params, ticket, callback) {
  803. return params.name + '<br/>' + params.seriesName + ': ' + params.value.format2Str('#,##0.######') + ' 元';
  804. }
  805. <% } else { %>
  806. tooltip : {trigger: 'item',formatter: "{b} <br/>{a}:{c}元"},
  807. <% } %>
  808. },
  809. stack: '完成',
  810. data:[
  811. <% for (const s of stages) {%>
  812. <%- ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]) %>,
  813. <% } %>
  814. ]
  815. },
  816. {
  817. name:'完成度',
  818. type:'line',
  819. tooltip : {trigger: 'axis',formatter: "{b}占总标段<br/>{a}:{c} %"},
  820. yAxisIndex: 1,
  821. data:[
  822. <% for (const s of stages) {%>
  823. <%- ctx.helper.mul(ctx.helper.div(ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]), tender.sum, 2), 100) %>,
  824. <% } %>
  825. ]
  826. },
  827. ]
  828. };
  829. // 为echarts对象加载数据
  830. myChart3.setOption(option3);
  831. //4 标段期数计量进度//
  832. //3 标段月进度//
  833. // 基于准备好的dom,初始化echarts图表
  834. var myChart4 = echarts.init(document.getElementById('chartContainer3')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  835. var option4 = {
  836. <% if (ctx.tender.info.display.dayMode) { %>
  837. color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  838. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  839. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  840. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
  841. <% } else { %>
  842. color:["#17a2b8","#28a745"],
  843. backgroundColor: '#343a40 ',
  844. <% } %>
  845. title : {
  846. text: ''
  847. },
  848. tooltip : {
  849. trigger: 'axis',
  850. formatter: function (params, ticket, callback) {
  851. let sHint = '';
  852. for (const param of params) {
  853. if (sHint !== '') {
  854. sHint += '<br>';
  855. }
  856. if (sHint === '' && param.name !== '') {
  857. sHint = param.name + '<br>';
  858. }
  859. sHint += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + param.color +'"></span>';
  860. if (param.data) {
  861. sHint += param.seriesName + ': ' + param.data + ' %';
  862. } else {
  863. sHint += param.seriesName + ': -';
  864. }
  865. }
  866. return sHint;
  867. },
  868. },
  869. legend: {
  870. data:['截止本月完成','本月完成']
  871. },
  872. toolbox: {
  873. show : true,
  874. right:'3%',
  875. feature : {
  876. magicType : {
  877. show: true,
  878. type: ['line', 'bar'],
  879. title:{
  880. line:'切换为折线图',
  881. bar:'切换为柱状图'
  882. }
  883. }
  884. }
  885. },
  886. dataZoom : {
  887. show : true,
  888. start : 50,
  889. end : 100,
  890. height:10,
  891. bottom:30
  892. },
  893. xAxis : [
  894. {
  895. type : 'category',
  896. boundaryGap : true,
  897. data : [
  898. <% for (const mp of monthProgress) { %>
  899. '<%- mp.month %>',
  900. <% } %>
  901. ]
  902. }
  903. ],
  904. yAxis : [
  905. {
  906. type : 'value',
  907. axisLabel : {
  908. formatter: '{value} %'
  909. },
  910. splitArea : {show : true}
  911. }
  912. ],
  913. series : [
  914. {
  915. name:'截止本月完成',
  916. type:'line',
  917. itemStyle: {
  918. normal: {
  919. lineStyle: {
  920. shadowColor : 'rgba(0,0,0,0.4)',
  921. shadowBlur: 5,
  922. shadowOffsetX: 3,
  923. shadowOffsetY: 3
  924. }
  925. }
  926. },
  927. areaStyle: { // 区域填充样式
  928. color: { // 填充的颜色 // 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置
  929. type: 'linear',
  930. x: 0,
  931. y: 0,
  932. x2: 0,
  933. y2: 1,
  934. colorStops: [
  935. {
  936. offset: 0,
  937. color: 'rgba(37,234,255,0.7)', // 0% 处的颜色
  938. },
  939. {
  940. offset: 1,
  941. color: 'rgba(37,234,255,0.7)' // 100% 处的颜色
  942. }
  943. ],
  944. global: false, // 缺省为 false
  945. }
  946. },
  947. data:[
  948. <% for (const mp of monthProgress) { %>
  949. <%- mp.end_ratio %>,
  950. <% } %>
  951. ]
  952. },
  953. {
  954. name:'本月完成',
  955. type:'line',
  956. itemStyle: {
  957. normal: {
  958. lineStyle: {
  959. shadowColor : 'rgba(0,0,0,0.4)',
  960. shadowBlur: 5,
  961. shadowOffsetX: 3,
  962. shadowOffsetY: 3
  963. }
  964. }
  965. },
  966. areaStyle: { // 区域填充样式
  967. color: { // 填充的颜色 // 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置
  968. type: 'linear',
  969. x: 0,
  970. y: 0,
  971. x2: 0,
  972. y2: 1,
  973. colorStops: [
  974. {
  975. offset: 0,
  976. color: 'rgba(40,167,69,0.7)', // 0% 处的颜色
  977. },
  978. {
  979. offset: 1,
  980. color: 'rgba(40,167,69,0.7)' // 100% 处的颜色
  981. }
  982. ],
  983. global: false, // 缺省为 false
  984. }
  985. },
  986. data:[
  987. <% for (const mp of monthProgress) { %>
  988. <%- mp.ratio %>,
  989. <% } %>
  990. ]
  991. }
  992. ]
  993. };
  994. // 为echarts对象加载数据
  995. myChart4.setOption(option4);
  996. //3 标段月进度//
  997. //变更审批进度//
  998. var myChart5 = echarts.init(document.getElementById('bgchart')<% if (!ctx.tender.info.display.dayMode) { %>, 'dark'<% } %>);
  999. var option5 = {
  1000. <% if (ctx.tender.info.display.dayMode) { %>
  1001. color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
  1002. '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
  1003. '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
  1004. '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
  1005. <% } else {%>
  1006. color: ['rgba(145,82,225,0.7)','rgba(58,207,221,0.7)','rgba(204,73,80,0.7)','rgba(24,144,255,0.7)','rgba(69,183,149,0.7)','rgba(250,204,20,0.7)','rgba(255,255,225,0.7)'],
  1007. backgroundColor: '#343a40 ',
  1008. <% } %>
  1009. tooltip: {
  1010. trigger: 'item'
  1011. },
  1012. // legend: {
  1013. // top: '0%',
  1014. // right: '0%',
  1015. // orient:'vertical',
  1016. // itemWidth:15,
  1017. // data: ['一般变更', '较大变更', '重大变更', '待上报', '审批中', '已完成']
  1018. // },
  1019. legend:[{
  1020. top: '0%',
  1021. right: '0%',
  1022. orient:'vertical',
  1023. itemWidth:15,
  1024. data:['一般变更','较大变更','重大变更']
  1025. },{
  1026. top: '0%',
  1027. right: '35%',
  1028. orient:'vertical',
  1029. itemWidth:15,
  1030. data:['待上报','审批中','已完成']
  1031. }],
  1032. series: [
  1033. {
  1034. name: '数量',
  1035. type: 'pie',
  1036. top:'0%',
  1037. right:'65%',
  1038. selectedMode: 'single',
  1039. radius: '50%',
  1040. avoidLabelOverlap: false,
  1041. label: {
  1042. show:false,
  1043. //position: 'inner',
  1044. //fontSize: 14,
  1045. },
  1046. labelLine: {
  1047. show: false
  1048. },
  1049. data: [
  1050. <% for (const cs of change_status_total) { %>
  1051. {value: <%- cs.num %>, name: '<%- cs.name %>'},
  1052. <% } %>
  1053. ]
  1054. },
  1055. {
  1056. name: '数量',
  1057. type: 'pie',
  1058. top:'0%',
  1059. right:'65%',
  1060. radius: ['70%', '100%'],
  1061. avoidLabelOverlap: false,
  1062. label: {
  1063. show: false,
  1064. position: 'center'
  1065. },
  1066. emphasis: {
  1067. label: {
  1068. show: false,
  1069. //fontSize: '14',
  1070. //fontWeight: 'bold'
  1071. }
  1072. },
  1073. labelLine: {
  1074. //show: false,
  1075. length: 20,
  1076. },
  1077. data: [
  1078. <% for (const cq of change_quality_total) { %>
  1079. {value: <%- cq.num %>, name: '<%- cq.name %>'},
  1080. <% } %>
  1081. ]
  1082. }
  1083. ]
  1084. };
  1085. // 为echarts对象加载数据
  1086. myChart5.setOption(option5);
  1087. function echartsReset() {
  1088. myChart.resize();
  1089. myChart1.resize();
  1090. myChart2.resize();
  1091. myChart3.resize();
  1092. myChart4.resize();
  1093. myChart5.resize();
  1094. }
  1095. $(function () {
  1096. $('#change-echarts a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
  1097. myChart3.resize();
  1098. myChart4.resize();
  1099. });
  1100. $('#showFull').click(function () {
  1101. const full=document.getElementById("big-data");
  1102. launchIntoFullscreen(full);
  1103. // $('#exitFull').show();
  1104. // $('#showFull').hide();
  1105. });
  1106. $('#exitFull').click(function () {
  1107. exitFullscreen();
  1108. // $('#exitFull').hide();
  1109. // $('#showFull').show();
  1110. })
  1111. })
  1112. $(window).resize(echartsReset);
  1113. // 数据全屏
  1114. function launchIntoFullscreen(element) {
  1115. if(element.requestFullscreen){
  1116. element.requestFullscreen();
  1117. }
  1118. else if(element.mozRequestFullScreen) {
  1119. element.mozRequestFullScreen();
  1120. }
  1121. else if(element.webkitRequestFullscreen) {
  1122. element.webkitRequestFullscreen();
  1123. }
  1124. else if(element.msRequestFullscreen) {
  1125. element.msRequestFullscreen();
  1126. }
  1127. }
  1128. function exitFullscreen() {
  1129. if(document.exitFullscreen) {
  1130. document.exitFullscreen();
  1131. } else if(document.mozCancelFullScreen) {
  1132. document.mozCancelFullScreen();
  1133. } else if(document.webkitExitFullscreen) {
  1134. document.webkitExitFullscreen();
  1135. }
  1136. }
  1137. document.addEventListener("fullscreenchange", function (event) {
  1138. if (document.fullscreenElement) {
  1139. $('#exitfull-div').show();
  1140. $('#showFull').hide();
  1141. } else {
  1142. $('#exitfull-div').hide();
  1143. $('#showFull').show();
  1144. }
  1145. });
  1146. </script>
  1147. <script src="/public/js/sub_menu.js"></script>
  1148. <script>
  1149. $.subMenu({
  1150. menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
  1151. toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
  1152. key: 'menu.1.0.0',
  1153. miniHint: '#sub-mini-hint', hintKey: 'menu.hint.1.0.1',
  1154. callback: function (info) {
  1155. if (info.mini) {
  1156. $('.panel-title').addClass('fluid');
  1157. $('#sub-menu').removeClass('panel-sidebar');
  1158. } else {
  1159. $('.panel-title').removeClass('fluid');
  1160. $('#sub-menu').addClass('panel-sidebar');
  1161. }
  1162. autoFlashHeight();
  1163. echartsReset();
  1164. }
  1165. });
  1166. </script>
  1167. <script>
  1168. const tenderId = parseInt('<%- tender.id %>');
  1169. $(document).ready(function () {
  1170. // 获取审批流程
  1171. $('a[data-target="#sp-list" ]').on('click', function () {
  1172. const type = $(this).attr('data-type');
  1173. const data = {
  1174. order: $(this).attr('data-order'),
  1175. };
  1176. let url = '';
  1177. let auditConst = '';
  1178. if (type === 'stage') {
  1179. url = '/tender/' + tenderId + '/measure/stage/auditors';
  1180. auditConst = JSON.parse('<%- JSON.stringify(audit.stage) %>');
  1181. } else if (type === 'ledger') {
  1182. url = '/tender/' + tenderId + '/measure/ledger/auditors';
  1183. auditConst = JSON.parse('<%- JSON.stringify(audit.ledger) %>');
  1184. } else if (type === 'material') {
  1185. url = '/tender/' + tenderId + '/measure/material/auditors';
  1186. auditConst = JSON.parse('<%- JSON.stringify(audit.material) %>');
  1187. }
  1188. postData(url, data, function (result) {
  1189. const { auditHistory, auditors, user } = result
  1190. let historyHTML = ''
  1191. const leftAuditors = auditors;
  1192. const darkHTML = !dayMode ? 'bg-dark border-secondary text-white' : '';
  1193. auditHistory.forEach((auditors, idx) => {
  1194. if(idx === auditHistory.length - 1 && auditHistory.length !== 1) {
  1195. historyHTML += `<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show"
  1196. >展开历史审批流程</a></div>`
  1197. }
  1198. historyHTML += `<div class="${idx < auditHistory.length - 1 ? 'fold-card' : ''}">
  1199. <div class="text-center text-muted">${idx + 1}#</div>
  1200. <ul class="timeline-list list-unstyled mt-2">`
  1201. auditors.forEach((auditor, index) => {
  1202. if (index === 0) {
  1203. historyHTML += `<li class="timeline-list-item pb-2">
  1204. <div class="timeline-item-date">
  1205. ${formatDate(auditor.begin_time, !dayMode)}
  1206. </div>
  1207. <div class="timeline-item-tail"></div>
  1208. <div class="timeline-item-icon bg-success text-light">
  1209. <i class="fa fa-caret-down"></i>
  1210. </div>
  1211. <div class="timeline-item-content">
  1212. <div class="card ${darkHTML}">
  1213. <div class="card-body p-3">
  1214. <div class="card-text">
  1215. <p class="mb-1"><span
  1216. class="h5">${user.name}</span><span
  1217. class="pull-right text-success">${idx !== 0 ? '重新' : ''}上报审批</span>
  1218. </p>
  1219. <p class="text-muted mb-0">${user.role}</p>
  1220. </div>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. </li>
  1225. <li class="timeline-list-item pb-2">
  1226. <div class="timeline-item-date">
  1227. ${formatDate(auditor.end_time, !dayMode)}
  1228. </div>`
  1229. if(index < auditors.length - 1) {
  1230. historyHTML += `<div class="timeline-item-tail"></div>`
  1231. }
  1232. if(auditor.status === auditConst.status.checked) {
  1233. historyHTML += `<div class="timeline-item-icon bg-success text-light">
  1234. <i class="fa fa-check"></i>
  1235. </div>`
  1236. } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
  1237. historyHTML += `<div class="timeline-item-icon bg-warning text-light">
  1238. <i class="fa fa-level-up"></i>
  1239. </div>`
  1240. } else if(auditor.status === auditConst.status.checking) {
  1241. historyHTML += `<div class="timeline-item-icon bg-warning text-light">
  1242. <i class="fa fa-ellipsis-h"></i>
  1243. </div>`
  1244. } else {
  1245. historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
  1246. }
  1247. historyHTML += `<div class="timeline-item-content">
  1248. <div class="card ${darkHTML}">
  1249. <div class="card-body p-3">
  1250. <div class="card-text">
  1251. <p class="mb-1"><span class="h5">${auditor.name}</span><span
  1252. class="pull-right ${auditConst.statusClass[auditor.status]}">${auditConst.statusString[auditor.status]}</span>
  1253. </p>
  1254. <p class="text-muted mb-0">${auditor.role}</p>
  1255. </div>
  1256. </div>`
  1257. if (auditor.opinion) {
  1258. historyHTML += `<div class="card-body p-3 border-top">
  1259. <p style="margin: 0;">${auditor.opinion}</p>
  1260. </div>`
  1261. }
  1262. historyHTML += `</div></div></li>`
  1263. } else {
  1264. historyHTML += `<li class="timeline-list-item pb-2">
  1265. <div class="timeline-item-date">
  1266. ${formatDate(auditor.end_time, !dayMode)}
  1267. </div>`
  1268. if(index < auditors.length - 1) {
  1269. historyHTML += `<div class="timeline-item-tail"></div>`
  1270. }
  1271. if(auditor.status === auditConst.status.checked) {
  1272. historyHTML += `<div class="timeline-item-icon bg-success text-light">
  1273. <i class="fa fa-check"></i>
  1274. </div>`
  1275. } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {
  1276. historyHTML += `<div class="timeline-item-icon bg-warning text-light">
  1277. <i class="fa fa-level-up"></i>
  1278. </div>`
  1279. } else if(auditor.status === auditConst.status.checking) {
  1280. historyHTML += `<div class="timeline-item-icon bg-warning text-light">
  1281. <i class="fa fa-ellipsis-h"></i>
  1282. </div>`
  1283. } else {
  1284. historyHTML += `<div class="timeline-item-icon bg-secondary text-light"></div>`
  1285. }
  1286. historyHTML += `<div class="timeline-item-content">
  1287. <div class="card ${darkHTML}">
  1288. <div class="card-body p-3">
  1289. <div class="card-text">
  1290. <p class="mb-1"><span class="h5">${auditor.name}</span>
  1291. <span
  1292. class="pull-right
  1293. ${auditConst.statusClass[auditor.status]}">${auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''}
  1294. ${auditor.status === auditConst.status.checkNo ? user.name : ''}
  1295. ${auditor.status === auditConst.status.checkNoPre ? (leftAuditors.find(item => item.order === auditor.sort-1) ? leftAuditors.find(item => item.order === auditor.sort-1).name : '') : ''}
  1296. </span>
  1297. </p>
  1298. <p class="text-muted mb-0">${auditor.role}</p>
  1299. </div>
  1300. </div>`
  1301. if (auditor.opinion) {
  1302. historyHTML += `<div class="card-body p-3 border-top">
  1303. <p style="margin: 0;">${auditor.opinion} </p>
  1304. </div>`
  1305. }
  1306. historyHTML += `</div></div></li>`
  1307. }
  1308. })
  1309. historyHTML += '</ul></div>'
  1310. })
  1311. $('#audit-list').empty()
  1312. $('#audit-list').append(historyHTML)
  1313. });
  1314. });
  1315. // 展开/收起历史审核记录
  1316. $('#audit-list').on('click', 'a', function() {
  1317. const type = $(this).data('target')
  1318. const auditCard = $(this).parent().parent()
  1319. console.log('auditCard', auditCard)
  1320. if (type === 'show') {
  1321. $(this).data('target', 'hide')
  1322. auditCard.find('.fold-card').slideDown('swing', () => {
  1323. auditCard.find('#end-target').text($(this).data('idx') + '#')
  1324. auditCard.find('#fold-btn').text('收起历史审核记录')
  1325. })
  1326. } else {
  1327. $(this).data('target', 'show')
  1328. auditCard.find('.fold-card').slideUp('swing', () => {
  1329. auditCard.find('#end-target').text('1#')
  1330. auditCard.find('#fold-btn').text('展开历史审核记录')
  1331. })
  1332. }
  1333. });
  1334. function formatDate(date, dayMode) {
  1335. if (!date) return '';
  1336. date = new Date(date)
  1337. const year = date.getFullYear();
  1338. let mon = date.getMonth() + 1;
  1339. let day = date.getDate();
  1340. let hour = date.getHours();
  1341. let minute = date.getMinutes();
  1342. let scond = date.getSeconds();
  1343. if (mon < 10) {
  1344. mon = '0' + mon.toString();
  1345. }
  1346. if (day < 10) {
  1347. day = '0' + day.toString();
  1348. }
  1349. if (hour < 10) {
  1350. hour = '0' + hour.toString();
  1351. }
  1352. if (minute < 10) {
  1353. minute = '0' + minute.toString();
  1354. }
  1355. if (scond < 10) {
  1356. scond = '0' + scond.toString();
  1357. }
  1358. return `${year}<span class="${dayMode ? 'text-light' : ''}">${mon}-${day}</span><span class="${dayMode ? 'text-light' : ''}">${hour}:${minute}:${scond}</span>`;
  1359. };
  1360. })
  1361. </script>
  1362. <% if (hadMap === 1 || ctx.session.sessionUser.is_admin) { %>
  1363. <script src="/public/js/map/turf.min.js"></script>
  1364. <script src="/public/js/map/gcoord.js"></script>
  1365. <script>
  1366. const tenderMapList = JSON.parse(unescape('<%- escape(JSON.stringify(tenderMapList)) %>'));
  1367. </script>
  1368. <% } %>
  1369. <% if (hadMap === 1) { %>
  1370. <!--<script src="//bj.bcebos.com/v1/mapopen/api-demos/js/mapStyle.js"></script>-->
  1371. <script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=C3hLZAjuWTaCdwnwoYY83APrwlPEj4v7"></script>
  1372. <script type="text/javascript">
  1373. // 画线
  1374. $(function () {
  1375. const map = new BMapGL.Map("map");
  1376. // 创建地图实例
  1377. const polyLineList = [];
  1378. const centerPoint = { lng: <%- map_json.lng %>, lat: <%- map_json.lat %> };
  1379. let level = <%- map_json.level %>;
  1380. const pointList = [];
  1381. const centerList = [];
  1382. for (const tm of tenderMapList) {
  1383. if (tm.map_json) {
  1384. const map_json = JSON.parse(unescape(escape(tm.map_json)));
  1385. const lngLatList = [];
  1386. for (const mj of map_json) {
  1387. const result = gcoord.transform([mj.lng, mj.lat], gcoord.WGS84, gcoord.BD09);
  1388. lngLatList.push(new BMapGL.Point(result[0], result[1]));
  1389. }
  1390. polyLineList.push({
  1391. map: lngLatList,
  1392. color: tm.color,
  1393. });
  1394. const center = JSON.parse(tm.center);
  1395. pointList.push(turf.point([center.lng, center.lat]));
  1396. if (tm.tips) {
  1397. const centerResult = gcoord.transform([map_json[Math.floor(map_json.length/2)].lng, map_json[Math.floor(map_json.length/2)].lat], gcoord.WGS84, gcoord.BD09);
  1398. centerList.push({ map: new BMapGL.Point(centerResult[0], centerResult[1]), color: tm.color, tips: tm.tips });
  1399. }
  1400. }
  1401. }
  1402. if (pointList.length > 0) {
  1403. let maxDistance = 0;
  1404. // 中心点计算
  1405. const features = turf.featureCollection(pointList);
  1406. const center = turf.center(features);
  1407. if (center && center.geometry && center.geometry.coordinates && center.geometry.coordinates.length === 2) {
  1408. centerPoint.lng = _.round(center.geometry.coordinates[0], 4);
  1409. centerPoint.lat = _.round(center.geometry.coordinates[1], 4);
  1410. }
  1411. // 地图级别计算
  1412. if (pointList.length === 1) {
  1413. // 只有一条路线
  1414. const map_json = JSON.parse(unescape(escape(tenderMapList[0].map_json)));
  1415. for (const mj of map_json) {
  1416. const distance = turf.distance(turf.point([mj.lng, mj.lat]), turf.point([centerPoint.lng, centerPoint.lat]));
  1417. if (distance > maxDistance) {
  1418. maxDistance = distance;
  1419. }
  1420. }
  1421. } else {
  1422. for (const c of pointList) {
  1423. const distance = turf.distance(c, turf.point([centerPoint.lng, centerPoint.lat]));
  1424. if (distance > maxDistance) {
  1425. maxDistance = distance;
  1426. }
  1427. }
  1428. }
  1429. if (maxDistance === 0) {
  1430. level = 15;
  1431. } else {
  1432. // 级别区间
  1433. // const range = [0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 25, 50, 100, 200, 500, 1000, 2000, 5000, 10000];
  1434. const range = [10000, 5000, 2000, 1000, 500, 200, 100, 50, 25, 20, 10, 5, 2, 1, 0.5, 0.2, 0.1, 0.05, 0.02];
  1435. level = _.findIndex(range, function (item) {
  1436. return item <= maxDistance;
  1437. })
  1438. level = level + 1;
  1439. }
  1440. const result = gcoord.transform([centerPoint.lng, centerPoint.lat], gcoord.WGS84, gcoord.BD09);
  1441. centerPoint.lng = result[0];
  1442. centerPoint.lat = result[1];
  1443. }
  1444. // 初始化地图,设置中心点坐标和地图级别
  1445. const point = new BMapGL.Point(centerPoint.lng, centerPoint.lat);
  1446. map.centerAndZoom(point, level);
  1447. // const LocationControl = new BMapGL.LocationControl(); // 添加比例尺控件
  1448. // map.addControl(LocationControl);
  1449. map.enableScrollWheelZoom(true);
  1450. <% if (!ctx.tender.info.display.dayMode) { %>
  1451. map.setMapStyleV2({styleId: '20d4aea41cf71387395f2dc835f1c4b6'});
  1452. <% } %>
  1453. if (polyLineList.length > 0) {
  1454. for (const pl of polyLineList) {
  1455. const polyline = new BMapGL.Polyline(pl.map, {strokeColor: pl.color, strokeWeight:10, strokeOpacity:1});
  1456. map.addOverlay(polyline);
  1457. }
  1458. }
  1459. if (centerList.length > 0) {
  1460. for (const cl of centerList) {
  1461. const opts = {
  1462. position : cl.map, // 指定文本标注所在的地理位置
  1463. offset : new BMapGL.Size(5, 0) //设置文本偏移量
  1464. }
  1465. const label = new BMapGL.Label(cl.tips, opts); // 创建文本标注对象
  1466. label.setStyle({
  1467. height: '18px',
  1468. lineHeight : '18px',
  1469. color : cl.color,
  1470. borderRadius: '5px',
  1471. borderColor: cl.color,
  1472. padding: '0px 5px',
  1473. fontSize : '12px',
  1474. // fontFamily: '微软雅黑',
  1475. });
  1476. map.addOverlay(label);
  1477. // const opts = {
  1478. // width: 0,
  1479. // height: 0,
  1480. // maxwidth: 220,
  1481. // title: '路线标注:',
  1482. // };
  1483. // const infoWindow = new BMapGL.InfoWindow(cl.tips, opts);
  1484. // map.openInfoWindow(infoWindow, cl.map);
  1485. }
  1486. }
  1487. })
  1488. </script>
  1489. <% } %>