| | |
| | | } |
| | | |
| | | @PutMapping("/submit") |
| | | @Operation(summary = "提交供应商退货单") |
| | | @Operation(summary = "提交供应商退货单审批") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @Parameter(name = "processDefinitionKey", description = "流程定义 Key", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:update')") |
| | | public CommonResult<Boolean> submitReturnVendor(@RequestParam("id") Long id) { |
| | | returnVendorService.submitReturnVendor(id); |
| | | public CommonResult<Boolean> submitReturnVendor(@RequestParam("id") Long id, |
| | | @RequestParam("processDefinitionKey") String processDefinitionKey) { |
| | | returnVendorService.submitReturnVendorApproval(id, processDefinitionKey); |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/approval-process-list") |
| | | @Operation(summary = "获得供应商退货审批流程定义列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<List<java.util.Map<String, Object>>> getApprovalProcessList() { |
| | | return success(returnVendorService.getReturnVendorApprovalProcessDefinitionList()); |
| | | } |
| | | |
| | | @PutMapping("/stock") |
| | | @Operation(summary = "执行拣货") |
| | | @Parameter(name = "id", description = "编号", required = true) |