list_modal.ejs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <input type="hidden" id="add_type" value="all" >
  47. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  48. <button type="button" class="btn btn-primary btn-sm" id="add_material_bill">确定添加</button>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="modal fade" id="cancel-self" data-backdrop="static">
  54. <div class="modal-dialog" role="document">
  55. <div class="modal-content">
  56. <div class="modal-header">
  57. <h5 class="modal-title">取消单独添加工料</h5>
  58. </div>
  59. <div class="modal-body">
  60. <!--<h5>确认取消单独添加工料?</h5>-->
  61. <h5>取消后将清空“单独添加工料窗口”,数据无法恢复,请谨慎操作。</h5>
  62. </div>
  63. <div class="modal-footer">
  64. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
  65. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  66. <button type="button" id="cancelSelfBtn" class="btn btn-danger btn-sm">确定取消</button>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <% } %>
  72. <% include ./audit_modal.ejs %>