| | |
| | | <div class="layui-input-inline"> |
| | | <select name="Type" id="Type" lay-filter="Type" lay-search> |
| | | <!-- JC23 --> |
| | | <option value="0">成品入库</option> |
| | | <option value="1">采购入库</option> |
| | | <option value="4">车间余料退回入库</option> |
| | | <option value="5">其它入库</option> |
| | | <option value="6">代储入库</option> |
| | | <!-- <option value=""></option> --> |
| | | <!-- JC24 --> |
| | | <!-- <option value="0" selected>成品入库</option> |
| | | <option value="1">采购入库</option> |
| | | <option value="2">中间品入库</option> --> |
| | | <!-- <option value="3">退货入库</option> --> |
| | | <!-- <option value="0">成品入库</option> --> |
| | | <!-- <option value="1">原料入库</option> --> |
| | | <!-- <option value="4">车间余料退回入库</option> |
| | | |
| | | <option value="6">代储入库</option> --> |
| | | <!-- <option value=""></option> --> |
| | | <option value="5">其它入库</option> |
| | | <option value="6">代储入库</option> |
| | | <option value="7">寄存入库</option> --> |
| | | <!-- JC08 --> |
| | | <!-- <option value="0">成品入库</option> |
| | | <option value="1">原料入库</option> |
| | | <option value="2">退货入库</option> --> |
| | | </select> |
| | | </div> |
| | | |
| | |
| | | {{# function GetBtn1(d){ |
| | | var html = ''; |
| | | var TypeValue = $("#Type").val(); |
| | | if(TypeValue=='1' || TypeValue=='5' || TypeValue=='6' || TypeValue=='7'){ |
| | | if(TypeValue=='6' || TypeValue=='7'){ |
| | | if(d.LotNo==null || d.LotNo==undefined || d.LotNo==''){ |
| | | html+= '<input type="text" class="input-dis" value="" disabled>'; |
| | | }else{ |
| | |
| | | { field: 'Id', title: '入库单明细ID', width: 120, align: 'center', fixed: 'left', hide: true, "disabled": true }, |
| | | { field: 'SkuNo', title: '物料编码', minWidth: 100, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'SkuName', title: '物料名称', minWidth: 180, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'LotNo', title: '批次号', align: 'center', edit: 'text', minWidth: 130, fixed: 'left', templet: '#templetLotNo', "disabled": true }, |
| | | { field: 'LotNo', title: '批次号', align: 'center', edit: 'text', minWidth: 130, fixed: 'left', templet: '#templetLotNo' }, |
| | | { field: 'SupplierLot', title: '供货批次', width: 130, edit: 'text', event: 'setSign', fixed: 'left', "disabled": true }, |
| | | { field: 'Qty', title: '数量', align: 'center', width: 80, edit: 'number', event: 'dataNumber', fixed: 'left', "disabled": true }, |
| | | { field: 'UnitName', title: '计量单位', align: 'center', width: 70 }, |
| | |
| | | } |
| | | else { |
| | | // 添加的时候移除‘采购入库’项 |
| | | $('select[lay-filter="Type"]').find('option[value="1"]').remove(); |
| | | form.render('select'); // 更新layui的select渲染 |
| | | //$('select[lay-filter="Type"]').find('option[value="1"]').remove(); |
| | | //form.render('select'); // 更新layui的select渲染 |
| | | } |
| | | |
| | | |
| | |
| | | break; |
| | | case "1": //采购入库 |
| | | case "5": //其它入库 |
| | | TypeNum = 1; |
| | | console.log(TypeNum) |
| | | break; |
| | | |
| | | case "0": //成品入库 |
| | | case "2": //中间品入库 |
| | | case "4": //车间余料入库 |