index.ejs 62 KB

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