123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <% include ./sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main">
- <h2>API设置</h2>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <% if (tenders.length === 0) { %>
- <div class="jumbotron m-3">
- <h3 class="display-6">没有标段数据</h3>
- </div>
- <% } else { %>
- <div class="m-3">
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th class="text-center" >名称</th>
- <th class="text-center" >计量模式</th>
- <th class="text-center" >计量期数</th>
- <th class="text-center" >创建人</th>
- <th class="text-center" >标段创建时间/期审批时间</th>
- <th class="text-center">工序报验</th>
- <th class="text-center">档案管理</th>
- </tr>
- </thead>
- <% for (const t of tenders) { %>
- <tr>
- <td><%- t.name %></td>
- <td><%- t.measure_type_str %></td>
- <td><%- t.stage_count_str %></td>
- <td><%- t.user_str %></td>
- <td><%- ctx.moment(t.show_time).format('YYYY-MM-DD HH:mm:ss') %></td>
- <td class="text-center">
- <form action="api/update?tid=<%= t.id %>&gxbyCheck=<%- (t.s2b_gxby_check ? 0 : 1) %>" method="post">
- <div class="form-check form-check-inline">
- <input class="form-check-input" type="checkbox" id="inlineCheckbox1" <% if (t.s2b_gxby_check) { %>checked<% } %> name="gxby_check" onchange="submit();">
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
- <label class="form-check-label" for="inlineCheckbox1">检查计量</label>
- </div>
- </form>
- <form action="api/update?tid=<%= t.id %>&gxbyLimit=<%- (t.s2b_gxby_limit ? 0 : 1) %>" method="post">
- <div class="form-check form-check-inline">
- <input class="form-check-input" type="checkbox" id="inlineCheckbox2" <% if (t.s2b_gxby_limit) { %>checked<% } %> name="gxby_limit" onchange="submit();">
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
- <label class="form-check-label" for="inlineCheckbox2">限制上报</label>
- </div>
- </form>
- </td>
- <td class="text-center">
- <form action="api/update?tid=<%= t.id %>&daglCheck=<%- (t.s2b_dagl_check ? 0 : 1) %>" method="post">
- <div class="form-check form-check-inline">
- <input class="form-check-input" type="checkbox" id="inlineCheckbox3" <% if (t.s2b_dagl_check) { %>checked<% } %> name="dagl_check" onchange="submit();">
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
- <label class="form-check-label" for="inlineCheckbox3">检查计量</label>
- </div>
- </form>
- <form action="api/update?tid=<%= t.id %>&daglLimit=<%- (t.s2b_dagl_limit ? 0 : 1) %>" method="post">
- <div class="form-check form-check-inline">
- <input class="form-check-input" type="checkbox" id="inlineCheckbox4" <% if (t.s2b_dagl_limit) { %>checked<% } %> name="dagl_limit" onchange="submit();">
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
- <label class="form-check-label" for="inlineCheckbox4">限制上报</label>
- </div>
- </form>
- </td>
- </tr>
- <% } %>
- </table>
- </div>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(() => {
- autoFlashHeight();
- })
- </script>
|