123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <% if (!material.readOnly) { %>
- <!--添加调差工料-->
- <div class="modal fade" id="addgl" data-backdrop="static">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">选择调差工料</h5>
- </div>
- <div class="modal-body">
- <!--<div class="input-group input-group-sm mb-2">-->
- <!--<input type="text" class="form-control form-control-sm" name="search" id="search_input" placeholder="输入 工料编号 / 名称 检索" aria-describedby="button-addon2">-->
- <!--<div class="input-group-append">-->
- <!--<button class="btn btn-outline-secondary btn-sm" type="button" id="search_btn"><i class="fa fa-search"></i></button>-->
- <!--</div>-->
- <!--</div>-->
- <div class="modal-height-300">
- <table class="table table-sm table-bordered">
- <thead>
- <tr class="text-center"><th>选择</th><th>编号</th><th>名称</th><th>单位</th><th>规格</th></tr>
- </thead>
- <tbody id="materialBills">
- <% for (const [index,m] of materialBillsData.entries()) { %>
- <% if (m.code !== null && m.code !== '') { %>
- <tr class="table-secondary">
- <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
- <td><%= m.code %></td>
- <td><%= m.name %></td>
- <td><%= m.unit %></td>
- <td><%= m.spec %></td>
- </tr>
- <% } else { %>
- <tr class="table-secondary" style="display: none">
- <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
- <td><%= m.code %></td>
- <td><%= m.name %></td>
- <td><%= m.unit %></td>
- <td><%= m.spec %></td>
- </tr>
- <% } %>
- <% } %>
- </tbody>
- </table>
- </div>
- </div>
- <div class="modal-footer">
- <input type="hidden" id="add_type" value="all" >
- <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
- <button type="button" class="btn btn-primary btn-sm" id="add_material_bill">确定添加</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="cancel-self" data-backdrop="static">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">取消单独添加工料</h5>
- </div>
- <div class="modal-body">
- <!--<h5>确认取消单独添加工料?</h5>-->
- <h5>取消后将清空“单独添加工料窗口”,数据无法恢复,请谨慎操作。</h5>
- </div>
- <div class="modal-footer">
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
- <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
- <button type="button" id="cancelSelfBtn" class="btn btn-danger btn-sm">确定取消</button>
- </div>
- </div>
- </div>
- </div>
- <% } %>
- <% include ./audit_modal.ejs %>
|