index.ejs 86 KB

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