dashboard.ejs 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>待审批-计量支付</title>
  8. <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
  9. <link rel="stylesheet" href="/public/css/wap/main.css">
  10. <link rel="stylesheet" href="/public/css/toast.css">
  11. <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
  12. <link rel="shortcut icon" href="/public/images/favicon.ico">
  13. <style>
  14. body {
  15. padding: 0;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="container">
  21. <!--顶部-->
  22. <nav class="fixed-top bg-dark">
  23. <div class="my-2 d-flex justify-content-between">
  24. <span class="text-white ml-3">待审批</span>
  25. <div class="mr-3">
  26. <div class="dropdown">
  27. <button class="btn btn-sm btn-light dropdown-toggle" type="button" data-toggle="dropdown">
  28. <%- ctx.session.sessionUser.name.substr(ctx.session.sessionUser.name.length > 2 ? ctx.session.sessionUser.name.length - 2 : 0) %>
  29. </button>
  30. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  31. <a class="dropdown-item" href="/wap/logout">退出登录</a>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </nav>
  37. <!--待审批期列表-->
  38. <div class="py-6">
  39. <% if (auditStages.length !== 0) { %>
  40. <% for (const audit of auditStages) { %>
  41. <div class="card mb-3">
  42. <div class="card-header">
  43. <%- JSON.parse(audit.deal_info).buildName %>
  44. </div>
  45. <div class="bg-light p-2 px-3"><b><%- audit.name %></b></div>
  46. <div class="card-body">
  47. <div class="d-flex justify-content-between"><span>第<%- audit.order %>期</span><span><%- audit.s_time %></span></div>
  48. <div class="my-2">
  49. <table class="table table-sm table-bordered">
  50. <tr><th>本期合同计量</th><td class="text-right"><%- audit.contract_tp ? audit.contract_tp : 0 %></td></tr>
  51. <tr><th>本期数量变更计量</th><td class="text-right"><%- audit.qc_tp ? audit.qc_tp : 0 %></td></tr>
  52. <tr><th>本期完成计量</th><td class="text-right"><%- audit.gather_tp ? audit.gather_tp : 0 %></td></tr>
  53. <tr><th>截止上期完成计量</th><td class="text-right"><%- audit.pre_gather_tp ? audit.pre_gather_tp : 0 %></td></tr>
  54. <tr><th>截止本期完成计量</th><td class="text-right"><%- audit.end_gather_tp ? audit.end_gather_tp : 0 %></td></tr>
  55. <tr><th>本期应付</th><td class="text-right"><%- audit.yf_tp ? audit.yf_tp : 0 %></td></tr>
  56. </table>
  57. </div>
  58. <div class="">
  59. <a href="/wap/tender/<%- audit.tid %>#shenpi" class="btn btn-block btn-success">审批</a>
  60. </div>
  61. </div>
  62. </div>
  63. <% } %>
  64. <% } else { %>
  65. <h3 class="text-center text-muted">暂无待审批期计量</h3>
  66. <% } %>
  67. </div>
  68. <!--底栏菜单-->
  69. <nav class="fixed-bottom navbar-dark bg-light border-top">
  70. <ul class="nav nav-fill my-2">
  71. <li class="nav-item">
  72. <a class="nav-link active show-loading" href="/wap/dashboard"><i class="fa fa-check-square-o"></i> 待审批</a>
  73. </li>
  74. <li class="nav-item">
  75. <a class="nav-link text-muted show-loading" href="/wap/list"><i class="fa fa-list-ul"></i> 项目</a>
  76. </li>
  77. </ul>
  78. </nav>
  79. </div>
  80. <!-- JS. -->
  81. <script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
  82. <script src="/public/js/popper/popper.min.js"></script>
  83. <script src="/public/js/bootstrap/bootstrap.min.js"></script>
  84. <script src="/public/js/cookies.js"></script>
  85. <script src="/public/js/wap/global.js"></script>
  86. </body>
  87. </html>