index.ejs 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  1. <div class="panel-content">
  2. <div class="panel-title fluid">
  3. <div class="title-main d-flex">
  4. <h2><%= ctx.subProject.name %></h2>
  5. <div class="ml-auto">
  6. <i class="fa fa-bell mr-1"></i><a href="#version" data-toggle="modal" data-target="#version">当前版本:<%= versionList[0].name %></a>
  7. <% if (sysMsgList.length > 0) { %>
  8. <!--系统消息通知-->
  9. <% for (const sm of sysMsgList) { %>
  10. <!--<a href="#view-msg" msg-id="<%= sm.id %>" data-toggle="modal" data-target="#view-msg" class="mr-5 mb-2 system-msg"><%- sm.title %>(<%- moment(sm.release_time*1000).format('YYYY-MM-DD') %>)</a>-->
  11. <a href="#view-msg" msg-id="<%= sm.id %>" data-toggle="modal" data-target="#view-msg" class="ml-3 system-msg">系统最新通知</a>
  12. <% } %>
  13. <% } %>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="content-wrap my-3">
  18. <% if (!authMobile) { %>
  19. <div class="text-danger px-3 mb-3 mobile-height">
  20. <strong>您的账号未认证手机。</strong> 设置认证手机后,可以用于 找回密码 及 接收验证码。<a class="badge badge-danger" href="/profile/sms">点击设置</a>
  21. </div>
  22. <% } %>
  23. <% if (maintainData.status !== maintainConst.status.notset && new Date().getTime() + (86400*1000) > parseFloat(maintainData.maintain_time)) { %>
  24. <!--系统维护信息-->
  25. <div class="card mb-3 bg-danger text-white mx-3 maintain-height">
  26. <div class="card-body">
  27. <h4><i class="fa fa-wrench"></i> 系统将于 <%- moment(parseFloat(maintainData.maintain_time)).format('YYYY年MM月DD日 HH:mm') %> 开始停机维护,<%- (maintainData.duration !== maintainConst.duration.forever ? '持续'+ maintainConst.durationString[maintainData.duration] +'。' : '') %>造成不便敬请谅解。</h4>
  28. <p class="ml-4 mb-0"><%- maintainData.msg %></p>
  29. </div>
  30. </div>
  31. <% } %>
  32. <div class="dashboard-height mx-3">
  33. <div class="row agency-partheight">
  34. <div class="col-6 px-0">
  35. <div class="card ml-3">
  36. <div class="card-header card-white d-flex justify-content-between">
  37. <div class="card-big-htext"><span class="card-icon mr-2"></span>需要你处理</div>
  38. <div>
  39. <select class="form-control form-control-sm" id="select-doing-type">
  40. <option value="0">全部</option>
  41. <% if (auditAdvance.length !== 0) { %>
  42. <option value="6">预付款(<%- auditAdvance.length %>)</option>
  43. <% } %>
  44. <% if (auditTenders.length !== 0) { %>
  45. <option value="5">台账审批(<%- auditTenders.length %>)</option>
  46. <% } %>
  47. <% if (auditRevise.length !== 0) { %>
  48. <option value="4">台账修订(<%- auditRevise.length %>)</option>
  49. <% } %>
  50. <% if (auditStages.length !== 0 || auditStageAss.length !== 0) { %>
  51. <option value="2">计量审批(<%- (auditStages.length + auditStageAss.length) %>)</option>
  52. <% } %>
  53. <% if (auditChanges.length !== 0) { %>
  54. <option value="3">变更审批(<%- auditChanges.length %>)</option>
  55. <% } %>
  56. <% if (ctx.subProject.page_show.openChangeProject && auditChangeProject.length !== 0) { %>
  57. <option value="7">变更立项(<%- auditChangeProject.length %>)</option>
  58. <% } %>
  59. <% if (ctx.subProject.page_show.openChangeApply && auditChangeApply.length !== 0) { %>
  60. <option value="8">变更申请(<%- auditChangeApply.length %>)</option>
  61. <% } %>
  62. <% if (ctx.subProject.page_show.openChangePlan && auditChangePlan.length !== 0) { %>
  63. <option value="9">变更方案(<%- auditChangePlan.length %>)</option>
  64. <% } %>
  65. <% if (ctx.subProject.page_show.openMaterial && auditMaterial.length !== 0) { %>
  66. <option value="1">材料调差(<%- auditMaterial.length %>)</option>
  67. <% } %>
  68. <% if (ctx.subProject.page_show.openPayment && auditPayments.length !== 0) { %>
  69. <option value="10">支付审批(<%- auditPayments.length %>)</option>
  70. <% } %>
  71. <% if (ctx.subProject.page_show.openFinancial && auditFinancials.length !== 0) { %>
  72. <option value="11">资金支付(<%- auditFinancials.length %>)</option>
  73. <% } %>
  74. <% if (ctx.subProject.page_show.qualityInspection && auditInspections.length !== 0) { %>
  75. <option value="12">质量巡检(<%- auditInspections.length %>)</option>
  76. <% } %>
  77. <% if (ctx.subProject.page_show.safeInspection && auditSafeInspections.length !== 0) { %>
  78. <option value="13">安全巡检(<%- auditSafeInspections.length %>)</option>
  79. <% } %>
  80. <% if (ctx.subProject.page_show.safePayment && auditSafeStage.length !== 0) { %>
  81. <option value="14">安全计量(<%- auditSafeStage.length %>)</option>
  82. <% } %>
  83. <% if (ctx.subProject.page_show.safePayment && auditPhasePay.length !== 0) { %>
  84. <option value="15">合同支付(<%- auditPhasePay.length %>)</option>
  85. <% } %>
  86. <% if (ctx.subProject.page_show.cost && auditCostStageLedger.length !== 0) { %>
  87. <option value="16">成本报审(<%- auditCostStageLedger.length %>)</option>
  88. <% } %>
  89. <% if (ctx.subProject.page_show.cost && auditCostStageBook.length !== 0) { %>
  90. <option value="17">财务账面(<%- auditCostStageBook.length %>)</option>
  91. <% } %>
  92. <% if (ctx.subProject.page_show.cost && auditCostStageAnalysis.length !== 0) { %>
  93. <option value="18">成本分析(<%- auditCostStageAnalysis.length %>)</option>
  94. <% } %>
  95. <% if (ctx.subProject.page_show.cost && auditCostStageDuty.length !== 0) { %>
  96. <option value="19">责任成本(<%- auditCostStageDuty.length %>)</option>
  97. <% } %>
  98. <% if (ctx.subProject.page_show.openContract && (auditContracts.length + auditContractPays.length) !== 0) { %>
  99. <option value="20">合同管理(<%- (auditContracts.length + auditContractPays.length) %>)</option>
  100. <% } %>
  101. </select>
  102. </div>
  103. </div>
  104. <div class="card-body p-0">
  105. <div class="contant-height-one">
  106. <% if (auditTenders.length !== 0 || auditRevise.length !== 0 || auditStages.length !== 0 || auditChanges.length !== 0 || auditMaterial.length !== 0 || auditAdvance.length !== 0 || auditChangeProject.length !== 0 || auditChangeApply.length !== 0 || auditChangePlan.length !== 0 || auditPayments.length !== 0 || auditStageAss.length !== 0 || auditFinancials.length !== 0 || auditInspections.length !== 0 || auditSafeInspections.length !== 0 || auditSafeStage.length !== 0 || auditPhasePay.length !== 0 || auditCostStageLedger.length !== 0 || auditCostStageBook.length !== 0 || auditCostStageAnalysis.length !== 0 || auditCostStageDuty.length !== 0 || auditContracts.length !== 0 || auditContractPays.length !== 0) { %>
  107. <style>
  108. #doing-list td {
  109. word-wrap:break-word;
  110. }
  111. </style>
  112. <table style="table-layout:fixed;" class="table table-middle">
  113. <thead class="thead-light">
  114. <tr>
  115. <th width="110" class="pl-3">类型</th>
  116. <th>名称</th>
  117. <th width="60">状态</th>
  118. <th width="125">创建时间</th>
  119. <th width="90">操作</th>
  120. </tr>
  121. </thead>
  122. <tbody id="doing-list">
  123. <% for (const t of auditTenders) { %>
  124. <% if (t.ledger_status === acLedger.status.checking) { %>
  125. <tr data-type="5">
  126. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  127. <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
  128. <td>台账</td>
  129. <td><%- (t.begin_time ? ctx.moment(t.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  130. <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  131. </tr>
  132. <% } else { %>
  133. <tr data-type="5">
  134. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  135. <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
  136. <td>台账</td>
  137. <td><%- (t.end_time ? ctx.moment(t.end_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  138. <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  139. </tr>
  140. <% } %>
  141. <% } %>
  142. <% for (const revise of auditRevise) { %>
  143. <tr data-type="4">
  144. <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
  145. <td><a href="/tender/<%- revise.t_id %>"><%- revise.t_name %></a> <a href="/tender/<%- revise.t_id %>/revise/<%- revise.id %>/info">第<%- revise.corder %>次</a></td>
  146. <td>第<%- revise.corder %>次</td>
  147. <td><%- (
  148. revise.status === acRevise.status.checking
  149. ? (revise.begin_time ? ctx.moment(revise.begin_time).format('YYYY/MM/DD HH:mm') : '')
  150. : (revise.end_time ? ctx.moment(revise.end_time).format('YYYY/MM/DD HH:mm') : '')
  151. ) %></td>
  152. <td><a href="/tender/<%- revise.t_id %>/revise/<%- revise.id %>/info" class="btn btn-sm btn-table <% if (revise.status === acRevise.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (revise.status === acRevise.status.checking) { %>审批<% } else if (revise.status === acRevise.status.checkNo) { %>重新上报<% } %></a></td>
  153. </tr>
  154. <% } %>
  155. <% for (const audit of auditStages) { %>
  156. <% if (audit.sstatus === acStage.status.checkNo) { %>
  157. <tr data-type="2">
  158. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  159. <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  160. <td>第<%- audit.sorder %>期</td>
  161. <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
  162. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  163. </tr>
  164. <% } else if (audit.sstatus === acStage.status.uncheck) { %>
  165. <tr data-type="2">
  166. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  167. <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  168. <td>第<%- audit.sorder %>期</td>
  169. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  170. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">上报</a></td>
  171. </tr>
  172. <% } else { %>
  173. <tr data-type="2">
  174. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  175. <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  176. <td>第<%- audit.sorder %>期</td>
  177. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  178. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
  179. </tr>
  180. <% } %>
  181. <% } %>
  182. <% for (const audit of auditStageAss) { %>
  183. <% if (audit.sstatus !== acStage.status.checkNo) { %>
  184. <tr data-type="2">
  185. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  186. <td><a href="/tender/<%- audit.tid %>"><%- audit.tender_name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  187. <td>第<%- audit.sorder %>期</td>
  188. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  189. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">协同审批</a></td>
  190. </tr>
  191. <% } else { %>
  192. <tr data-type="2">
  193. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  194. <td><a href="/tender/<%- audit.tid %>"><%- audit.tender_name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  195. <td>第<%- audit.sorder %>期</td>
  196. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  197. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">协同上报</a></td>
  198. </tr>
  199. <% } %>
  200. <% } %>
  201. <% for (const change of auditChanges) { %>
  202. <tr data-type="3">
  203. <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
  204. <td><a href="/tender/<%- change.tid %>"><%- change.name %></a> <a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information"><%- change.ccode %></a></td>
  205. <td>变更</td>
  206. <td><%- change.begin_time ? ctx.moment(change.begin_time).format('YYYY/MM/DD HH:mm') : (change.cin_time ? ctx.moment.unix(change.cin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  207. <td><a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information" class="btn btn-sm btn-table <% if (change.cstatus !== acChange.status.checking && change.cstatus !== acChange.status.checkNoPre) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (change.cstatus === acChange.status.checking) { %>审批<% } else if (change.cstatus === acChange.status.checkNoPre) { %>重新审批<% } else { %>重新上报<% } %></a></td>
  208. </tr>
  209. <% } %>
  210. <% for (const acp of auditChangeProject) { %>
  211. <tr data-type="7">
  212. <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
  213. <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/project/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
  214. <td>变更</td>
  215. <td><%- (
  216. acp.status !== acChangeProject.status.back
  217. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  218. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  219. ) %></td>
  220. <td><a href="/tender/<%- acp.tid %>/change/project/<%- acp.cpid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acChangeProject.status.back) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus !== acChangeProject.status.back) { %>审批<% } else { %>重新上报<% } %></a></td>
  221. </tr>
  222. <% } %>
  223. <% for (const aca of auditChangeApply) { %>
  224. <tr data-type="8">
  225. <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
  226. <td><a href="/tender/<%- aca.tid %>"><%- aca.name %></a> <a href="/tender/<%- aca.tid %>/change/apply/<%- aca.caid %>/information"><%- aca.mcode %></a></td>
  227. <td>变更</td>
  228. <td><%- (
  229. aca.mstatus !== acChangeApply.status.checkNo
  230. ? (aca.begin_time ? ctx.moment(aca.begin_time).format('YYYY/MM/DD HH:mm') : '')
  231. : (aca.end_time ? ctx.moment(aca.end_time).format('YYYY/MM/DD HH:mm') : '')
  232. ) %></td>
  233. <td><a href="/tender/<%- aca.tid %>/change/apply/<%- aca.caid %>/information" class="btn btn-sm btn-table <% if (aca.mstatus === acChangeApply.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (aca.mstatus !== acChangeApply.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
  234. </tr>
  235. <% } %>
  236. <% for (const acp of auditChangePlan) { %>
  237. <tr data-type="9">
  238. <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
  239. <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/plan/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
  240. <td>变更</td>
  241. <td><%- (
  242. acp.mstatus !== acChangePlan.status.checkNo
  243. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  244. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  245. ) %></td>
  246. <td><a href="/tender/<%- acp.tid %>/change/plan/<%- acp.cpid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acChangePlan.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus !== acChangePlan.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
  247. </tr>
  248. <% } %>
  249. <% for (const am of auditMaterial) { %>
  250. <% if (am.mstatus !== acMaterial.status.checkNo) { %>
  251. <tr data-type="1">
  252. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  253. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
  254. <td>第<%- am.morder %>期</td>
  255. <td><%- ctx.moment(am.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  256. <td><a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  257. </tr>
  258. <% } else { %>
  259. <tr data-type="1">
  260. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  261. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
  262. <td>第<%- am.morder %>期</td>
  263. <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
  264. <td><a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  265. </tr>
  266. <% } %>
  267. <% } %>
  268. <% for (const am of auditAdvance) { %>
  269. <% if (am.mstatus !== acAdvance.status.checkNo) { %>
  270. <tr data-type="6">
  271. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  272. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail"><%- typeColMap[am.mtype].text %>第<%- am.morder %>期</a></td>
  273. <td>第<%- am.morder %>期</td>
  274. <td><%- ctx.moment(am.create_time).format('YYYY/MM/DD HH:mm') %></td>
  275. <td><a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  276. </tr>
  277. <% } else { %>
  278. <tr data-type="6">
  279. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  280. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail"><%- typeColMap[am.mtype].text %>第<%- am.morder %>期</a></td>
  281. <td>第<%- am.morder %>期</td>
  282. <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
  283. <td><a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  284. </tr>
  285. <% } %>
  286. <% } %>
  287. <% for (const audit of auditPayments) { %>
  288. <% if (audit.sstatus !== acStage.status.checkNo) { %>
  289. <tr data-type="10">
  290. <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
  291. <% if (audit.type) { %>
  292. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
  293. <% } else { %>
  294. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
  295. <% } %>
  296. <td>第<%- audit.sorder %>期</td>
  297. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  298. <% if (audit.type) { %>
  299. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
  300. <% } else { %>
  301. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
  302. <% } %>
  303. </tr>
  304. <% } else { %>
  305. <tr data-type="10">
  306. <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
  307. <% if (audit.type) { %>
  308. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
  309. <% } else {%>
  310. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
  311. <% } %>
  312. <td>第<%- audit.sorder %>期</td>
  313. <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
  314. <% if (audit.type) { %>
  315. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  316. <% } else {%>
  317. <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  318. <% } %>
  319. </tr>
  320. <% } %>
  321. <% } %>
  322. <% for (const af of auditFinancials) { %>
  323. <tr data-type="11">
  324. <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
  325. <td><a href="/sp/<%- af.spid %>/financial/pay/stage" class="account-page-size"><%- af.name %></a> <a href="/sp/<%- af.spid %>/financial/pay/<%- af.fpid %>/detail"><%- af.fpcode %></a></td>
  326. <td>支付</td>
  327. <td><%- (
  328. af.fpcstatus !== acFinancial.status.checkNo
  329. ? (af.begin_time ? ctx.moment(af.begin_time).format('YYYY/MM/DD HH:mm') : '')
  330. : (af.end_time ? ctx.moment(af.end_time).format('YYYY/MM/DD HH:mm') : '')
  331. ) %></td>
  332. <td><a href="/sp/<%- af.spid %>/financial/pay/<%- af.fpid %>/detail" class="btn btn-sm btn-table <% if (af.fpstatus === acFinancial.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (af.fpstatus !== acFinancial.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
  333. </tr>
  334. <% } %>
  335. <% for (const acp of auditInspections) { %>
  336. <tr data-type="12">
  337. <td><span class="bg-new-inspection text-new-inspection badge text-width">质量巡检</span></td>
  338. <td><a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection"><%- acp.name %></a> <a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information"><%- acp.mcode %></a></td>
  339. <td>巡检</td>
  340. <td><%- (
  341. acp.mstatus !== acInspection.status.checkNo
  342. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  343. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  344. ) %></td>
  345. <td><a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acInspection.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus === acInspection.status.rectification) { %>整改<% } else if (acp.mstatus !== acInspection.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
  346. </tr>
  347. <% } %>
  348. <% for (const acp of auditSafeInspections) { %>
  349. <tr data-type="13">
  350. <td><span class="bg-new-inspection text-new-inspection badge text-width">安全巡检</span></td>
  351. <td><a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection"><%- acp.name %></a> <a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information"><%- acp.mcode %></a></td>
  352. <td>巡检</td>
  353. <td><%- (
  354. acp.mstatus !== acInspection.status.checkNo
  355. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  356. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  357. ) %></td>
  358. <td><a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acInspection.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus === acInspection.status.rectification) { %>整改<% } else if (acp.mstatus !== acInspection.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
  359. </tr>
  360. <% } %>
  361. <% for (const ass of auditSafeStage) { %>
  362. <tr data-type="14">
  363. <td><span class="bg-new-inspection text-new-payment badge text-width">安全计量</span></td>
  364. <td><a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage"><%- ass.name %></a> <a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage/<%- ass.stage_order %>/bills">第<%- ass.stage_order %>期</a></td>
  365. <td>第<%- ass.stage_order %>期</td>
  366. <td><%- (ass.begin_time ? ctx.moment(ass.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  367. <td><a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage/<%- ass.stage_order %>/bills" class="btn btn-sm btn-table <%- (ass.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (ass.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  368. </tr>
  369. <% } %>
  370. <% for (const app of auditPhasePay) { %>
  371. <tr data-type="15">
  372. <td><span class="bg-new-phasepay text-new-phasepay badge text-width">合同支付</span></td>
  373. <td><a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail"><%- app.name %></a> <a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail">第<%- app.phase_order %>期</a></td>
  374. <td>第<%- app.phase_order %>期</td>
  375. <td><%- (app.begin_time ? ctx.moment(app.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  376. <td><a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail" class="btn btn-sm btn-table <%- (app.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (app.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  377. </tr>
  378. <% } %>
  379. <% for (const acs of auditCostStageLedger) { %>
  380. <tr data-type="16">
  381. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本报审</span></td>
  382. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
  383. <td>第<%- acs.stage_order %>期</td>
  384. <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  385. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  386. </tr>
  387. <% } %>
  388. <% for (const acs of auditCostStageBook) { %>
  389. <tr data-type="17">
  390. <td><span class="bg-new-coststage text-new-coststage badge text-width">财务账面</span></td>
  391. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
  392. <td>第<%- acs.stage_order %>期</td>
  393. <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  394. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  395. </tr>
  396. <% } %>
  397. <% for (const acs of auditCostStageAnalysis) { %>
  398. <tr data-type="18">
  399. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本分析</span></td>
  400. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
  401. <td>第<%- acs.stage_order %>期</td>
  402. <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  403. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  404. </tr>
  405. <% } %>
  406. <% for (const acs of auditCostStageDuty) { %>
  407. <tr data-type="19">
  408. <td><span class="bg-new-coststage text-new-coststage badge text-width">责任成本</span></td>
  409. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/duty/1/stage"><%- acs.name %></a></td>
  410. <td></td>
  411. <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  412. <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/duty/1/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
  413. </tr>
  414. <% } %>
  415. <%
  416. // 合并合同和合同支付数据,统一处理
  417. const allContractItems = [];
  418. auditContracts.forEach(contract => {
  419. allContractItems.push({
  420. ...contract,
  421. itemType: 'contract',
  422. name: (contract.tid && contract.tid !== 0)
  423. ? '标段合同-' + contract.name
  424. : '项目合同-' + contract.name,
  425. dataType: '20'
  426. });
  427. });
  428. auditContractPays.forEach(pay => {
  429. const displayName = (!pay.is_project_contract && pay.tender_name)
  430. ? '标段合同' + '-' + pay.contract_name
  431. : '项目合同-' + pay.contract_name;
  432. allContractItems.push({
  433. ...pay,
  434. itemType: 'pay',
  435. name: displayName,
  436. dataType: '20' // 与合同使用相同的类型标识
  437. });
  438. });
  439. %>
  440. <% for (const item of allContractItems) { %>
  441. <%
  442. const isCheckNo = item.status === acContract.status.checkNo;
  443. const isUncheckReSubmit = item.status === acContract.status.uncheck && item.times > 1;
  444. const isContractOwnerReturned = item.itemType === 'contract' &&
  445. item.contract_status === acContract.status.checkNo && item.uid === uid;
  446. const showResubmitBtn = isCheckNo || isUncheckReSubmit || isContractOwnerReturned;
  447. %>
  448. <% const isTenderContract = item.tid && item.tid !== 0 && !item.is_project_contract;
  449. const incomePath = item.contract_type === 2 ? '/income' : '';
  450. const detailUrl = isTenderContract
  451. ? '/sp/' + ctx.subProject.id + '/contract/tender/' + item.tid + '/detail' + incomePath + (item.itemType === 'pay' ? '?tab=pay' : '')
  452. : '/sp/' + ctx.subProject.id + '/contract/detail' + incomePath + (item.itemType === 'pay' ? '?tab=pay' : ''); %>
  453. <tr data-type="<%= item.dataType %>">
  454. <td><span class="bg-new-20 text-new-20 badge text-width">合同管理</span></td>
  455. <td>
  456. <a href="<%= detailUrl %>"><%- item.name %></a>
  457. </td>
  458. <td><%- item.status_text %></td>
  459. <td><%- (item.begin_time ? ctx.moment(item.begin_time).startOf('minute').format('YYYY/MM/DD HH:mm') : (item.create_time ? ctx.moment(item.create_time).startOf('minute').format('YYYY/MM/DD HH:mm') : '')) %></td>
  460. <td>
  461. <a href="<%= detailUrl %>" class="btn btn-sm btn-table <%= showResubmitBtn ? 'btn-outline-warning text-warning' : 'btn-outline-primary' %>" role="button">
  462. <%- showResubmitBtn ? '重新上报' : '审批' %>
  463. </a>
  464. </td>
  465. </tr>
  466. <% } %>
  467. </tbody>
  468. </table>
  469. <% } else { %>
  470. <div class="p-5 text-center text-muted">
  471. <img src="/public/images/nulllogo.png" />
  472. <div class="pt-3">暂时没有需要你处理的事项</div>
  473. </div>
  474. <% } %>
  475. </div>
  476. <!--&lt;!&ndash;没有处理信息&ndash;&gt;-->
  477. <!--<p class="text-center text-muted">暂时没有需要你处理的事项。</p>-->
  478. </div>
  479. </div>
  480. </div>
  481. <div class="col-3 px-0">
  482. <div class="card ml-3">
  483. <div class="card-header card-white d-flex justify-content-between">
  484. <div class="card-big-htext"><span class="card-icon mr-2"></span>我参与的</div></div>
  485. <div class="card-body p-0">
  486. <div class="row mx-0 echart-height">
  487. <div class="col-6 px-0">
  488. <div class="canyu-width canyu-bg-blue mx-3 my-2 p-3 text-white">
  489. <div>参与审批</div>
  490. <div><span class="canyu-text mr-1"><%- total_count %></span>次</div>
  491. </div>
  492. </div>
  493. <div class="col-6 px-0">
  494. <div class="canyu-width canyu-bg-yellow my-2 mr-3 p-3 text-white">
  495. <div>距最后一次审批已过</div>
  496. <div><span class="canyu-text mr-1"><%- last_day || last_day === 0 ? last_day : '-' %></span>天</div>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="contant-height-two">
  501. <div id="jechart" style="height: 90%; width: 100%;"></div>
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. <!--项目消息通知-->
  507. <div class="col-3 pl-0">
  508. <div class="card ml-3">
  509. <div class="card-header card-white d-flex justify-content-between">
  510. <div class="card-big-htext"><span class="card-icon mr-2"></span>项目通知</div>
  511. <div class="mt-1"><a class="text-secondary" href="/sp/<%- ctx.subProject.id %>/dashboard/msg">查看全部</a></div>
  512. </div>
  513. <div class="card-body p-0">
  514. <div class="contant-height-three">
  515. <ul class="list-group list-group-flush msg-height-list">
  516. <% if (msgList.length === 0) { %>
  517. <!--没有通知-->
  518. <li class="list-group-item text-muted text-center p-5">
  519. <img src="/public/images/nulllogo.png" />
  520. <p class="pt-2 text-center mb-0">暂时没有通知</p>
  521. </li>
  522. <% } else { %>
  523. <% for (const msg of msgList) { %>
  524. <li class="list-group-item text-muted">
  525. <a href="#view-msg" msg-id="<%= msg.id %>" data-toggle="modal" data-target="#view-msg"<% if (msg.istop !== '0') { %> class="text-danger">
  526. <i class="fa fa-exclamation-triangle" ></i> <% } else { %>><% } %><%- msg.title %></a><br><%- moment(msg.release_time*1000).format('YYYY/MM/DD HH:mm') %></li>
  527. <% } %>
  528. <% } %>
  529. </ul>
  530. </div>
  531. <% if (userMsgPermission) { %>
  532. <!--发布通知-->
  533. <div class="mx-3 pb-3 addmsg-height"><a class="btn btn-outline-primary btn-block" href="/sp/<%- ctx.subProject.id %>/dashboard/msg/add/0">发布通知</a></div>
  534. <% } %>
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. <div class="row agency-partheight">
  540. <div class="col-9 px-0">
  541. <div class="card ml-3">
  542. <div class="card-header card-white d-flex justify-content-between">
  543. <div class="card-big-htext"><span class="card-icon mr-2"></span>参与的标段动态</div>
  544. <div>
  545. <select class="form-control form-control-sm" id="select-notice-type">
  546. <option value="0">全部</option>
  547. <option value="6">预付款</option>
  548. <option value="5">台账审批</option>
  549. <option value="4">台账修订</option>
  550. <option value="2">计量审批</option>
  551. <option value="3">变更审批</option>
  552. <% if (ctx.subProject.page_show.openChangeProject) { %>
  553. <option value="7">变更立项</option>
  554. <% } %>
  555. <% if (ctx.subProject.page_show.openChangeApply) { %>
  556. <option value="8">变更申请</option>
  557. <% } %>
  558. <% if (ctx.subProject.page_show.openChangePlan) { %>
  559. <option value="9">变更方案</option>
  560. <% } %>
  561. <% if (ctx.subProject.page_show.openMaterial) { %>
  562. <option value="1">材料调差</option>
  563. <% } %>
  564. <% if (ctx.subProject.page_show.openFinancial) { %>
  565. <option value="11">资金支付</option>
  566. <% } %>
  567. <% if (ctx.subProject.page_show.qualityInspection) { %>
  568. <option value="12">质量巡检</option>
  569. <% } %>
  570. <% if (ctx.subProject.page_show.safeInspection) { %>
  571. <option value="13">安全巡检</option>
  572. <% } %>
  573. <% if (ctx.subProject.page_show.safePayment) { %>
  574. <option value="14">安全计量</option>
  575. <% } %>
  576. <% if (ctx.subProject.page_show.phasePay) { %>
  577. <option value="15">合同支付</option>
  578. <% } %>
  579. <% if (ctx.subProject.page_show.cost) { %>
  580. <option value="16">成本报审</option>
  581. <option value="17">财务账面</option>
  582. <option value="18">成本分析</option>
  583. <% } %>
  584. </select>
  585. </div>
  586. </div>
  587. <div class="card-body p-0">
  588. <div class="contant-height-one">
  589. <% if(noticeList.length) { %>
  590. <style>
  591. #notice-list a {
  592. word-wrap:break-word;
  593. }
  594. </style>
  595. <table style="table-layout:fixed;" class="table table-middle">
  596. <thead class="thead-light">
  597. <tr>
  598. <th width="110" class="pl-3">类型</th>
  599. <th>名称</th>
  600. <th width="150">审批人-职位</th>
  601. <th width="120">审批时间</th>
  602. <th width="60">项目</th>
  603. <th width="80">状态</th>
  604. <th>审批意见</th>
  605. </tr>
  606. </thead>
  607. <tbody id="notice-list">
  608. <!--<ul id="notice" class="list-unstyled m-0">-->
  609. <% for (const notice of noticeList) { %>
  610. <% if(notice.type === pushType.stage) { %>
  611. <tr data-type="2">
  612. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  613. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>">第<%- notice.order %>期</a></td>
  614. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  615. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  616. <td>第<%- notice.order %>期</td>
  617. <td class="<%- acStage.statusClass[notice.status]%>"><%- acStage.statusString[notice.status]%></td>
  618. <td><%- notice.opinion ? notice.opinion : '' %></td>
  619. </tr>
  620. <% } else if(notice.type === pushType.material && ctx.subProject.page_show.openMaterial) { %>
  621. <tr data-type="1">
  622. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  623. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>">第<%- notice.order %>期</a></td>
  624. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  625. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  626. <td>第<%- notice.order %>期</td>
  627. <td class="<%- acMaterial.statusClass[notice.status]%>"><%- acMaterial.statusString[notice.status]%></td>
  628. <td><%- notice.opinion ? notice.opinion : '' %></td>
  629. </tr>
  630. <% } else if(notice.type === pushType.ledger) { %>
  631. <tr data-type="5">
  632. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  633. <td><a data-id="<%- notice.id %>" href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a></td>
  634. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  635. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  636. <td>台账</td>
  637. <td class="<%- acLedger.statusClass[notice.status]%>"><%- acLedger.statusString[notice.status]%></td>
  638. <td><%- notice.opinion ? notice.opinion : '' %></td>
  639. </tr>
  640. <% } else if(notice.type === pushType.revise) { %>
  641. <tr data-type="4">
  642. <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
  643. <td><a href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info">台账修订(第<%- notice.corder %>次)</a></td>
  644. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  645. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  646. <td>第<%- notice.corder %>次</td>
  647. <td class="<%- acRevise.statusClass[notice.status]%>"><%- acRevise.statusString[notice.status]%></td>
  648. <td><%- notice.opinion ? notice.opinion : '' %></td>
  649. </tr>
  650. <% } else if(notice.type === pushType.change){ %>
  651. <tr data-type="3">
  652. <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
  653. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information"><%- notice.c_code %></a></td>
  654. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  655. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  656. <td>变更</td>
  657. <td class="<%- acChange.statusClass[notice.status]%>"><%- acChange.statusString[notice.status]%></td>
  658. <td><%- notice.opinion ? notice.opinion : '' %></td>
  659. </tr>
  660. <% } else if(notice.type === pushType.changeProject && ctx.subProject.page_show.openChangeProject) { %>
  661. <tr data-type="7">
  662. <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
  663. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/project/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  664. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  665. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  666. <td>变更</td>
  667. <td class="<%- acChangeProject.statusClass[notice.status] %>"><%- acChangeProject.statusString[notice.status] %></td>
  668. <td><%- notice.opinion ? notice.opinion : '' %></td>
  669. </tr>
  670. <% } else if(notice.type === pushType.changeApply && ctx.subProject.page_show.openChangeApply) { %>
  671. <tr data-type="8">
  672. <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
  673. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/apply/<%- notice.caid %>/information"><%- notice.c_code %></a></td>
  674. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  675. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  676. <td>变更</td>
  677. <td class="<%- acChangeApply.statusClass[notice.status]%>"><%- acChangeApply.statusString[notice.status] %></td>
  678. <td><%- notice.opinion ? notice.opinion : '' %></td>
  679. </tr>
  680. <% } else if(notice.type === pushType.changePlan && ctx.subProject.page_show.openChangePlan) { %>
  681. <tr data-type="9">
  682. <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
  683. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/plan/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  684. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  685. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  686. <td>变更</td>
  687. <td class="<%- acChangePlan.statusClass[notice.status] %>"><%- acChangePlan.statusString[notice.status] %></td>
  688. <td><%- notice.opinion ? notice.opinion : '' %></td>
  689. </tr>
  690. <% } else if(notice.type === pushType.advance) { %>
  691. <tr data-type="6">
  692. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  693. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail"><%- notice.ad_type ? typeColMap[notice.ad_type].text : '' %>第<%- notice.order %>期</a></td>
  694. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  695. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  696. <td>第<%- notice.order %>期</td>
  697. <td class="<%- acAdvance.statusClass[notice.status]%>"><%- acAdvance.statusString[notice.status]%></td>
  698. <td><%- notice.opinion ? notice.opinion : '' %></td>
  699. </tr>
  700. <% } else if(notice.type === pushType.financial && ctx.subProject.page_show.openFinancial) { %>
  701. <tr data-type="11">
  702. <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
  703. <td><a href="/sp/<%- notice.spid %>/financial/pay/stage" class="account-page-size"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/financial/pay/<%- notice.fpid %>/detail"><%- notice.code %></a></td>
  704. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  705. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  706. <td>支付</td>
  707. <td class="<%- acFinancial.statusClass[notice.status] %>"><%- acFinancial.statusString[notice.status] %></td>
  708. <td><%- notice.opinion ? notice.opinion : '' %></td>
  709. </tr>
  710. <% } else if(notice.type === pushType.inspection && ctx.subProject.page_show.qualityInspection) { %>
  711. <tr data-type="12">
  712. <td><span class="bg-new-inspection text-new-inspection badge text-width">质量巡检</span></td>
  713. <td><a href="/sp/<%- notice.spid %>/quality/tender/<%- notice.tid %>/inspection"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/quality/tender/<%- notice.tid %>/inspection/<%- notice.qiid %>/information"><%- notice.c_code %></a></td>
  714. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  715. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  716. <td>巡检</td>
  717. <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
  718. <td><%- notice.opinion ? notice.opinion : '' %></td>
  719. </tr>
  720. <% } else if(notice.type === pushType.safeInspection && ctx.subProject.page_show.safeInspection) { %>
  721. <tr data-type="13">
  722. <td><span class="bg-new-inspection text-new-inspection badge text-width">安全巡检</span></td>
  723. <td><a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/inspection"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/inspection/<%- notice.qiid %>/information"><%- notice.c_code %></a></td>
  724. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  725. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  726. <td>巡检</td>
  727. <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
  728. <td><%- notice.opinion ? notice.opinion : '' %></td>
  729. </tr>
  730. <% } else if(notice.type === pushType.safeStage && ctx.subProject.page_show.safePayment) { %>
  731. <tr data-type="14">
  732. <td><span class="bg-new-inspection text-new-payment badge text-width">安全计量</span></td>
  733. <td><a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/stage"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/stage/<%- notice.order %>/bills">第<%- notice.order %>期</a></td>
  734. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  735. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  736. <td>第<%- notice.order %>期</td>
  737. <td class="<%- acSafeStage.statusClass[notice.status] %>"><%- acSafeStage.statusString[notice.status] %></td>
  738. <td><%- notice.opinion ? notice.opinion : '' %></td>
  739. </tr>
  740. <% } else if(notice.type === pushType.phasePay && ctx.subProject.page_show.phasePay) { %>
  741. <tr data-type="15">
  742. <td><span class="bg-new-phasepay text-new-phasepay badge text-width">合同支付</span></td>
  743. <td><a href="/tender/<%- notice.tid %>/pay/<%- notice.order %>/detail"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/pay/<%- notice.order %>/detail">第<%- notice.order %>期</a></td>
  744. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  745. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  746. <td>第<%- notice.order %>期</td>
  747. <td class="<%- acPhasePay.statusClass[notice.status] %>"><%- acPhasePay.statusString[notice.status] %></td>
  748. <td><%- notice.opinion ? notice.opinion : '' %></td>
  749. </tr>
  750. <% } else if(notice.type === pushType.costStageLedger && ctx.subProject.page_show.cost) { %>
  751. <tr data-type="16">
  752. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本报审</span></td>
  753. <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/ledger/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
  754. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  755. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  756. <td>第<%- notice.order %>期</td>
  757. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  758. <td><%- notice.opinion ? notice.opinion : '' %></td>
  759. </tr>
  760. <% } else if(notice.type === pushType.costStageBook && ctx.subProject.page_show.cost) { %>
  761. <tr data-type="17">
  762. <td><span class="bg-new-coststage text-new-coststage badge text-width">财务账面</span></td>
  763. <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/book"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/book/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
  764. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  765. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  766. <td>第<%- notice.order %>期</td>
  767. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  768. <td><%- notice.opinion ? notice.opinion : '' %></td>
  769. </tr>
  770. <% } else if(notice.type === pushType.costStageAnalysis && ctx.subProject.page_show.cost) { %>
  771. <tr data-type="18">
  772. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本分析</span></td>
  773. <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/analysis"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/analysis/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
  774. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  775. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  776. <td>第<%- notice.order %>期</td>
  777. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  778. <td><%- notice.opinion ? notice.opinion : '' %></td>
  779. </tr>
  780. <% } else if(notice.type === pushType.costStageDuty && ctx.subProject.page_show.cost) { %>
  781. <tr data-type="19">
  782. <td><span class="bg-new-coststage text-new-coststage badge text-width">责任成本</span></td>
  783. <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/duty/1/stage"><%- notice.name %></a></td>
  784. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  785. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  786. <td></td>
  787. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  788. <td><%- notice.opinion ? notice.opinion : '' %></td>
  789. </tr>
  790. <% } %>
  791. <% } %>
  792. </tbody>
  793. </table>
  794. <% } else { %>
  795. <div class="p-5 text-center text-muted">
  796. <img src="/public/images/nulllogo.png" />
  797. <div class="pt-3">暂时没有需要你关注的事项</div>
  798. </div>
  799. <% } %>
  800. </div>
  801. </div>
  802. <!--没有关注信息-->
  803. <!--<p class="text-center text-muted">暂时没有需要你关注的事项。</p>-->
  804. </div>
  805. </div>
  806. <div class="col-3 pl-0">
  807. <div class="card ml-3">
  808. <div class="card-header card-white d-flex justify-content-between">
  809. <div class="card-big-htext"><span class="card-icon mr-2"></span>技术支持</div>
  810. </div>
  811. <div class="card-body p-0">
  812. <!--<h6 class="card-subtitle mb-2 text-muted"><%= salesmanData.username %></h6>-->
  813. <div class="contant-height-one">
  814. <div class="mx-4">
  815. <ul class="list-group list-group-flush">
  816. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="腾讯QQ"><i class="fa fa-qq"></i> <%=salesmanData.qq%></li>
  817. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="手机号码"><i class="fa fa-tablet"></i> <%=salesmanData.telephone%></li>
  818. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="固定电话"><i class="fa fa-phone"></i> <%=salesmanData.fixedphone%></li>
  819. <% if (projectData.qrcode_json) { %>
  820. <li class="list-group-item container-fluid">
  821. <div class="row qrcode-height">
  822. <% for (const qr of JSON.parse(projectData.qrcode_json)) { %>
  823. <div class="col-sm text-center"><img src="/<%= qr.path %>" width="100%" style="max-width: 180px"><div class="text-center"><%= qr.name %></div></div>
  824. <% } %>
  825. </div>
  826. </li>
  827. <% } else { %>
  828. <li class="list-group-item container-fluid">
  829. <div class="row qrcode-height">
  830. <div class="col-sm text-center"><img src="/public/images/erweima.jpg" width="100%" style="max-width: 180px"><div class="text-center">虾米造价</div></div>
  831. </div>
  832. </li>
  833. <% } %>
  834. </ul>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. <script src="/public/js/moment/moment.min.js"></script>
  845. <script src="/public/js/echarts/echarts.min.js"></script>
  846. <script src="/public/js/dashboard.js"></script>
  847. <script>
  848. autoFlashHeight();
  849. const msgList = JSON.parse('<%- JSON.stringify(msgList) %>');
  850. const sysMsgList = JSON.parse('<%- JSON.stringify(sysMsgList) %>');
  851. const pushType = JSON.parse('<%- JSON.stringify(pushType) %>');
  852. const uid = '<%- uid %>';
  853. const type = 1;
  854. const userMsgPermission = <%- userMsgPermission %>;
  855. </script>
  856. <script type="text/javascript">
  857. $(function () {
  858. function setDashboardHeight() {
  859. function getObjHeight(select) {
  860. return select.length > 0 ? select.outerHeight(true) : 0;
  861. }
  862. var mobileHeight = getObjHeight($(".mobile-height"));
  863. var maintainHeight = getObjHeight($(".maintain-height"));
  864. $('.dashboard-height').height($(window).height()- mobileHeight - maintainHeight - 34 - 16);
  865. $('.agency-partheight').height($('.dashboard-height').height()/2);
  866. // $('.agency-partheight').eq(1).height($('.sjs-height-0').height() - $('.agency-partheight').eq(0).height());
  867. $('.contant-height-one').height($('.agency-partheight').height() - 52 - 20);
  868. $('.contant-height-two').height($('.agency-partheight').height() - 52 - getObjHeight($(".echart-height")) - 20);
  869. $('.contant-height-three').height($('.agency-partheight').height() - 52 - getObjHeight($(".addmsg-height")) - 20);
  870. $('.qrcode-height').height($('.contant-height-one').height() - 43 - 44 - 44 - 25);
  871. $('.qrcode-height .col-sm').css('padding-top', ($('.qrcode-height').height()/2 - ($('.qrcode-height img').height()+18)/2) + 'px');
  872. // resizeChart();
  873. }
  874. setDashboardHeight();
  875. $(window).resize(setDashboardHeight);
  876. $('#select-notice-type').change(function () {
  877. const type = parseInt($(this).val());
  878. if(type === 0) {
  879. $('#notice-list tr').show();
  880. return;
  881. } else {
  882. $('#notice-list tr').hide();
  883. $('#notice-list tr[data-type="' + type + '"]').show();
  884. }
  885. });
  886. $('#select-doing-type').change(function () {
  887. const type = parseInt($(this).val());
  888. if(type === 0) {
  889. $('#doing-list tr').show();
  890. return;
  891. } else {
  892. $('#doing-list tr').hide();
  893. $('#doing-list tr[data-type="' + type + '"]').show();
  894. }
  895. });
  896. })
  897. var transparentCount = 1;
  898. const option = {
  899. // title: {
  900. // text: '金额统计图',
  901. // left: 'center',
  902. // top:'7%'
  903. // },
  904. color: [
  905. 'rgba(241, 82, 91,'+ transparentCount +')',
  906. 'rgba(250, 140, 22,'+ transparentCount +')',
  907. 'rgba(251, 182, 45,'+ transparentCount +')',
  908. 'rgba(82, 196, 26,'+ transparentCount +')',
  909. 'rgba(22, 208, 208,'+ transparentCount +')',
  910. <% if (ctx.subProject.page_show.openChangeProject) { %>
  911. 'rgba(51, 119, 255,'+ transparentCount +')',
  912. <% } %>
  913. <% if (ctx.subProject.page_show.openChangeApply) { %>
  914. 'rgba(41, 58, 210,'+ transparentCount +')',
  915. <% } %>
  916. <% if (ctx.subProject.page_show.openChangePlan) { %>
  917. 'rgba(114, 46, 209,'+ transparentCount +')',
  918. <% } %>
  919. <% if (ctx.subProject.page_show.openMaterial) { %>
  920. 'rgba(187, 41, 210,'+ transparentCount +')',
  921. <% } %>
  922. <% if (ctx.subProject.page_show.openFinancial) { %>
  923. 'rgba(58, 88, 50,'+ transparentCount +')',
  924. <% } %>
  925. <% if (ctx.subProject.page_show.qualityInspection) { %>
  926. 'rgba(158, 58, 80,'+ transparentCount +')',
  927. <% } %>
  928. <% if (ctx.subProject.page_show.safeInspection) { %>
  929. 'rgba(158, 8, 80,'+ transparentCount +')',
  930. <% } %>
  931. ],
  932. tooltip: {
  933. trigger: 'item'
  934. },
  935. legend: [
  936. {
  937. orient: 'vertical',
  938. left: '3%',
  939. top: 'center',
  940. itemWidth: 13,
  941. itemHeight: 13,
  942. textStyle: {
  943. fontSize: 12
  944. },
  945. data: [<% for (const sc of shenpi_count.slice(0, shenpi_count.length/2)) { %>
  946. '<%- sc.name %>',
  947. <% } %>]
  948. },
  949. {
  950. orient: 'vertical',
  951. right: '3%',
  952. top: 'center',
  953. itemWidth: 13,
  954. itemHeight: 13,
  955. textStyle: {
  956. fontSize: 12
  957. },
  958. data: [<% for (const sc of shenpi_count.slice(shenpi_count.length/2, shenpi_count.length)) { %>
  959. '<%- sc.name %>',
  960. <% } %>]
  961. }
  962. ],
  963. series: [
  964. {
  965. name: '审批次数',
  966. type: 'pie',
  967. radius: ['35%', '55%'],
  968. center: ['50%', '50%'],
  969. avoidLabelOverlap: false,
  970. data: [
  971. <% for (const sc of shenpi_count) { %>
  972. { value: <%- sc.count %>, name: '<%- sc.name %>' },
  973. <% } %>
  974. ],
  975. label: {
  976. show: false
  977. },
  978. emphasis: {
  979. itemStyle: {
  980. shadowBlur: 10,
  981. shadowOffsetX: 0,
  982. shadowColor: 'rgba(0, 0, 0, 0.5)'
  983. }
  984. }
  985. }
  986. ]
  987. };
  988. function optionRadius() {
  989. if ($(window).outerWidth() > 1366) {
  990. if ($('#jechart').outerWidth() - $('#jechart').outerHeight() < 90) {
  991. option.series[0].radius = ['35%', '55%'];
  992. } else if ($('#jechart').outerWidth() < 320) {
  993. option.series[0].radius = ['35%', '60%'];
  994. } else if ($('#jechart').outerWidth() < 330) {
  995. option.series[0].radius = ['40%', '65%'];
  996. } else if ($('#jechart').outerWidth() < 350) {
  997. option.series[0].radius = ['45%', '70%'];
  998. } else {
  999. option.series[0].radius = ['50%', '75%'];
  1000. }
  1001. } else {
  1002. option.series[0].radius = ['50%', '75%'];
  1003. }
  1004. }
  1005. function initChart() {
  1006. const myChart1 = echarts.init(document.getElementById('jechart'));
  1007. optionRadius();
  1008. myChart1.setOption(option, true);
  1009. window.addEventListener('resize', function () {
  1010. optionRadius();
  1011. myChart1.setOption(option, true);
  1012. myChart1.resize();
  1013. });
  1014. }
  1015. // initChart();
  1016. setTimeout(function () {
  1017. initChart();
  1018. },500);
  1019. // $(window).resize(resizeChart);
  1020. // function resizeChart() {
  1021. // myChart1.resize()
  1022. // }
  1023. // var myChart1 = echarts.init(document.getElementById('jechart'));
  1024. // setTimeout(function () {
  1025. // myChart1.setOption(option);
  1026. // resizeChart();
  1027. // // resizeChart();
  1028. // },500);
  1029. </script>