index.ejs 51 KB

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