| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.LocMastInitParam; |
| | | import com.zy.asrs.enums.LocAreaType; |
| | | import com.zy.asrs.mapper.LocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.entity.Parameter; |
| | |
| | | private WrkMastLogService wrkMastLogService; |
| | | @Resource |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | |
| | | @Autowired |
| | | private BasAreasService basAreasService; |
| | | |
| | | @RequestMapping(value = "/locMast/init/pwd") |
| | | public R locMastInitPwd(@RequestParam(required = false) String pwd) { |
| | |
| | | // @Transactional |
| | | public R init(LocMastInitParam param) { |
| | | try { |
| | | BasAreas basAreas = basAreasService |
| | | .selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", LocAreaType.LOC_AREA_TYPE_CRN.type)); |
| | | List<LocMast> list = new ArrayList<>(); |
| | | BasWhsType basWhsType = basWhsTypeService.selectByIdentifying(param.getIdentifying()); |
| | | if (Cools.isEmpty(basWhsType)) { |
| | |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setModiTime(now); |
| | | locMast.setWhsType(basWhsType.getId()); |
| | | locMast.setAreaId(basAreas.getId()); |
| | | locMast.setAreaName(basAreas.getName()); |
| | | list.add(locMast); |
| | | } |
| | | } |
| | |
| | | @TableField("frozen_memo") |
| | | private String frozenMemo; |
| | | |
| | | @TableField("area_id") |
| | | private Long areaId; |
| | | |
| | | @TableField("area_name") |
| | | private String areaName; |
| | | |
| | | |
| | | public String getWhsType$(){ |
| | | BasWhsTypeService service = SpringUtils.getBean(BasWhsTypeService.class); |
| | |
| | | waitPakin.setZpallet(param.getBarcode()); // 托盘码 |
| | | waitPakin.setThreeCode(detlDto.getThreeCode()); |
| | | waitPakin.setSuppCode(detlDto.getStandby1()); |
| | | waitPakin.setStandby1(detlDto.getStandby1()); |
| | | waitPakin.setIoStatus("N"); // 入出状态 |
| | | waitPakin.setAnfme(detlDto.getAnfme()); // 数量 |
| | | waitPakin.setStatus("Y"); // 状态 |
| | |
| | | } else { |
| | | locDetl = new LocDetl(); |
| | | locDetl.sync(wrkDetl); |
| | | locDetl.setAreaId(locMast.getAreaId()); |
| | | locMast.setAreaName(locMast.getAreaName()); |
| | | locDetl.setLocNo(wrkMast.getLocNo()); // 库位号 |
| | | locDetl.setAnfme(wrkDetl.getAnfme()); // 数量 |
| | | locDetl.setZpallet(wrkDetl.getZpallet()); // 托盘条码 |
| | |
| | | {field: 'matnr', align: 'center',title: '商品编号', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: false} |
| | | ,{field: 'standby1', align: 'center',title: '供应商编码', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: 'BS Code', hide: false} |
| | | ,{field: 'tag$', align: 'center',title: '零件类型', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '批号', hide: true} |