index.ejs 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031
  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.name,
  423. dataType: '20'
  424. });
  425. });
  426. auditContractPays.forEach(pay => {
  427. // 标段合同:标段名称 + 空格 + 合同名称
  428. // 项目合同:项目名称 + 空格 + 合同名称
  429. const displayName = (!pay.is_project_contract && pay.tender_name)
  430. ? pay.tender_name + ' ' + pay.contract_name
  431. : (pay.project_name ? pay.project_name + ' ' + pay.contract_name : 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. // 判断是否需要显示"重新上报"按钮
  443. // 1. status=checkNo(4) - 被退回状态
  444. // 2. status=uncheck(1) 且 times>1 - 退回后重新上报待处理状态
  445. const isCheckNo = item.status === acContract.status.checkNo;
  446. const isUncheckReSubmit = item.status === acContract.status.uncheck && item.times > 1;
  447. const showResubmitBtn = isCheckNo || isUncheckReSubmit;
  448. %>
  449. <% const detailUrl = '/sp/' + ctx.subProject.id + '/contract/detail' + (item.contract_type === 2 ? '/income' : '') + (item.itemType === 'pay' ? '?tab=pay' : ''); %>
  450. <tr data-type="<%= item.dataType %>">
  451. <td><span class="bg-new-20 text-new-20 badge text-width">合同管理</span></td>
  452. <td>
  453. <a href="<%= detailUrl %>"><%- item.name %></a>
  454. </td>
  455. <td><%- item.status_text %></td>
  456. <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>
  457. <td>
  458. <a href="<%= detailUrl %>" class="btn btn-sm btn-table <%= showResubmitBtn ? 'btn-outline-warning text-warning' : 'btn-outline-primary' %>" role="button">
  459. <%- showResubmitBtn ? '重新上报' : '审批' %>
  460. </a>
  461. </td>
  462. </tr>
  463. <% } %>
  464. </tbody>
  465. </table>
  466. <% } else { %>
  467. <div class="p-5 text-center text-muted">
  468. <img src="/public/images/nulllogo.png" />
  469. <div class="pt-3">暂时没有需要你处理的事项</div>
  470. </div>
  471. <% } %>
  472. </div>
  473. <!--&lt;!&ndash;没有处理信息&ndash;&gt;-->
  474. <!--<p class="text-center text-muted">暂时没有需要你处理的事项。</p>-->
  475. </div>
  476. </div>
  477. </div>
  478. <div class="col-3 px-0">
  479. <div class="card ml-3">
  480. <div class="card-header card-white d-flex justify-content-between">
  481. <div class="card-big-htext"><span class="card-icon mr-2"></span>我参与的</div></div>
  482. <div class="card-body p-0">
  483. <div class="row mx-0 echart-height">
  484. <div class="col-6 px-0">
  485. <div class="canyu-width canyu-bg-blue mx-3 my-2 p-3 text-white">
  486. <div>参与审批</div>
  487. <div><span class="canyu-text mr-1"><%- total_count %></span>次</div>
  488. </div>
  489. </div>
  490. <div class="col-6 px-0">
  491. <div class="canyu-width canyu-bg-yellow my-2 mr-3 p-3 text-white">
  492. <div>距最后一次审批已过</div>
  493. <div><span class="canyu-text mr-1"><%- last_day || last_day === 0 ? last_day : '-' %></span>天</div>
  494. </div>
  495. </div>
  496. </div>
  497. <div class="contant-height-two">
  498. <div id="jechart" style="height: 90%; width: 100%;"></div>
  499. </div>
  500. </div>
  501. </div>
  502. </div>
  503. <!--项目消息通知-->
  504. <div class="col-3 pl-0">
  505. <div class="card ml-3">
  506. <div class="card-header card-white d-flex justify-content-between">
  507. <div class="card-big-htext"><span class="card-icon mr-2"></span>项目通知</div>
  508. <div class="mt-1"><a class="text-secondary" href="/sp/<%- ctx.subProject.id %>/dashboard/msg">查看全部</a></div>
  509. </div>
  510. <div class="card-body p-0">
  511. <div class="contant-height-three">
  512. <ul class="list-group list-group-flush msg-height-list">
  513. <% if (msgList.length === 0) { %>
  514. <!--没有通知-->
  515. <li class="list-group-item text-muted text-center p-5">
  516. <img src="/public/images/nulllogo.png" />
  517. <p class="pt-2 text-center mb-0">暂时没有通知</p>
  518. </li>
  519. <% } else { %>
  520. <% for (const msg of msgList) { %>
  521. <li class="list-group-item text-muted">
  522. <a href="#view-msg" msg-id="<%= msg.id %>" data-toggle="modal" data-target="#view-msg"<% if (msg.istop !== '0') { %> class="text-danger">
  523. <i class="fa fa-exclamation-triangle" ></i> <% } else { %>><% } %><%- msg.title %></a><br><%- moment(msg.release_time*1000).format('YYYY/MM/DD HH:mm') %></li>
  524. <% } %>
  525. <% } %>
  526. </ul>
  527. </div>
  528. <% if (userMsgPermission) { %>
  529. <!--发布通知-->
  530. <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>
  531. <% } %>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. <div class="row agency-partheight">
  537. <div class="col-9 px-0">
  538. <div class="card ml-3">
  539. <div class="card-header card-white d-flex justify-content-between">
  540. <div class="card-big-htext"><span class="card-icon mr-2"></span>参与的标段动态</div>
  541. <div>
  542. <select class="form-control form-control-sm" id="select-notice-type">
  543. <option value="0">全部</option>
  544. <option value="6">预付款</option>
  545. <option value="5">台账审批</option>
  546. <option value="4">台账修订</option>
  547. <option value="2">计量审批</option>
  548. <option value="3">变更审批</option>
  549. <% if (ctx.subProject.page_show.openChangeProject) { %>
  550. <option value="7">变更立项</option>
  551. <% } %>
  552. <% if (ctx.subProject.page_show.openChangeApply) { %>
  553. <option value="8">变更申请</option>
  554. <% } %>
  555. <% if (ctx.subProject.page_show.openChangePlan) { %>
  556. <option value="9">变更方案</option>
  557. <% } %>
  558. <% if (ctx.subProject.page_show.openMaterial) { %>
  559. <option value="1">材料调差</option>
  560. <% } %>
  561. <% if (ctx.subProject.page_show.openFinancial) { %>
  562. <option value="11">资金支付</option>
  563. <% } %>
  564. <% if (ctx.subProject.page_show.qualityInspection) { %>
  565. <option value="12">质量巡检</option>
  566. <% } %>
  567. <% if (ctx.subProject.page_show.safeInspection) { %>
  568. <option value="13">安全巡检</option>
  569. <% } %>
  570. <% if (ctx.subProject.page_show.safePayment) { %>
  571. <option value="14">安全计量</option>
  572. <% } %>
  573. <% if (ctx.subProject.page_show.phasePay) { %>
  574. <option value="15">合同支付</option>
  575. <% } %>
  576. <% if (ctx.subProject.page_show.cost) { %>
  577. <option value="16">成本报审</option>
  578. <option value="17">财务账面</option>
  579. <option value="18">成本分析</option>
  580. <% } %>
  581. </select>
  582. </div>
  583. </div>
  584. <div class="card-body p-0">
  585. <div class="contant-height-one">
  586. <% if(noticeList.length) { %>
  587. <style>
  588. #notice-list a {
  589. word-wrap:break-word;
  590. }
  591. </style>
  592. <table style="table-layout:fixed;" class="table table-middle">
  593. <thead class="thead-light">
  594. <tr>
  595. <th width="110" class="pl-3">类型</th>
  596. <th>名称</th>
  597. <th width="150">审批人-职位</th>
  598. <th width="120">审批时间</th>
  599. <th width="60">项目</th>
  600. <th width="80">状态</th>
  601. <th>审批意见</th>
  602. </tr>
  603. </thead>
  604. <tbody id="notice-list">
  605. <!--<ul id="notice" class="list-unstyled m-0">-->
  606. <% for (const notice of noticeList) { %>
  607. <% if(notice.type === pushType.stage) { %>
  608. <tr data-type="2">
  609. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  610. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>">第<%- notice.order %>期</a></td>
  611. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  612. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  613. <td>第<%- notice.order %>期</td>
  614. <td class="<%- acStage.statusClass[notice.status]%>"><%- acStage.statusString[notice.status]%></td>
  615. <td><%- notice.opinion ? notice.opinion : '' %></td>
  616. </tr>
  617. <% } else if(notice.type === pushType.material && ctx.subProject.page_show.openMaterial) { %>
  618. <tr data-type="1">
  619. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  620. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>">第<%- notice.order %>期</a></td>
  621. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  622. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  623. <td>第<%- notice.order %>期</td>
  624. <td class="<%- acMaterial.statusClass[notice.status]%>"><%- acMaterial.statusString[notice.status]%></td>
  625. <td><%- notice.opinion ? notice.opinion : '' %></td>
  626. </tr>
  627. <% } else if(notice.type === pushType.ledger) { %>
  628. <tr data-type="5">
  629. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  630. <td><a data-id="<%- notice.id %>" href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a></td>
  631. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  632. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  633. <td>台账</td>
  634. <td class="<%- acLedger.statusClass[notice.status]%>"><%- acLedger.statusString[notice.status]%></td>
  635. <td><%- notice.opinion ? notice.opinion : '' %></td>
  636. </tr>
  637. <% } else if(notice.type === pushType.revise) { %>
  638. <tr data-type="4">
  639. <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
  640. <td><a href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info">台账修订(第<%- notice.corder %>次)</a></td>
  641. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  642. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  643. <td>第<%- notice.corder %>次</td>
  644. <td class="<%- acRevise.statusClass[notice.status]%>"><%- acRevise.statusString[notice.status]%></td>
  645. <td><%- notice.opinion ? notice.opinion : '' %></td>
  646. </tr>
  647. <% } else if(notice.type === pushType.change){ %>
  648. <tr data-type="3">
  649. <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
  650. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information"><%- notice.c_code %></a></td>
  651. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  652. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  653. <td>变更</td>
  654. <td class="<%- acChange.statusClass[notice.status]%>"><%- acChange.statusString[notice.status]%></td>
  655. <td><%- notice.opinion ? notice.opinion : '' %></td>
  656. </tr>
  657. <% } else if(notice.type === pushType.changeProject && ctx.subProject.page_show.openChangeProject) { %>
  658. <tr data-type="7">
  659. <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
  660. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/project/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  661. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  662. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  663. <td>变更</td>
  664. <td class="<%- acChangeProject.statusClass[notice.status] %>"><%- acChangeProject.statusString[notice.status] %></td>
  665. <td><%- notice.opinion ? notice.opinion : '' %></td>
  666. </tr>
  667. <% } else if(notice.type === pushType.changeApply && ctx.subProject.page_show.openChangeApply) { %>
  668. <tr data-type="8">
  669. <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
  670. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/apply/<%- notice.caid %>/information"><%- notice.c_code %></a></td>
  671. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  672. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  673. <td>变更</td>
  674. <td class="<%- acChangeApply.statusClass[notice.status]%>"><%- acChangeApply.statusString[notice.status] %></td>
  675. <td><%- notice.opinion ? notice.opinion : '' %></td>
  676. </tr>
  677. <% } else if(notice.type === pushType.changePlan && ctx.subProject.page_show.openChangePlan) { %>
  678. <tr data-type="9">
  679. <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
  680. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/plan/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  681. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  682. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  683. <td>变更</td>
  684. <td class="<%- acChangePlan.statusClass[notice.status] %>"><%- acChangePlan.statusString[notice.status] %></td>
  685. <td><%- notice.opinion ? notice.opinion : '' %></td>
  686. </tr>
  687. <% } else if(notice.type === pushType.advance) { %>
  688. <tr data-type="6">
  689. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  690. <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>
  691. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  692. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  693. <td>第<%- notice.order %>期</td>
  694. <td class="<%- acAdvance.statusClass[notice.status]%>"><%- acAdvance.statusString[notice.status]%></td>
  695. <td><%- notice.opinion ? notice.opinion : '' %></td>
  696. </tr>
  697. <% } else if(notice.type === pushType.financial && ctx.subProject.page_show.openFinancial) { %>
  698. <tr data-type="11">
  699. <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
  700. <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>
  701. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  702. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  703. <td>支付</td>
  704. <td class="<%- acFinancial.statusClass[notice.status] %>"><%- acFinancial.statusString[notice.status] %></td>
  705. <td><%- notice.opinion ? notice.opinion : '' %></td>
  706. </tr>
  707. <% } else if(notice.type === pushType.inspection && ctx.subProject.page_show.qualityInspection) { %>
  708. <tr data-type="12">
  709. <td><span class="bg-new-inspection text-new-inspection badge text-width">质量巡检</span></td>
  710. <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>
  711. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  712. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  713. <td>巡检</td>
  714. <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
  715. <td><%- notice.opinion ? notice.opinion : '' %></td>
  716. </tr>
  717. <% } else if(notice.type === pushType.safeInspection && ctx.subProject.page_show.safeInspection) { %>
  718. <tr data-type="13">
  719. <td><span class="bg-new-inspection text-new-inspection badge text-width">安全巡检</span></td>
  720. <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>
  721. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  722. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  723. <td>巡检</td>
  724. <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
  725. <td><%- notice.opinion ? notice.opinion : '' %></td>
  726. </tr>
  727. <% } else if(notice.type === pushType.safeStage && ctx.subProject.page_show.safePayment) { %>
  728. <tr data-type="14">
  729. <td><span class="bg-new-inspection text-new-payment badge text-width">安全计量</span></td>
  730. <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>
  731. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  732. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  733. <td>第<%- notice.order %>期</td>
  734. <td class="<%- acSafeStage.statusClass[notice.status] %>"><%- acSafeStage.statusString[notice.status] %></td>
  735. <td><%- notice.opinion ? notice.opinion : '' %></td>
  736. </tr>
  737. <% } else if(notice.type === pushType.phasePay && ctx.subProject.page_show.phasePay) { %>
  738. <tr data-type="15">
  739. <td><span class="bg-new-phasepay text-new-phasepay badge text-width">合同支付</span></td>
  740. <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>
  741. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  742. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  743. <td>第<%- notice.order %>期</td>
  744. <td class="<%- acPhasePay.statusClass[notice.status] %>"><%- acPhasePay.statusString[notice.status] %></td>
  745. <td><%- notice.opinion ? notice.opinion : '' %></td>
  746. </tr>
  747. <% } else if(notice.type === pushType.costStageLedger && ctx.subProject.page_show.cost) { %>
  748. <tr data-type="16">
  749. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本报审</span></td>
  750. <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>
  751. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  752. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  753. <td>第<%- notice.order %>期</td>
  754. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  755. <td><%- notice.opinion ? notice.opinion : '' %></td>
  756. </tr>
  757. <% } else if(notice.type === pushType.costStageBook && ctx.subProject.page_show.cost) { %>
  758. <tr data-type="17">
  759. <td><span class="bg-new-coststage text-new-coststage badge text-width">财务账面</span></td>
  760. <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>
  761. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  762. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  763. <td>第<%- notice.order %>期</td>
  764. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  765. <td><%- notice.opinion ? notice.opinion : '' %></td>
  766. </tr>
  767. <% } else if(notice.type === pushType.costStageAnalysis && ctx.subProject.page_show.cost) { %>
  768. <tr data-type="18">
  769. <td><span class="bg-new-coststage text-new-coststage badge text-width">成本分析</span></td>
  770. <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>
  771. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  772. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  773. <td>第<%- notice.order %>期</td>
  774. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  775. <td><%- notice.opinion ? notice.opinion : '' %></td>
  776. </tr>
  777. <% } else if(notice.type === pushType.costStageDuty && ctx.subProject.page_show.cost) { %>
  778. <tr data-type="19">
  779. <td><span class="bg-new-coststage text-new-coststage badge text-width">责任成本</span></td>
  780. <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/duty/1/stage"><%- notice.name %></a></td>
  781. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  782. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  783. <td></td>
  784. <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
  785. <td><%- notice.opinion ? notice.opinion : '' %></td>
  786. </tr>
  787. <% } %>
  788. <% } %>
  789. </tbody>
  790. </table>
  791. <% } else { %>
  792. <div class="p-5 text-center text-muted">
  793. <img src="/public/images/nulllogo.png" />
  794. <div class="pt-3">暂时没有需要你关注的事项</div>
  795. </div>
  796. <% } %>
  797. </div>
  798. </div>
  799. <!--没有关注信息-->
  800. <!--<p class="text-center text-muted">暂时没有需要你关注的事项。</p>-->
  801. </div>
  802. </div>
  803. <div class="col-3 pl-0">
  804. <div class="card ml-3">
  805. <div class="card-header card-white d-flex justify-content-between">
  806. <div class="card-big-htext"><span class="card-icon mr-2"></span>技术支持</div>
  807. </div>
  808. <div class="card-body p-0">
  809. <!--<h6 class="card-subtitle mb-2 text-muted"><%= salesmanData.username %></h6>-->
  810. <div class="contant-height-one">
  811. <div class="mx-4">
  812. <ul class="list-group list-group-flush">
  813. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="腾讯QQ"><i class="fa fa-qq"></i> <%=salesmanData.qq%></li>
  814. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="手机号码"><i class="fa fa-tablet"></i> <%=salesmanData.telephone%></li>
  815. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="固定电话"><i class="fa fa-phone"></i> <%=salesmanData.fixedphone%></li>
  816. <% if (projectData.qrcode_json) { %>
  817. <li class="list-group-item container-fluid">
  818. <div class="row qrcode-height">
  819. <% for (const qr of JSON.parse(projectData.qrcode_json)) { %>
  820. <div class="col-sm text-center"><img src="/<%= qr.path %>" width="100%" style="max-width: 180px"><div class="text-center"><%= qr.name %></div></div>
  821. <% } %>
  822. </div>
  823. </li>
  824. <% } else { %>
  825. <li class="list-group-item container-fluid">
  826. <div class="row qrcode-height">
  827. <div class="col-sm text-center"><img src="/public/images/erweima.jpg" width="100%" style="max-width: 180px"><div class="text-center">虾米造价</div></div>
  828. </div>
  829. </li>
  830. <% } %>
  831. </ul>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. <script src="/public/js/moment/moment.min.js"></script>
  842. <script src="/public/js/echarts/echarts.min.js"></script>
  843. <script src="/public/js/dashboard.js"></script>
  844. <script>
  845. autoFlashHeight();
  846. const msgList = JSON.parse('<%- JSON.stringify(msgList) %>');
  847. const sysMsgList = JSON.parse('<%- JSON.stringify(sysMsgList) %>');
  848. const pushType = JSON.parse('<%- JSON.stringify(pushType) %>');
  849. const uid = '<%- uid %>';
  850. const type = 1;
  851. const userMsgPermission = <%- userMsgPermission %>;
  852. </script>
  853. <script type="text/javascript">
  854. $(function () {
  855. function setDashboardHeight() {
  856. function getObjHeight(select) {
  857. return select.length > 0 ? select.outerHeight(true) : 0;
  858. }
  859. var mobileHeight = getObjHeight($(".mobile-height"));
  860. var maintainHeight = getObjHeight($(".maintain-height"));
  861. $('.dashboard-height').height($(window).height()- mobileHeight - maintainHeight - 34 - 16);
  862. $('.agency-partheight').height($('.dashboard-height').height()/2);
  863. // $('.agency-partheight').eq(1).height($('.sjs-height-0').height() - $('.agency-partheight').eq(0).height());
  864. $('.contant-height-one').height($('.agency-partheight').height() - 52 - 20);
  865. $('.contant-height-two').height($('.agency-partheight').height() - 52 - getObjHeight($(".echart-height")) - 20);
  866. $('.contant-height-three').height($('.agency-partheight').height() - 52 - getObjHeight($(".addmsg-height")) - 20);
  867. $('.qrcode-height').height($('.contant-height-one').height() - 43 - 44 - 44 - 25);
  868. $('.qrcode-height .col-sm').css('padding-top', ($('.qrcode-height').height()/2 - ($('.qrcode-height img').height()+18)/2) + 'px');
  869. // resizeChart();
  870. }
  871. setDashboardHeight();
  872. $(window).resize(setDashboardHeight);
  873. $('#select-notice-type').change(function () {
  874. const type = parseInt($(this).val());
  875. if(type === 0) {
  876. $('#notice-list tr').show();
  877. return;
  878. } else {
  879. $('#notice-list tr').hide();
  880. $('#notice-list tr[data-type="' + type + '"]').show();
  881. }
  882. });
  883. $('#select-doing-type').change(function () {
  884. const type = parseInt($(this).val());
  885. if(type === 0) {
  886. $('#doing-list tr').show();
  887. return;
  888. } else {
  889. $('#doing-list tr').hide();
  890. $('#doing-list tr[data-type="' + type + '"]').show();
  891. }
  892. });
  893. })
  894. var transparentCount = 1;
  895. const option = {
  896. // title: {
  897. // text: '金额统计图',
  898. // left: 'center',
  899. // top:'7%'
  900. // },
  901. color: [
  902. 'rgba(241, 82, 91,'+ transparentCount +')',
  903. 'rgba(250, 140, 22,'+ transparentCount +')',
  904. 'rgba(251, 182, 45,'+ transparentCount +')',
  905. 'rgba(82, 196, 26,'+ transparentCount +')',
  906. 'rgba(22, 208, 208,'+ transparentCount +')',
  907. <% if (ctx.subProject.page_show.openChangeProject) { %>
  908. 'rgba(51, 119, 255,'+ transparentCount +')',
  909. <% } %>
  910. <% if (ctx.subProject.page_show.openChangeApply) { %>
  911. 'rgba(41, 58, 210,'+ transparentCount +')',
  912. <% } %>
  913. <% if (ctx.subProject.page_show.openChangePlan) { %>
  914. 'rgba(114, 46, 209,'+ transparentCount +')',
  915. <% } %>
  916. <% if (ctx.subProject.page_show.openMaterial) { %>
  917. 'rgba(187, 41, 210,'+ transparentCount +')',
  918. <% } %>
  919. <% if (ctx.subProject.page_show.openFinancial) { %>
  920. 'rgba(58, 88, 50,'+ transparentCount +')',
  921. <% } %>
  922. <% if (ctx.subProject.page_show.qualityInspection) { %>
  923. 'rgba(158, 58, 80,'+ transparentCount +')',
  924. <% } %>
  925. <% if (ctx.subProject.page_show.safeInspection) { %>
  926. 'rgba(158, 8, 80,'+ transparentCount +')',
  927. <% } %>
  928. ],
  929. tooltip: {
  930. trigger: 'item'
  931. },
  932. legend: [
  933. {
  934. orient: 'vertical',
  935. left: '3%',
  936. top: 'center',
  937. itemWidth: 13,
  938. itemHeight: 13,
  939. textStyle: {
  940. fontSize: 12
  941. },
  942. data: [<% for (const sc of shenpi_count.slice(0, shenpi_count.length/2)) { %>
  943. '<%- sc.name %>',
  944. <% } %>]
  945. },
  946. {
  947. orient: 'vertical',
  948. right: '3%',
  949. top: 'center',
  950. itemWidth: 13,
  951. itemHeight: 13,
  952. textStyle: {
  953. fontSize: 12
  954. },
  955. data: [<% for (const sc of shenpi_count.slice(shenpi_count.length/2, shenpi_count.length)) { %>
  956. '<%- sc.name %>',
  957. <% } %>]
  958. }
  959. ],
  960. series: [
  961. {
  962. name: '审批次数',
  963. type: 'pie',
  964. radius: ['35%', '55%'],
  965. center: ['50%', '50%'],
  966. avoidLabelOverlap: false,
  967. data: [
  968. <% for (const sc of shenpi_count) { %>
  969. { value: <%- sc.count %>, name: '<%- sc.name %>' },
  970. <% } %>
  971. ],
  972. label: {
  973. show: false
  974. },
  975. emphasis: {
  976. itemStyle: {
  977. shadowBlur: 10,
  978. shadowOffsetX: 0,
  979. shadowColor: 'rgba(0, 0, 0, 0.5)'
  980. }
  981. }
  982. }
  983. ]
  984. };
  985. function optionRadius() {
  986. if ($(window).outerWidth() > 1366) {
  987. if ($('#jechart').outerWidth() - $('#jechart').outerHeight() < 90) {
  988. option.series[0].radius = ['35%', '55%'];
  989. } else if ($('#jechart').outerWidth() < 320) {
  990. option.series[0].radius = ['35%', '60%'];
  991. } else if ($('#jechart').outerWidth() < 330) {
  992. option.series[0].radius = ['40%', '65%'];
  993. } else if ($('#jechart').outerWidth() < 350) {
  994. option.series[0].radius = ['45%', '70%'];
  995. } else {
  996. option.series[0].radius = ['50%', '75%'];
  997. }
  998. } else {
  999. option.series[0].radius = ['50%', '75%'];
  1000. }
  1001. }
  1002. function initChart() {
  1003. const myChart1 = echarts.init(document.getElementById('jechart'));
  1004. optionRadius();
  1005. myChart1.setOption(option, true);
  1006. window.addEventListener('resize', function () {
  1007. optionRadius();
  1008. myChart1.setOption(option, true);
  1009. myChart1.resize();
  1010. });
  1011. }
  1012. // initChart();
  1013. setTimeout(function () {
  1014. initChart();
  1015. },500);
  1016. // $(window).resize(resizeChart);
  1017. // function resizeChart() {
  1018. // myChart1.resize()
  1019. // }
  1020. // var myChart1 = echarts.init(document.getElementById('jechart'));
  1021. // setTimeout(function () {
  1022. // myChart1.setOption(option);
  1023. // resizeChart();
  1024. // // resizeChart();
  1025. // },500);
  1026. </script>