| | |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', templet: '#orderNoTpl', width: 160} |
| | | // ,{field: 'matnr', align: 'center',title: '规格', width: 160} |
| | | // ,{field: 'maktx', align: 'center',title: '商品名称', width: 200} |
| | | // ,{field: 'batch', align: 'center',title: '箱号'} |
| | | ,{field: 'unit', align: 'center',title: '箱号'} |
| | | // ,{field: 'specs', align: 'center',title: '接头'} |
| | | // ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'brand', align: 'center',title: '包装组号'} |
| | |
| | | ,{field: 'qty', align: 'center',title: '作业数量', style: 'font-weight: bold'} |
| | | ,{field: 'enableQty', align: 'center',title: '待出数量', style: 'font-weight: bold'} |
| | | ,{field: 'finishStatus', align: 'center', title: '是否完成', templet: function(d){ |
| | | if (d.qty === 0 && d.enableQty === 0) { |
| | | if (d.qty !== 0 && d.enableQty === 0) { |
| | | return '<span style="color:green;font-weight:bold;">完成</span>'; |
| | | } else { |
| | | return '<span style="color:red;">未完成</span>'; |
| | |
| | | } |
| | | ,yes: function(layerIndex, layero){ |
| | | // 立即出库按钮点击 → 先请求下拉列表 |
| | | let loadIndex = layer.load(10); |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl + "/getMesOrder/auth", // 你提供的接口 |
| | | headers: {'token': localStorage.getItem('token')}, |
| | |
| | | success: function(layero2, index2){ |
| | | // 渲染下拉框 |
| | | let select = $(layero2).find('#batchSelectStaBox'); |
| | | select.empty().append(`<option value="">请选择组货单号</option>`); // 保持默认空 |
| | | select.empty().append(`<option value="">请选择组货单号</option>`); |
| | | res.data.forEach(item => { |
| | | select.append(`<option value="${item}">${item}</option>`); |
| | | }); |
| | | layui.form.render('select'); // 重新渲染下拉框 |
| | | // 注意这里 select 要加 lay-search 属性 |
| | | select.attr("lay-search", ""); |
| | | layui.form.render('select'); |
| | | |
| | | |
| | | |
| | | // 确认按钮 |