| | |
| | | import com.vincent.rsf.server.common.domain.KeyValVo; |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | | import com.vincent.rsf.server.manager.controller.params.AsnOrderAndItemsParams; |
| | | import com.vincent.rsf.server.manager.controller.params.OrgLocParams; |
| | | import com.vincent.rsf.server.manager.controller.params.TransferItemParams; |
| | | import com.vincent.rsf.server.manager.entity.Transfer; |
| | | import com.vincent.rsf.server.manager.entity.excel.CheckOrderTemplate; |
| | |
| | | if (!transferService.save(transfer)) { |
| | | return R.error("Save Fail"); |
| | | } |
| | | |
| | | /***保存成功,自动生成出库单*/ |
| | | transferService.genOutStock(transfer, getLoginUserId()); |
| | | |
| | | return R.ok("Save Success").add(transfer); |
| | | } |
| | | |
| | |
| | | |
| | | @ApiOperation("单据信息修改") |
| | | @PostMapping("/transfer/items/update") |
| | | @PreAuthorize("hasAuthority('manager:outStock:update')") |
| | | @PreAuthorize("hasAuthority('manager:transfer:update')") |
| | | public R orderAndrItemUpdate(@RequestBody TransferItemParams params) throws Exception { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("获取原库区物料信息") |
| | | @PostMapping("/transfer/locs/items") |
| | | @PreAuthorize("hasAuthority('manager:transfer:list')") |
| | | public R locsPage(@RequestBody OrgLocParams params) throws Exception { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return R.ok().add(transferService.getLocsItems(params, getLoginUserId())); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |