index.ejs 72 KB

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