| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R OutCallAgv(AgvCallParams params, Long userId) { |
| | | BasAreas basAreas = basAreasService.selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", LocAreaType.LOC_AREA_TYPE_IN_CACHE.type)); |
| | | |
| | | /**获取入库最早的一条数据**/ |
| | | List<LocCache> locCaches = locCacheService.selectList(new EntityWrapper<LocCache>() |
| | | .eq("loc_sts", LocStsType.LOC_STS_TYPE_F.type) |
| | | .eq("area_id", basAreas.getId()) |
| | | .eq("frozen", 0) |
| | | .orderDesc(Arrays.asList("sort", "first_time"))); |
| | | |
| | |
| | | |
| | | for (LocCache locCache : locCaches) { |
| | | //获取缓存区信息 |
| | | BasAreas basAreas = basAreasService.selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", LocAreaType.LOC_AREA_TYPE_IN_CACHE.type)); |
| | | // BasAreas basAreas = basAreasService.selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", LocAreaType.LOC_AREA_TYPE_IN_CACHE.type)); |
| | | if (Objects.isNull(basAreas)) { |
| | | throw new CoolException("库区不存在!!"); |
| | | } |
| | |
| | | detl.setBarcode(pakin.getBarcode()); |
| | | detl.setAnfme(pakin.getAnfme()); |
| | | detl.setBrand(pakin.getBrand()); |
| | | detl.setSuppCode(pakin.getSuppCode()); |
| | | detl.setAppeTime(new Date()); |
| | | detl.setSpecs(pakin.getSpecs()); |
| | | detl.setColor(pakin.getColor()); |
| | |
| | | + wrkMast.getLocNo() + "]"); |
| | | } |
| | | for (TaskDetl wrkDetl : wrkDetls53) { |
| | | |
| | | LocDetl locDetl = locDetlService.selectItem(locCache.getLocNo(), wrkDetl.getMatnr(), |
| | | wrkDetl.getBatch(), wrkDetl.getBrand(), wrkDetl.getStandby1(), wrkDetl.getStandby2(), |
| | | wrkDetl.getStandby3(), wrkDetl.getBoxType1(), wrkDetl.getBoxType2(), |
| | |
| | | {field: 'type$', align: 'center', title: '组托类型'} |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'locNo', align: 'center', title: '库位号'} |
| | | cols.push({field: 'locNo', align: 'center', title: '库位号', hide: true} |
| | | , { |
| | | field: 'status', align: 'center', title: '数据状态', templet: function (row) { |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='正常|锁定'' lay-filter='tableCheckbox' disabled='disabled' table-index='" + row.LAY_TABLE_INDEX + "'"; |