| | |
| | | @Autowired |
| | | private MatService matService; |
| | | |
| | | |
| | | /** |
| | | * 平庫上架 |
| | | * @param locNo |
| | | * @param barcode |
| | | * @return |
| | | */ |
| | | @RequestMapping("/pda/WarehouseIn") |
| | | @ManagerAuth |
| | | public R WarehouseIn(@RequestParam String locNo, @RequestParam String barcode) { |
| | | return mobileService.WarehouseIn(locNo, barcode, getHostId()); |
| | | return mobileService.WarehouseIn(locNo, barcode, getHostId(), getUserId()); |
| | | } |
| | | |
| | | /** |
| | | * 平庫下架 |
| | | * @param combParam |
| | | * @return |
| | | */ |
| | | @RequestMapping("/pda/WarehouseOut") |
| | | @ManagerAuth |
| | | public R WarehouseOut(@RequestBody CombParam combParam) { |
| | | return mobileService.WarehouseOut(combParam, getHostId()); |
| | | return mobileService.WarehouseOut(combParam, getHostId(), getUserId()); |
| | | } |
| | | |
| | | @RequestMapping("/outBound/mat/list") |
| | |
| | | return R.ok().add(maps); |
| | | } |
| | | |
| | | @RequestMapping("/outBound/mat/list") |
| | | @RequestMapping("/outBound/order/list") |
| | | @ManagerAuth(memo = "获取出库订单") |
| | | public R outBound(@RequestParam(required = false) String matnr,@RequestParam(required = false) String orderNo){ |
| | | List<DocType> docTypes = docTypeService.list(new LambdaQueryWrapper<DocType>().like(DocType::getPakout, 1)); |
| | |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | | |
| | | Order order = orderService.selectByNo(matParam.getOrderNo(), getHostId()); |
| | | if (order == null) { |
| | | throw new CoolException("Order is not exits"); |
| | | } |
| | | //更新订单工作数量 |
| | | orderDetlService.increaseWorkQtyByOrderNo(matParam.getOrderNo(), matParam.getMatnr(), matParam.getBatch(), matParam.getUseCount(), getHostId()); |
| | | orderService.updateSettle(order.getId(), 2L, getUserId(), getHostId()); |
| | | } |
| | | // 修改库位状态: F.在库 ====>>> R.出库预约/P.拣料/盘点/并板出库中 |
| | | locMast = locMastService.getOne(new LambdaQueryWrapper<LocMast>().eq(LocMast::getLocNo, param.getLocNo()).eq(LocMast::getHostId, getHostId())); |