list_modal.ejs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <% if (!material.readOnly) { %>
  2. <!--添加调差工料-->
  3. <div class="modal fade" id="addgl" data-backdrop="static">
  4. <div class="modal-dialog" role="document">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <h5 class="modal-title">选择调差工料</h5>
  8. </div>
  9. <div class="modal-body">
  10. <div class="input-group input-group-sm mb-2">
  11. <input type="text" class="form-control" name="search" id="search_input" placeholder="输入 工料编号 / 名称 检索" aria-describedby="button-addon2">
  12. <div class="input-group-append">
  13. <button class="btn btn-outline-secondary" type="button" id="search_btn"><i class="fa fa-search"></i></button>
  14. </div>
  15. </div>
  16. <div class="modal-height-300">
  17. <table class="table table-sm table-bordered">
  18. <thead>
  19. <tr class="text-center"><th>基数</th><th>选择</th><th>编号</th><th>名称</th><th>单位</th><th>规格</th></tr>
  20. </thead>
  21. <tbody id="materialBills">
  22. <% for (const [index,m] of materialBillsData.entries()) { %>
  23. <tr class="table-secondary">
  24. <td><%= index+1 %></td>
  25. <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
  26. <td><%= m.code %></td>
  27. <td><%= m.name %></td>
  28. <td><%= m.unit %></td>
  29. <td><%= m.spec %></td>
  30. </tr>
  31. <% } %>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
  38. <button type="button" class="btn btn-primary" id="add_material_bill">确定添加</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <% } %>
  44. <% include ./audit_modal.ejs %>