| | |
| | | List<MatCodeCountDto> matDtos = new ArrayList<>(); |
| | | if (Cools.isEmpty(param.getProductCode())) { |
| | | param.getList().forEach(elem -> { |
| | | matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus())); |
| | | matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus(), elem.getStr5(), elem.getStr6())); |
| | | }); |
| | | wrkDetlService.createWorkDetail(workNo, matDtos, param.getBarcode(), userId); |
| | | // 成品物料 |
| | |
| | | if (null != one) locDetlDtos.add(new LocDetlDto(one, one.getAnfme())); |
| | | } |
| | | } |
| | | for (LocDetlDto e: locDetlDtos) { |
| | | if (Cools.isEmpty(e.getLocDetl().getZpallet())) { |
| | | throw new CoolException("托盘码为空不允许盘点,库位号" + e.getLocDetl().getLocNo()); |
| | | } |
| | | } |
| | | if (!locDetlDtos.isEmpty()) { |
| | | // 启动出库开始 107.盘点出库 |
| | | stockOut(staNo, locDetlDtos, 107, userId); |