s2b.ejs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <% include ./sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>API设置</h2>
  6. </div>
  7. </div>
  8. <div class="content-wrap">
  9. <div class="c-body">
  10. <div class="sjs-height-0">
  11. <% if (tenders.length === 0) { %>
  12. <div class="jumbotron m-3">
  13. <h3 class="display-6">没有标段数据</h3>
  14. </div>
  15. <% } else { %>
  16. <div class="m-3">
  17. <table class="table table-hover table-bordered">
  18. <thead>
  19. <tr>
  20. <th class="text-center" >名称</th>
  21. <th class="text-center" >计量模式</th>
  22. <th class="text-center" >计量期数</th>
  23. <th class="text-center" >创建人</th>
  24. <th class="text-center" >标段创建时间/期审批时间</th>
  25. <th class="text-center">工序报验</th>
  26. <th class="text-center">档案管理</th>
  27. </tr>
  28. </thead>
  29. <% for (const t of tenders) { %>
  30. <tr>
  31. <td><%- t.name %></td>
  32. <td><%- t.measure_type_str %></td>
  33. <td><%- t.stage_count_str %></td>
  34. <td><%- t.user_str %></td>
  35. <td><%- ctx.moment(t.show_time).format('YYYY-MM-DD HH:mm:ss') %></td>
  36. <td class="text-center">
  37. <form action="api/update?tid=<%= t.id %>&gxbyCheck=<%- (t.s2b_gxby_check ? 0 : 1) %>" method="post">
  38. <div class="form-check form-check-inline">
  39. <input class="form-check-input" type="checkbox" id="inlineCheckbox1" <% if (t.s2b_gxby_check) { %>checked<% } %> name="gxby_check" onchange="submit();">
  40. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
  41. <label class="form-check-label" for="inlineCheckbox1">检查计量</label>
  42. </div>
  43. </form>
  44. <form action="api/update?tid=<%= t.id %>&gxbyLimit=<%- (t.s2b_gxby_limit ? 0 : 1) %>" method="post">
  45. <div class="form-check form-check-inline">
  46. <input class="form-check-input" type="checkbox" id="inlineCheckbox2" <% if (t.s2b_gxby_limit) { %>checked<% } %> name="gxby_limit" onchange="submit();">
  47. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
  48. <label class="form-check-label" for="inlineCheckbox2">限制上报</label>
  49. </div>
  50. </form>
  51. </td>
  52. <td class="text-center">
  53. <form action="api/update?tid=<%= t.id %>&daglCheck=<%- (t.s2b_dagl_check ? 0 : 1) %>" method="post">
  54. <div class="form-check form-check-inline">
  55. <input class="form-check-input" type="checkbox" id="inlineCheckbox3" <% if (t.s2b_dagl_check) { %>checked<% } %> name="dagl_check" onchange="submit();">
  56. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
  57. <label class="form-check-label" for="inlineCheckbox3">检查计量</label>
  58. </div>
  59. </form>
  60. <form action="api/update?tid=<%= t.id %>&daglLimit=<%- (t.s2b_dagl_limit ? 0 : 1) %>" method="post">
  61. <div class="form-check form-check-inline">
  62. <input class="form-check-input" type="checkbox" id="inlineCheckbox4" <% if (t.s2b_dagl_limit) { %>checked<% } %> name="dagl_limit" onchange="submit();">
  63. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
  64. <label class="form-check-label" for="inlineCheckbox4">限制上报</label>
  65. </div>
  66. </form>
  67. </td>
  68. </tr>
  69. <% } %>
  70. </table>
  71. </div>
  72. <% } %>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script>
  78. $(() => {
  79. autoFlashHeight();
  80. })
  81. </script>