index.ejs 49 KB

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