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:
2025-11-06 18:35:47 -06:00
parent 07dfe1edb1
commit cf18c8e07d
43 changed files with 1609 additions and 106 deletions

View File

@@ -33,7 +33,7 @@ export const load: PageServerLoad = async ({ cookies, fetch, url, parent }) => {
const baseUrl = apiUrl?.endsWith('/') ? apiUrl : `${apiUrl}/`;
const response = await fetch(
`${baseUrl}v1/code-pedimento-regimens?page=${page}&page_size=${pageSize}`,
`${baseUrl}v1/public/refrence_data/code-pedimento-regimens?page=${page}&page_size=${pageSize}`,
{
headers: {
'Authorization': `Bearer ${token}`,