| | |
| | | String orderNo = taskDto.getLocDtos().get(0).getOrderNo(); |
| | | OrderPakout orderPakout = orderPakOutService.selectByNo(orderNo); |
| | | int ioType = orderPakout.getDocType() == 8 ? 107 : (taskDto.isAll() ? 101 : 103); |
| | | StaDesc staDesc = staDescService.queryCrnStnAuto(ioType, locMast.getCrnNo(), staNo.getDevNo()); |
| | | StaDesc staDesc = staDescService.queryCrnStnAuto(ioType, locMast.getCrnNo(), staNo.getDevNo(),locMast.getRow1()); |
| | | // 生成工作号 |
| | | int workNo = commonService.getWorkNo(WorkNoType.getWorkNoType(ioType)); |
| | | // 生成工作档 |
| | |
| | | wrkDetl.setStockNum(locDetl.getAnfme());//库存 |
| | | wrkDetl.setStockNum2(locDetl.getWeight());//辅库存 |
| | | wrkDetl.setKpCstmrName(orderPakout.getKpCstmrName()); |
| | | wrkDetl.setCstateid(locDetl.getCstateid()); |
| | | |
| | | //计算辅数量 |
| | | Double weight = MatUtils.calcWeight(wrkDetl.getMatnr(), wrkDetl.getAnfme()); |