| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <% 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><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><%= index+1 %></td>                            <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">                <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><% } %><% include ./audit_modal.ejs %>
 |