list_modal.ejs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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></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><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. <% } else { %>
  32. <tr class="table-secondary" style="display: none">
  33. <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
  34. <td><%= m.code %></td>
  35. <td><%= m.name %></td>
  36. <td><%= m.unit %></td>
  37. <td><%= m.spec %></td>
  38. </tr>
  39. <% } %>
  40. <% } %>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <div class="modal-footer">
  46. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  47. <button type="button" class="btn btn-primary btn-sm" id="add_material_bill">确定添加</button>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <% } %>
  53. <% include ./audit_modal.ejs %>