list_modal.ejs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 form-control-sm" name="search" id="search_input" placeholder="输入 工料编号 / 名称 检索" aria-describedby="button-addon2">
  12. <div class="input-group-append">
  13. <button class="btn btn-outline-secondary btn-sm" 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. <% if (m.code !== null && m.code !== '') { %>
  24. <tr class="table-secondary">
  25. <td><%= index+1 %></td>
  26. <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
  27. <td><%= m.code %></td>
  28. <td><%= m.name %></td>
  29. <td><%= m.unit %></td>
  30. <td><%= m.spec %></td>
  31. </tr>
  32. <% } %>
  33. <% } %>
  34. </tbody>
  35. </table>
  36. </div>
  37. </div>
  38. <div class="modal-footer">
  39. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  40. <button type="button" class="btn btn-primary btn-sm" id="add_material_bill">确定添加</button>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <% } %>
  46. <% include ./audit_modal.ejs %>