feat: Implement create/edit dialog for pedimentos management
- Added create-edit-dialog component for creating and editing pedimentos. - Integrated dialog with data table actions for editing existing pedimentos. - Implemented infinite scroll functionality in the data table for loading more pedimentos. - Enhanced server-side loading of pedimentos with authentication checks. - Added filtering options for pedimentos based on status, client ID, and year. - Improved error handling and user feedback for actions like creating, editing, and deleting pedimentos.
This commit is contained in:
@@ -37,7 +37,7 @@ export const containersApi = {
|
||||
*/
|
||||
list: (page = 1, pageSize = 50) =>
|
||||
api.get<ContainerListResponse>(
|
||||
`/v1/containers?page=${page}&page_size=${pageSize}`
|
||||
`/v1/public/refrence_data/containers?page=${page}&page_size=${pageSize}`
|
||||
),
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,7 @@ export const containersApi = {
|
||||
* @param data - Datos del container a crear
|
||||
*/
|
||||
create: (data: CreateContainerData) =>
|
||||
api.post<Container>('/v1/containers', data),
|
||||
api.post<Container>('/v1/public/refrence_data/containers', data),
|
||||
|
||||
/**
|
||||
* Actualiza un container existente
|
||||
@@ -59,11 +59,11 @@ export const containersApi = {
|
||||
* @param data - Datos a actualizar
|
||||
*/
|
||||
update: (key: number, data: UpdateContainerData) =>
|
||||
api.put<Container>(`/v1/containers/${key}`, data),
|
||||
api.put<Container>(`/v1/public/refrence_data/containers/${key}`, data),
|
||||
|
||||
/**
|
||||
* Elimina un container
|
||||
* @param key - ID del container a eliminar
|
||||
*/
|
||||
delete: (key: number) => api.delete(`/v1/containers/${key}`)
|
||||
delete: (key: number) => api.delete(`/v1/public/refrence_data/containers/${key}`)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user