index.ejs 84 KB

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