index.ejs 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <div class="panel-content">
  2. <div class="panel-title fluid">
  3. <div class="title-main d-flex">
  4. <h2><%= ctx.session.sessionProject.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.session.sessionProject.page_show.openChangeProject && auditChangeProject.length !== 0) { %>
  57. <option value="7">变更立项(<%- auditChangeProject.length %>)</option>
  58. <% } %>
  59. <% if (ctx.session.sessionProject.page_show.openChangeApply && auditChangeApply.length !== 0) { %>
  60. <option value="8">变更申请(<%- auditChangeApply.length %>)</option>
  61. <% } %>
  62. <% if (ctx.session.sessionProject.page_show.openChangePlan && auditChangePlan.length !== 0) { %>
  63. <option value="9">变更方案(<%- auditChangePlan.length %>)</option>
  64. <% } %>
  65. <% if (ctx.session.sessionProject.page_show.openMaterial && auditMaterial.length !== 0) { %>
  66. <option value="1">材料调差(<%- auditMaterial.length %>)</option>
  67. <% } %>
  68. <% if (ctx.session.sessionProject.page_show.openPayment && auditPayments.length !== 0) { %>
  69. <option value="10">支付审批(<%- auditPayments.length %>)</option>
  70. <% } %>
  71. <% if (ctx.session.sessionProject.page_show.openFinancial && auditFinancials.length !== 0) { %>
  72. <option value="11">资金支付(<%- auditFinancials.length %>)</option>
  73. <% } %>
  74. </select>
  75. </div>
  76. </div>
  77. <div class="card-body p-0">
  78. <div class="contant-height-one">
  79. <% 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) { %>
  80. <style>
  81. #doing-list td {
  82. word-wrap:break-word;
  83. }
  84. </style>
  85. <table style="table-layout:fixed;" class="table table-middle">
  86. <thead class="thead-light">
  87. <tr>
  88. <th width="110" class="pl-3">类型</th>
  89. <th>名称</th>
  90. <th width="60">状态</th>
  91. <th width="125">创建时间</th>
  92. <th width="90">操作</th>
  93. </tr>
  94. </thead>
  95. <tbody id="doing-list">
  96. <% for (const t of auditTenders) { %>
  97. <% if (t.ledger_status === acLedger.status.checking) { %>
  98. <tr data-type="5">
  99. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  100. <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
  101. <td>台账</td>
  102. <td><%- (t.begin_time ? ctx.moment(t.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  103. <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  104. </tr>
  105. <% } else { %>
  106. <tr data-type="5">
  107. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  108. <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
  109. <td>台账</td>
  110. <td><%- (t.end_time ? ctx.moment(t.end_time).format('YYYY/MM/DD HH:mm') : '') %></td>
  111. <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  112. </tr>
  113. <% } %>
  114. <% } %>
  115. <% for (const revise of auditRevise) { %>
  116. <tr data-type="4">
  117. <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
  118. <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>
  119. <td>第<%- revise.corder %>次</td>
  120. <td><%- (
  121. revise.status === acRevise.status.checking
  122. ? (revise.begin_time ? ctx.moment(revise.begin_time).format('YYYY/MM/DD HH:mm') : '')
  123. : (revise.end_time ? ctx.moment(revise.end_time).format('YYYY/MM/DD HH:mm') : '')
  124. ) %></td>
  125. <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>
  126. </tr>
  127. <% } %>
  128. <% for (const audit of auditStages) { %>
  129. <% if (audit.sstatus !== acStage.status.checkNo) { %>
  130. <tr data-type="2">
  131. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  132. <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  133. <td>第<%- audit.sorder %>期</td>
  134. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  135. <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>
  136. </tr>
  137. <% } else { %>
  138. <tr data-type="2">
  139. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  140. <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  141. <td>第<%- audit.sorder %>期</td>
  142. <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
  143. <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>
  144. </tr>
  145. <% } %>
  146. <% } %>
  147. <% for (const audit of auditStageAss) { %>
  148. <% if (audit.sstatus !== acStage.status.checkNo) { %>
  149. <tr data-type="2">
  150. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  151. <td><a href="/tender/<%- audit.tid %>"><%- audit.tender_name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
  152. <td>第<%- audit.sorder %>期</td>
  153. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  154. <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">协同审批</a></td>
  155. </tr>
  156. <% } else { %>
  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.tender_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.begin_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. <% } %>
  165. <% } %>
  166. <% for (const change of auditChanges) { %>
  167. <tr data-type="3">
  168. <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
  169. <td><a href="/tender/<%- change.tid %>"><%- change.name %></a> <a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information"><%- change.ccode %></a></td>
  170. <td>变更</td>
  171. <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>
  172. <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>
  173. </tr>
  174. <% } %>
  175. <% for (const acp of auditChangeProject) { %>
  176. <tr data-type="7">
  177. <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
  178. <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/project/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
  179. <td>变更</td>
  180. <td><%- (
  181. acp.status !== acChangeProject.status.back
  182. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  183. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  184. ) %></td>
  185. <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>
  186. </tr>
  187. <% } %>
  188. <% for (const aca of auditChangeApply) { %>
  189. <tr data-type="8">
  190. <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
  191. <td><a href="/tender/<%- aca.tid %>"><%- aca.name %></a> <a href="/tender/<%- aca.tid %>/change/apply/<%- aca.caid %>/information"><%- aca.mcode %></a></td>
  192. <td>变更</td>
  193. <td><%- (
  194. aca.mstatus !== acChangeApply.status.checkNo
  195. ? (aca.begin_time ? ctx.moment(aca.begin_time).format('YYYY/MM/DD HH:mm') : '')
  196. : (aca.end_time ? ctx.moment(aca.end_time).format('YYYY/MM/DD HH:mm') : '')
  197. ) %></td>
  198. <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>
  199. </tr>
  200. <% } %>
  201. <% for (const acp of auditChangePlan) { %>
  202. <tr data-type="9">
  203. <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
  204. <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/plan/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
  205. <td>变更</td>
  206. <td><%- (
  207. acp.mstatus !== acChangePlan.status.checkNo
  208. ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
  209. : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
  210. ) %></td>
  211. <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>
  212. </tr>
  213. <% } %>
  214. <% for (const am of auditMaterial) { %>
  215. <% if (am.mstatus !== acMaterial.status.checkNo) { %>
  216. <tr data-type="1">
  217. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  218. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
  219. <td>第<%- am.morder %>期</td>
  220. <td><%- ctx.moment(am.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  221. <td><a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  222. </tr>
  223. <% } else { %>
  224. <tr data-type="1">
  225. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  226. <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
  227. <td>第<%- am.morder %>期</td>
  228. <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
  229. <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>
  230. </tr>
  231. <% } %>
  232. <% } %>
  233. <% for (const am of auditAdvance) { %>
  234. <% if (am.mstatus !== acAdvance.status.checkNo) { %>
  235. <tr data-type="6">
  236. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  237. <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>
  238. <td>第<%- am.morder %>期</td>
  239. <td><%- ctx.moment(am.create_time).format('YYYY/MM/DD HH:mm') %></td>
  240. <td><a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
  241. </tr>
  242. <% } else { %>
  243. <tr data-type="6">
  244. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  245. <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>
  246. <td>第<%- am.morder %>期</td>
  247. <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
  248. <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>
  249. </tr>
  250. <% } %>
  251. <% } %>
  252. <% for (const audit of auditPayments) { %>
  253. <% if (audit.sstatus !== acStage.status.checkNo) { %>
  254. <tr data-type="10">
  255. <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
  256. <% if (audit.type) { %>
  257. <td><a href="/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
  258. <% } else { %>
  259. <td><a href="/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
  260. <% } %>
  261. <td>第<%- audit.sorder %>期</td>
  262. <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
  263. <% if (audit.type) { %>
  264. <td><a href="/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>
  265. <% } else { %>
  266. <td><a href="/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>
  267. <% } %>
  268. </tr>
  269. <% } else { %>
  270. <tr data-type="10">
  271. <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
  272. <% if (audit.type) { %>
  273. <td><a href="/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
  274. <% } else {%>
  275. <td><a href="/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
  276. <% } %>
  277. <td>第<%- audit.sorder %>期</td>
  278. <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
  279. <% if (audit.type) { %>
  280. <td><a href="/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  281. <% } else {%>
  282. <td><a href="/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
  283. <% } %>
  284. </tr>
  285. <% } %>
  286. <% } %>
  287. <% for (const af of auditFinancials) { %>
  288. <tr data-type="11">
  289. <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
  290. <td><a href="/financial/<%- af.spid %>/pay"><%- af.name %></a> <a href="/financial/<%- af.spid %>/pay/<%- af.fpid %>/detial"><%- af.fpcode %></a></td>
  291. <td>支付</td>
  292. <td><%- (
  293. af.fpcstatus !== acFinancial.status.checkNo
  294. ? (af.begin_time ? ctx.moment(af.begin_time).format('YYYY/MM/DD HH:mm') : '')
  295. : (af.end_time ? ctx.moment(af.end_time).format('YYYY/MM/DD HH:mm') : '')
  296. ) %></td>
  297. <td><a href="/financial/<%- af.spid %>/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>
  298. </tr>
  299. <% } %>
  300. </tbody>
  301. </table>
  302. <% } else { %>
  303. <div class="p-5 text-center text-muted">
  304. <img src="/public/images/nulllogo.png" />
  305. <div class="pt-3">暂时没有需要你处理的事项</div>
  306. </div>
  307. <% } %>
  308. </div>
  309. <!--&lt;!&ndash;没有处理信息&ndash;&gt;-->
  310. <!--<p class="text-center text-muted">暂时没有需要你处理的事项。</p>-->
  311. </div>
  312. </div>
  313. </div>
  314. <div class="col-3 px-0">
  315. <div class="card ml-3">
  316. <div class="card-header card-white d-flex justify-content-between">
  317. <div class="card-big-htext"><span class="card-icon mr-2"></span>我参与的</div></div>
  318. <div class="card-body p-0">
  319. <div class="row mx-0 echart-height">
  320. <div class="col-6 px-0">
  321. <div class="canyu-width canyu-bg-blue mx-3 my-2 p-3 text-white">
  322. <div>参与审批</div>
  323. <div><span class="canyu-text mr-1"><%- total_count %></span>次</div>
  324. </div>
  325. </div>
  326. <div class="col-6 px-0">
  327. <div class="canyu-width canyu-bg-yellow my-2 mr-3 p-3 text-white">
  328. <div>距最后一次审批已过</div>
  329. <div><span class="canyu-text mr-1"><%- last_day || last_day === 0 ? last_day : '-' %></span>天</div>
  330. </div>
  331. </div>
  332. </div>
  333. <div class="contant-height-two">
  334. <div id="jechart" style="height: 90%; width: 100%;"></div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. <!--项目消息通知-->
  340. <div class="col-3 pl-0">
  341. <div class="card ml-3">
  342. <div class="card-header card-white d-flex justify-content-between">
  343. <div class="card-big-htext"><span class="card-icon mr-2"></span>项目通知</div>
  344. <div class="mt-1"><a class="text-secondary" href="/dashboard/msg">查看全部</a></div>
  345. </div>
  346. <div class="card-body p-0">
  347. <div class="contant-height-three">
  348. <ul class="list-group list-group-flush">
  349. <% if (msgList.length === 0) { %>
  350. <!--没有通知-->
  351. <li class="list-group-item text-muted text-center p-5">
  352. <img src="/public/images/nulllogo.png" />
  353. <p class="pt-2 text-center mb-0">暂时没有通知</p>
  354. </li>
  355. <% } else { %>
  356. <% for (const msg of msgList) { %>
  357. <li class="list-group-item text-muted">
  358. <a href="#view-msg" msg-id="<%= msg.id %>" data-toggle="modal" data-target="#view-msg"<% if (msg.istop !== '0') { %> class="text-danger">
  359. <i class="fa fa-exclamation-triangle" ></i> <% } else { %>><% } %><%- msg.title %></a><br><%- moment(msg.release_time*1000).format('YYYY/MM/DD HH:mm') %></li>
  360. <% } %>
  361. <% } %>
  362. </ul>
  363. </div>
  364. <% if (userMsgPermission) { %>
  365. <!--发布通知-->
  366. <div class="mx-3 pb-3 addmsg-height"><a class="btn btn-outline-primary btn-block" href="/dashboard/msg/add/0">发布通知</a></div>
  367. <% } %>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="row agency-partheight">
  373. <div class="col-9 px-0">
  374. <div class="card ml-3">
  375. <div class="card-header card-white d-flex justify-content-between">
  376. <div class="card-big-htext"><span class="card-icon mr-2"></span>参与的标段动态</div>
  377. <div>
  378. <select class="form-control form-control-sm" id="select-notice-type">
  379. <option value="0">全部</option>
  380. <option value="6">预付款</option>
  381. <option value="5">台账审批</option>
  382. <option value="4">台账修订</option>
  383. <option value="2">计量审批</option>
  384. <option value="3">变更审批</option>
  385. <% if (ctx.session.sessionProject.page_show.openChangeProject) { %>
  386. <option value="7">变更立项</option>
  387. <% } %>
  388. <% if (ctx.session.sessionProject.page_show.openChangeApply) { %>
  389. <option value="8">变更申请</option>
  390. <% } %>
  391. <% if (ctx.session.sessionProject.page_show.openChangePlan) { %>
  392. <option value="9">变更方案</option>
  393. <% } %>
  394. <% if (ctx.session.sessionProject.page_show.openMaterial) { %>
  395. <option value="1">材料调差</option>
  396. <% } %>
  397. <% if (ctx.session.sessionProject.page_show.openFinancial) { %>
  398. <option value="11">资金支付</option>
  399. <% } %>
  400. </select>
  401. </div>
  402. </div>
  403. <div class="card-body p-0">
  404. <div class="contant-height-one">
  405. <% if(noticeList.length) { %>
  406. <style>
  407. #notice-list a {
  408. word-wrap:break-word;
  409. }
  410. </style>
  411. <table style="table-layout:fixed;" class="table table-middle">
  412. <thead class="thead-light">
  413. <tr>
  414. <th width="110" class="pl-3">类型</th>
  415. <th>名称</th>
  416. <th width="150">审批人-职位</th>
  417. <th width="120">审批时间</th>
  418. <th width="60">项目</th>
  419. <th width="80">状态</th>
  420. <th>审批意见</th>
  421. </tr>
  422. </thead>
  423. <tbody id="notice-list">
  424. <!--<ul id="notice" class="list-unstyled m-0">-->
  425. <% for (const notice of noticeList) { %>
  426. <% if(notice.type === pushType.stage) { %>
  427. <tr data-type="2">
  428. <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
  429. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>">第<%- notice.order %>期</a></td>
  430. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  431. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  432. <td>第<%- notice.order %>期</td>
  433. <td class="<%- acStage.statusClass[notice.status]%>"><%- acStage.statusString[notice.status]%></td>
  434. <td><%- notice.opinion ? notice.opinion : '' %></td>
  435. </tr>
  436. <% } else if(notice.type === pushType.material && ctx.session.sessionProject.page_show.openMaterial) { %>
  437. <tr data-type="1">
  438. <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
  439. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>">第<%- notice.order %>期</a></td>
  440. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  441. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  442. <td>第<%- notice.order %>期</td>
  443. <td class="<%- acMaterial.statusClass[notice.status]%>"><%- acMaterial.statusString[notice.status]%></td>
  444. <td><%- notice.opinion ? notice.opinion : '' %></td>
  445. </tr>
  446. <% } else if(notice.type === pushType.ledger) { %>
  447. <tr data-type="5">
  448. <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
  449. <td><a data-id="<%- notice.id %>" href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a></td>
  450. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  451. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  452. <td>台账</td>
  453. <td class="<%- acLedger.statusClass[notice.status]%>"><%- acLedger.statusString[notice.status]%></td>
  454. <td><%- notice.opinion ? notice.opinion : '' %></td>
  455. </tr>
  456. <% } else if(notice.type === pushType.revise) { %>
  457. <tr data-type="4">
  458. <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
  459. <td><a href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info">台账修订(第<%- notice.corder %>次)</a></td>
  460. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  461. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  462. <td>第<%- notice.corder %>次</td>
  463. <td class="<%- acRevise.statusClass[notice.status]%>"><%- acRevise.statusString[notice.status]%></td>
  464. <td><%- notice.opinion ? notice.opinion : '' %></td>
  465. </tr>
  466. <% } else if(notice.type === pushType.change){ %>
  467. <tr data-type="3">
  468. <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
  469. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information"><%- notice.c_code %></a></td>
  470. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  471. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  472. <td>变更</td>
  473. <td class="<%- acChange.statusClass[notice.status]%>"><%- acChange.statusString[notice.status]%></td>
  474. <td><%- notice.opinion ? notice.opinion : '' %></td>
  475. </tr>
  476. <% } else if(notice.type === pushType.changeProject && ctx.session.sessionProject.page_show.openChangeProject) { %>
  477. <tr data-type="7">
  478. <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
  479. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/project/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  480. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  481. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  482. <td>变更</td>
  483. <td class="<%- acChangeProject.statusClass[notice.status] %>"><%- acChangeProject.statusString[notice.status] %></td>
  484. <td><%- notice.opinion ? notice.opinion : '' %></td>
  485. </tr>
  486. <% } else if(notice.type === pushType.changeApply && ctx.session.sessionProject.page_show.openChangeApply) { %>
  487. <tr data-type="8">
  488. <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
  489. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/apply/<%- notice.caid %>/information"><%- notice.c_code %></a></td>
  490. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  491. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  492. <td>变更</td>
  493. <td class="<%- acChangeApply.statusClass[notice.status]%>"><%- acChangeApply.statusString[notice.status] %></td>
  494. <td><%- notice.opinion ? notice.opinion : '' %></td>
  495. </tr>
  496. <% } else if(notice.type === pushType.changePlan && ctx.session.sessionProject.page_show.openChangePlan) { %>
  497. <tr data-type="9">
  498. <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
  499. <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/plan/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
  500. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  501. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  502. <td>变更</td>
  503. <td class="<%- acChangePlan.statusClass[notice.status] %>"><%- acChangePlan.statusString[notice.status] %></td>
  504. <td><%- notice.opinion ? notice.opinion : '' %></td>
  505. </tr>
  506. <% } else if(notice.type === pushType.advance) { %>
  507. <tr data-type="6">
  508. <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
  509. <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>
  510. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  511. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  512. <td>第<%- notice.order %>期</td>
  513. <td class="<%- acAdvance.statusClass[notice.status]%>"><%- acAdvance.statusString[notice.status]%></td>
  514. <td><%- notice.opinion ? notice.opinion : '' %></td>
  515. </tr>
  516. <% } else if(notice.type === pushType.financial && ctx.session.sessionProject.page_show.openFinancial) { %>
  517. <tr data-type="11">
  518. <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
  519. <td><a href="/financial/<%- notice.spid %>"><%- notice.name %></a> <a href="/financial/<%- notice.spid %>/pay/<%- notice.fpid %>/detail"><%- notice.code %></a></td>
  520. <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
  521. <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
  522. <td>支付</td>
  523. <td class="<%- acFinancial.statusClass[notice.status] %>"><%- acFinancial.statusString[notice.status] %></td>
  524. <td><%- notice.opinion ? notice.opinion : '' %></td>
  525. </tr>
  526. <% } %>
  527. <% } %>
  528. </tbody>
  529. </table>
  530. <% } else { %>
  531. <div class="p-5 text-center text-muted">
  532. <img src="/public/images/nulllogo.png" />
  533. <div class="pt-3">暂时没有需要你关注的事项</div>
  534. </div>
  535. <% } %>
  536. </div>
  537. </div>
  538. <!--没有关注信息-->
  539. <!--<p class="text-center text-muted">暂时没有需要你关注的事项。</p>-->
  540. </div>
  541. </div>
  542. <div class="col-3 pl-0">
  543. <div class="card ml-3">
  544. <div class="card-header card-white d-flex justify-content-between">
  545. <div class="card-big-htext"><span class="card-icon mr-2"></span>技术支持</div>
  546. </div>
  547. <div class="card-body p-0">
  548. <!--<h6 class="card-subtitle mb-2 text-muted"><%= salesmanData.username %></h6>-->
  549. <div class="contant-height-one">
  550. <div class="mx-4">
  551. <ul class="list-group list-group-flush">
  552. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="腾讯QQ"><i class="fa fa-qq"></i> <%=salesmanData.qq%></li>
  553. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="手机号码"><i class="fa fa-tablet"></i> <%=salesmanData.telephone%></li>
  554. <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="固定电话"><i class="fa fa-phone"></i> <%=salesmanData.fixedphone%></li>
  555. <% if (projectData.qrcode_json) { %>
  556. <li class="list-group-item container-fluid">
  557. <div class="row qrcode-height">
  558. <% for (const qr of JSON.parse(projectData.qrcode_json)) { %>
  559. <div class="col-sm text-center"><img src="/<%= qr.path %>" width="100%" style="max-width: 180px"><div class="text-center"><%= qr.name %></div></div>
  560. <% } %>
  561. </div>
  562. </li>
  563. <% } else { %>
  564. <li class="list-group-item container-fluid">
  565. <div class="row qrcode-height">
  566. <div class="col-sm text-center"><img src="/public/images/erweima.jpg" width="100%" style="max-width: 180px"><div class="text-center">虾米造价</div></div>
  567. </div>
  568. </li>
  569. <% } %>
  570. </ul>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. <script src="/public/js/moment/moment.min.js"></script>
  581. <script src="/public/js/echarts/echarts.min.js"></script>
  582. <script src="/public/js/dashboard.js"></script>
  583. <script>
  584. autoFlashHeight();
  585. const msgList = JSON.parse('<%- JSON.stringify(msgList) %>');
  586. const sysMsgList = JSON.parse('<%- JSON.stringify(sysMsgList) %>');
  587. const pushType = JSON.parse('<%- JSON.stringify(pushType) %>');
  588. const uid = '<%- uid %>';
  589. const type = 1;
  590. const userMsgPermission = <%- userMsgPermission %>;
  591. </script>
  592. <script type="text/javascript">
  593. $(function () {
  594. function setDashboardHeight() {
  595. function getObjHeight(select) {
  596. return select.length > 0 ? select.outerHeight(true) : 0;
  597. }
  598. var mobileHeight = getObjHeight($(".mobile-height"));
  599. var maintainHeight = getObjHeight($(".maintain-height"));
  600. $('.dashboard-height').height($(window).height()- mobileHeight - maintainHeight - 34 - 16);
  601. $('.agency-partheight').height($('.dashboard-height').height()/2);
  602. // $('.agency-partheight').eq(1).height($('.sjs-height-0').height() - $('.agency-partheight').eq(0).height());
  603. $('.contant-height-one').height($('.agency-partheight').height() - 52 - 20);
  604. $('.contant-height-two').height($('.agency-partheight').height() - 52 - getObjHeight($(".echart-height")) - 20);
  605. $('.contant-height-three').height($('.agency-partheight').height() - 52 - getObjHeight($(".addmsg-height")) - 20);
  606. $('.qrcode-height').height($('.contant-height-one').height() - 43 - 44 - 44 - 25);
  607. $('.qrcode-height .col-sm').css('padding-top', ($('.qrcode-height').height()/2 - ($('.qrcode-height img').height()+18)/2) + 'px');
  608. // resizeChart();
  609. }
  610. setDashboardHeight();
  611. $(window).resize(setDashboardHeight);
  612. $('#select-notice-type').change(function () {
  613. const type = parseInt($(this).val());
  614. if(type === 0) {
  615. $('#notice-list tr').show();
  616. return;
  617. } else {
  618. $('#notice-list tr').hide();
  619. $('#notice-list tr[data-type="' + type + '"]').show();
  620. }
  621. });
  622. $('#select-doing-type').change(function () {
  623. const type = parseInt($(this).val());
  624. if(type === 0) {
  625. $('#doing-list tr').show();
  626. return;
  627. } else {
  628. $('#doing-list tr').hide();
  629. $('#doing-list tr[data-type="' + type + '"]').show();
  630. }
  631. });
  632. })
  633. var transparentCount = 1;
  634. const option = {
  635. // title: {
  636. // text: '金额统计图',
  637. // left: 'center',
  638. // top:'7%'
  639. // },
  640. color: [
  641. 'rgba(241, 82, 91,'+ transparentCount +')',
  642. 'rgba(250, 140, 22,'+ transparentCount +')',
  643. 'rgba(251, 182, 45,'+ transparentCount +')',
  644. 'rgba(82, 196, 26,'+ transparentCount +')',
  645. 'rgba(22, 208, 208,'+ transparentCount +')',
  646. <% if (ctx.session.sessionProject.page_show.openChangeProject) { %>
  647. 'rgba(51, 119, 255,'+ transparentCount +')',
  648. <% } %>
  649. <% if (ctx.session.sessionProject.page_show.openChangeApply) { %>
  650. 'rgba(41, 58, 210,'+ transparentCount +')',
  651. <% } %>
  652. <% if (ctx.session.sessionProject.page_show.openChangePlan) { %>
  653. 'rgba(114, 46, 209,'+ transparentCount +')',
  654. <% } %>
  655. <% if (ctx.session.sessionProject.page_show.openMaterial) { %>
  656. 'rgba(187, 41, 210,'+ transparentCount +')',
  657. <% } %>
  658. <% if (ctx.session.sessionProject.page_show.openFinancial) { %>
  659. 'rgba(58, 88, 50,'+ transparentCount +')',
  660. <% } %>
  661. ],
  662. tooltip: {
  663. trigger: 'item'
  664. },
  665. legend: [
  666. {
  667. orient: 'vertical',
  668. left: '3%',
  669. top: 'center',
  670. itemWidth: 13,
  671. itemHeight: 13,
  672. textStyle: {
  673. fontSize: 12
  674. },
  675. data: [<% for (const sc of shenpi_count.slice(0, shenpi_count.length/2)) { %>
  676. '<%- sc.name %>',
  677. <% } %>]
  678. },
  679. {
  680. orient: 'vertical',
  681. right: '3%',
  682. top: 'center',
  683. itemWidth: 13,
  684. itemHeight: 13,
  685. textStyle: {
  686. fontSize: 12
  687. },
  688. data: [<% for (const sc of shenpi_count.slice(shenpi_count.length/2, shenpi_count.length)) { %>
  689. '<%- sc.name %>',
  690. <% } %>]
  691. }
  692. ],
  693. series: [
  694. {
  695. name: '审批次数',
  696. type: 'pie',
  697. radius: ['35%', '55%'],
  698. center: ['50%', '50%'],
  699. avoidLabelOverlap: false,
  700. data: [
  701. <% for (const sc of shenpi_count) { %>
  702. { value: <%- sc.count %>, name: '<%- sc.name %>' },
  703. <% } %>
  704. ],
  705. label: {
  706. show: false
  707. },
  708. emphasis: {
  709. itemStyle: {
  710. shadowBlur: 10,
  711. shadowOffsetX: 0,
  712. shadowColor: 'rgba(0, 0, 0, 0.5)'
  713. }
  714. }
  715. }
  716. ]
  717. };
  718. function optionRadius() {
  719. if ($(window).outerWidth() > 1366) {
  720. if ($('#jechart').outerWidth() - $('#jechart').outerHeight() < 90) {
  721. option.series[0].radius = ['35%', '55%'];
  722. } else if ($('#jechart').outerWidth() < 320) {
  723. option.series[0].radius = ['35%', '60%'];
  724. } else if ($('#jechart').outerWidth() < 330) {
  725. option.series[0].radius = ['40%', '65%'];
  726. } else if ($('#jechart').outerWidth() < 350) {
  727. option.series[0].radius = ['45%', '70%'];
  728. } else {
  729. option.series[0].radius = ['50%', '75%'];
  730. }
  731. } else {
  732. option.series[0].radius = ['50%', '75%'];
  733. }
  734. }
  735. function initChart() {
  736. const myChart1 = echarts.init(document.getElementById('jechart'));
  737. optionRadius();
  738. myChart1.setOption(option, true);
  739. window.addEventListener('resize', function () {
  740. optionRadius();
  741. myChart1.setOption(option, true);
  742. myChart1.resize();
  743. });
  744. }
  745. // initChart();
  746. setTimeout(function () {
  747. initChart();
  748. },500);
  749. // $(window).resize(resizeChart);
  750. // function resizeChart() {
  751. // myChart1.resize()
  752. // }
  753. // var myChart1 = echarts.init(document.getElementById('jechart'));
  754. // setTimeout(function () {
  755. // myChart1.setOption(option);
  756. // resizeChart();
  757. // // resizeChart();
  758. // },500);
  759. </script>