index.ejs 75 KB

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