| | |
| | | if (issued > 0) { |
| | | LocDto locDto = new LocDto(locDetl.getLocNo(), locDetl.getMatnr(), locDetl.getMaktx(), locDetl.getBatch(), JSON.toJSONString(vo.getOrderDtos()), |
| | | issued >= locDetl.getAnfme() ? locDetl.getAnfme() : issued); |
| | | int ioType = (issued >= locDetl.getAnfme() && locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("loc_no", locDto.getLocNo())) == 1) ? 101 : 103; |
| | | int count = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("loc_no", locDto.getLocNo())); |
| | | int ioType = (issued >= locDetl.getAnfme() && count == 1 ? 101 : 103); |
| | | List<Integer> staNos = staDescService.queryOutStaNosByLocNo(locDetl.getLocNo(), ioType); |
| | | locDto.setStaNos(staNos); |
| | | locDtos.add(locDto); |
| | |
| | | @TableField("store_max_date") |
| | | private Integer storeMaxDate; |
| | | |
| | | /** |
| | | * 是否为频繁入出库物料 |
| | | */ |
| | | @TableField("inout_everyday") |
| | | private Boolean inoutEveryday; |
| | | |
| | | |
| | | public Mat() {} |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInoutEveryday$(){ |
| | | if (this.inoutEveryday == null){ |
| | | return "否"; |
| | | } |
| | | if (this.inoutEveryday){ |
| | | return "是"; |
| | | }else { |
| | | return "否"; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | <result column="store_max" property="storeMax" /> |
| | | <result column="store_min" property="storeMin" /> |
| | | <result column="store_max_date" property="storeMaxDate" /> |
| | | <result column="inout_everyday" property="inoutEveryday" /> |
| | | </resultMap> |
| | | |
| | | <select id="listByPage" resultMap="BaseResultMap"> |
| | |
| | | ,{field: 'storeMax$', align: 'center',title: '库存上限'} |
| | | ,{field: 'storeMin$', align: 'center',title: '库存下限'} |
| | | ,{field: 'storeMaxDate$', align: 'center',title: '最大滞留时间'} |
| | | ,{field: 'inoutEveryday$', align: 'center',title: '频繁入出库物料'} |
| | | |
| | | ] |
| | | |
| | | var detlCols = [ |
| | |
| | | } |
| | | ,yes: function(index, layero){ |
| | | //按钮【立即出库】的回调 |
| | | console.log('261行') |
| | | console.log(tableCache); |
| | | pakout(tableCache, index); |
| | | } |
| | | ,btn2: function(index, layero){ |
| | |
| | | mergeTabCache[i]['staNo'] = batchSta; |
| | | arr.push(i); |
| | | } |
| | | console.log(mergeTabCache) |
| | | stoPreTabMergeIdx.reload({data: mergeTabCache}); |
| | | arr.forEach(item => { |
| | | $('div[lay-id=stoPreTabMerge] tr[data-index="' + item + '"] .order-sta-select').val(batchSta); |
| | |
| | | } |
| | | ,yes: function(index, layero){ |
| | | //按钮【立即出库】的回调 |
| | | console.log('560') |
| | | console.log(mergeTabCache); |
| | | pakout(mergeTabCache, index); |
| | | } |
| | | ,btn2: function(index, layero){ |
| | |
| | | <input name="storeMaxDate" placeholder="最大滞留时间(天)" type="number" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">频繁入出库物料</label> |
| | | <div class="layui-input-block"> |
| | | <select name="inoutEveryday" lay-vertype="tips" lay-verify="required" required=""> |
| | | <option value="0">否</option> |
| | | <option value="1">是</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |