| | |
| | | |
| | | @RequestMapping("/available/put/site") |
| | | @ManagerAuth() |
| | | public R availablePutSite(){ |
| | | public R availablePutSite() { |
| | | return R.ok().add(basDevpService.getAvailableInSite()); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/put/site") |
| | | @ManagerAuth() |
| | | public R availableEmptyPutSite(){ |
| | | public R availableEmptyPutSite() { |
| | | return R.ok().add(basDevpService.getAvailableEmptyInSite()); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/site") |
| | | @ManagerAuth() |
| | | public R availableTakeSite(){ |
| | | public R availableTakeSite() { |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | List<Integer> outSite = basDevpService.getAvailableOutSite(101); |
| | | for (Integer siteId : outSite) { |
| | |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | @RequestMapping("/turn/over/out/start") |
| | | @ManagerAuth(memo = "客户转换") |
| | | public R turnOverOutStart(@RequestBody EmptyPlateOutParam param) { |
| | | workService.turnOverOut(param, getUserId()); |
| | | return R.ok("客户转换成功"); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/check/site") |
| | | @ManagerAuth() |
| | | public R availableTakeCheckSite(){ |
| | | public R availableTakeCheckSite() { |
| | | return R.ok().add(basDevpService.getAvailableOutSite(107)); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/take/site") |
| | | @ManagerAuth() |
| | | public R availableEmptyTakeSite(){ |
| | | public R availableEmptyTakeSite() { |
| | | return R.ok().add(basDevpService.getAvailableEmptyOutSite()); |
| | | } |
| | | |
| | | @RequestMapping("/full/store/put/start") |
| | | @ManagerAuth(memo = "全板入库") |
| | | public R fullStorePutStart(@RequestBody FullStoreParam fullStoreParam) { |
| | | return R.ok("入库启动成功").add(workService.startupFullPutStore(fullStoreParam,getUserId())); |
| | | try { |
| | | String locNo = workService.startupFullPutStore(fullStoreParam, getUserId()); |
| | | return R.ok("入库启动成功").add(locNo); |
| | | } catch (Exception e) { |
| | | return R.error("入库启动失败==>" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/plate/out/start") |
| | | @ManagerAuth(memo = "出库作业") |
| | | public R fullStoreTakeStart(@RequestBody StockOutParam param) { |
| | | workService.startupFullTakeStore(param, getUserId()); |
| | | return R.ok("出库启动成功"); |
| | | } |
| | | |
| | | @RequestMapping("/plate/out/start/v2") |
| | | @ManagerAuth(memo = "出库作业2") |
| | | public R fullStoreTakeStartV2(@RequestBody StockOutParam param) { |
| | | if (Cools.isEmpty(param.getItemId())) { |
| | | return R.error("转入仓库不能为空"); |
| | | } |
| | | workService.startupFullTakeStore(param, getUserId()); |
| | | return R.ok("出库启动成功"); |
| | | } |
| | |
| | | @RequestMapping("/mat/turn/over/out/start") |
| | | @ManagerAuth(memo = "品号移交") |
| | | public R turnMatLocDetl(@RequestBody EmptyPlateOutParam param) { |
| | | if (Cools.isEmpty(param) || Cools.isEmpty(param.getLocDetls(),param.getMatId()) || Cools.isEmpty(param.getLocDetls().get(0)) || Cools.isEmpty(param.getLocDetls().get(0).getMatnr())){ |
| | | if (Cools.isEmpty(param) || Cools.isEmpty(param.getLocDetls(), param.getMatId()) || Cools.isEmpty(param.getLocDetls().get(0)) || Cools.isEmpty(param.getLocDetls().get(0).getMatnr())) { |
| | | return R.error("参数为空"); |
| | | } |
| | | if (param.getLocDetls().size()>1){ |
| | | if (param.getLocDetls().size() > 1) { |
| | | return R.error("请单条数据修改,谨慎操作!"); |
| | | } |
| | | workService.turnMatLocDetl(param, getUserId()); |
| | |
| | | @RequestMapping("/hand/control/wrkMast") |
| | | @ManagerAuth(memo = "手动处理工作档") |
| | | public R handControlWrkMast(@RequestParam String workNo, |
| | | @RequestParam Integer type){ |
| | | @RequestParam Integer type) { |
| | | if (type == 1) { |
| | | workService.completeWrkMast(workNo, getUserId()); |
| | | return R.ok("工作档已完成"); |