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,21 +37,21 @@ export const customsSectionsApi = {
|
||||
*/
|
||||
list: (page = 1, pageSize = 50) =>
|
||||
api.get<CustomsSectionListResponse>(
|
||||
`/v1/customs-sections?page=${page}&page_size=${pageSize}`
|
||||
`/v1/public/refrence_data/customs-sections?page=${page}&page_size=${pageSize}`
|
||||
),
|
||||
|
||||
/**
|
||||
* Obtiene una sección aduanera por código
|
||||
* @param customs_code - Código de la sección aduanera
|
||||
*/
|
||||
get: (customs_code: string) => api.get<CustomsSection>(`/v1/customs-sections/${customs_code}`),
|
||||
get: (customs_code: string) => api.get<CustomsSection>(`/v1/public/refrence_data/customs-sections/${customs_code}`),
|
||||
|
||||
/**
|
||||
* Crea una nueva sección aduanera
|
||||
* @param data - Datos de la sección aduanera a crear
|
||||
*/
|
||||
create: (data: CreateCustomsSectionData) =>
|
||||
api.post<CustomsSection>('/v1/customs-sections', data),
|
||||
api.post<CustomsSection>('/v1/public/refrence_data/customs-sections', data),
|
||||
|
||||
/**
|
||||
* Actualiza una sección aduanera existente
|
||||
@@ -59,11 +59,11 @@ export const customsSectionsApi = {
|
||||
* @param data - Datos a actualizar
|
||||
*/
|
||||
update: (customs_code: string, data: UpdateCustomsSectionData) =>
|
||||
api.put<CustomsSection>(`/v1/customs-sections/${customs_code}`, data),
|
||||
api.put<CustomsSection>(`/v1/public/refrence_data/customs-sections/${customs_code}`, data),
|
||||
|
||||
/**
|
||||
* Elimina una sección aduanera
|
||||
* @param customs_code - Código de la sección aduanera a eliminar
|
||||
*/
|
||||
delete: (customs_code: string) => api.delete(`/v1/customs-sections/${customs_code}`)
|
||||
delete: (customs_code: string) => api.delete(`/v1/public/refrence_data/customs-sections/${customs_code}`)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user