index.ejs 47 KB

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