revise.ejs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <% include ../tender/tender_sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main d-flex justify-content-between"><!--工具-->
  5. <div>
  6. <div class="d-inline-block">
  7. <div class="input-group input-group-sm">
  8. <input class="datepicker-here form-control mt-0" placeholder="按时间筛选" data-range="true" data-multiple-dates-separator=" - " data-language="zh" type="text" style="width:190px">
  9. <div class="input-group-append">
  10. <button class="btn btn-outline-secondary" type="button" title="筛选"><i class="fa fa-filter"></i></button>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <div>
  16. <% if (addValid) { %>
  17. <div class="d-inline-block">
  18. <a href="#add-bg" data-toggle="modal" data-target="#add-bg" class="btn btn-primary btn-sm pull-right">新建修订</a>
  19. </div>
  20. <% } %>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="content-wrap">
  25. <div class="c-body">
  26. <!--修订中-->
  27. <table class="table table-bordered">
  28. <thead>
  29. <tr>
  30. <th></th>
  31. <th>创建时间</th>
  32. <th>提交人</th>
  33. <th>状态</th>
  34. <th>完成时间</th>
  35. <th>操作</th>
  36. </tr>
  37. </thead>
  38. <% for (const lr of ledgerRevise) { %>
  39. <tr>
  40. <td><%- lr.corder %></td>
  41. <td><%- lr.in_time ? lr.in_time.toLocaleDateString() : '' %></td>
  42. <td><%- lr.user_name %></td>
  43. <td></td>
  44. <td><%- lr.end_time ? lr.end_time.toLocaleDateString() : '' %></td>
  45. <td>
  46. <% if (lr.status === auditConst.status.uncheck) { %>
  47. <a href="<%- preUrl + 'ledger/revise/' + lr.id +'/info' %>" class="btn btn-primary btn-sm">修订</a>
  48. <a href="#remove" data-toggle="modal" data-target="#remove" class="btn btn-secondary btn-sm">作废</a>
  49. <% } else if (lr.status === auditConst.status.checking) { %>
  50. <a href="<%- preUrl + 'ledger/revise/' + lr.id +'/info' %>" class="btn btn-success btn-sm">审批</a><
  51. <% } else if (lr.status === auditConst.status.checkNo) { %>
  52. <a href="<%- preUrl + 'ledger/revise/' + lr.id +'/info' %>" class="btn btn-primary btn-sm">重新上报</a>
  53. <a href="#remove" data-toggle="modal" data-target="#remove" class="btn btn-secondary btn-sm">作废</a>
  54. <% } else if (ledgerRevise.indexOf(lr) === ledgerRevise.length - 1) { %>
  55. <a href="<%- preUrl + 'ledger/revise/' + lr.id +'/info' %>">查看修订内容</a>
  56. <% } %>
  57. </td>
  58. </tr>
  59. <% } %>
  60. </table>
  61. <!--翻页-->
  62. <% include ../layout/page.ejs %>
  63. </div>
  64. </div>
  65. </div>