贴标申请,仓储转运
This commit is contained in:
+21
@@ -70,6 +70,27 @@ public class DeliveryTransferController {
|
||||
return ApiResponse.success(service.createReturnOutbound(requiredCustomer(user, customerId), operator(user), request));
|
||||
}
|
||||
|
||||
@GetMapping("/outbound-orders/warehouse-transfer/candidates")
|
||||
@PreAuthorize("hasAuthority('" + OverseasPermissions.OUTBOUND_CREATE + "')")
|
||||
@Operation(summary = "List warehouse-transfer pallets that can create an outbound order")
|
||||
public ApiResponse<java.util.List<DeliveryResponses.WarehouseTransferOutboundCandidate>> warehouseTransferCandidates(
|
||||
@AuthenticationPrincipal AuthenticatedUser user,
|
||||
@RequestParam(required = false) String customerId,
|
||||
@RequestParam(required = false) String warehouseId) {
|
||||
requirePlatform(user);
|
||||
return ApiResponse.success(service.warehouseTransferOutboundCandidates(customerId, warehouseId));
|
||||
}
|
||||
|
||||
@PostMapping("/outbound-orders/warehouse-transfer")
|
||||
@PreAuthorize("hasAuthority('" + OverseasPermissions.OUTBOUND_CREATE + "')")
|
||||
@Operation(summary = "Create a warehouse-transfer outbound, delivery order and PDA task")
|
||||
public ApiResponse<DeliveryResponses.OutboundDetail> createWarehouseTransferOutbound(
|
||||
@AuthenticationPrincipal AuthenticatedUser user, @RequestParam String customerId,
|
||||
@Valid @RequestBody DeliveryRequests.WarehouseTransferOutbound request) {
|
||||
return ApiResponse.success(service.createWarehouseTransferOutbound(
|
||||
requiredCustomer(user, customerId), operator(user), request));
|
||||
}
|
||||
|
||||
@GetMapping("/outbound-orders")
|
||||
@PreAuthorize("hasAuthority('" + OverseasPermissions.OUTBOUND_LIST + "')")
|
||||
public ApiResponse<PageResult<DeliveryResponses.OutboundRow>> outboundPage(
|
||||
|
||||
Reference in New Issue
Block a user