From 9741d586d72357d690c928d87c37b19904498327 Mon Sep 17 00:00:00 2001 From: Kevin_Ramirez Date: Tue, 30 Dec 2025 17:54:04 -0600 Subject: [PATCH] Se integro la edicion y creacion de companias y se esta trabajando en DODA --- .../company/data-table-actions.svelte | 9 +- .../doda/data-table-actions.svelte | 3 +- .../company_information/+page.svelte | 2 +- .../edit/[[id]]/+page.svelte | 294 ++++++++++++++++++ .../company_information/new/+page.svelte | 247 --------------- .../general_catalogs/doda/+page.svelte | 2 +- .../doda/edit/[[id]]/+page.svelte | 243 +++++++++++++++ .../general_catalogs/doda/new/+page.svelte | 277 ----------------- 8 files changed, 543 insertions(+), 534 deletions(-) create mode 100644 frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte delete mode 100644 frontend/src/routes/dashboard/general_catalogs/company_information/new/+page.svelte create mode 100644 frontend/src/routes/dashboard/general_catalogs/doda/edit/[[id]]/+page.svelte delete mode 100644 frontend/src/routes/dashboard/general_catalogs/doda/new/+page.svelte diff --git a/frontend/src/lib/components/dashboard/general_catalogs/company/data-table-actions.svelte b/frontend/src/lib/components/dashboard/general_catalogs/company/data-table-actions.svelte index 0081f750..7201a93b 100644 --- a/frontend/src/lib/components/dashboard/general_catalogs/company/data-table-actions.svelte +++ b/frontend/src/lib/components/dashboard/general_catalogs/company/data-table-actions.svelte @@ -4,6 +4,7 @@ import { deleteCompany, type Company } from "$lib/api/dashboard/a76/general_catalogs/company"; import { EllipsisVertical, Pencil, LoaderCircle, Trash2 } from 'lucide-svelte'; import CreateEditDialog from "./create-edit-dialog.svelte"; + import { goto } from "$app/navigation"; let { item, @@ -59,7 +60,7 @@ Acciones - dialogOpen = true}> + goto(`/dashboard/general_catalogs/company_information/edit/${item.id}`)}> Editar @@ -74,9 +75,3 @@ - - diff --git a/frontend/src/lib/components/dashboard/general_catalogs/doda/data-table-actions.svelte b/frontend/src/lib/components/dashboard/general_catalogs/doda/data-table-actions.svelte index 5c0e2a53..f0f78a5d 100644 --- a/frontend/src/lib/components/dashboard/general_catalogs/doda/data-table-actions.svelte +++ b/frontend/src/lib/components/dashboard/general_catalogs/doda/data-table-actions.svelte @@ -6,6 +6,7 @@ import { deleteDoda } from '$lib/api/dashboard/a76/general_catalogs/doda'; import { companyStore } from '$lib/stores/company.svelte'; import CreateEditDialog from './create-edit-dialog.svelte'; + import { goto } from '$app/navigation'; let { item, @@ -60,7 +61,7 @@ Acciones - + goto(`/dashboard/general_catalogs/doda/edit/${item.id}`)}> Editar diff --git a/frontend/src/routes/dashboard/general_catalogs/company_information/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/company_information/+page.svelte index eb45884d..62f450f9 100644 --- a/frontend/src/routes/dashboard/general_catalogs/company_information/+page.svelte +++ b/frontend/src/routes/dashboard/general_catalogs/company_information/+page.svelte @@ -49,7 +49,7 @@

- diff --git a/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte new file mode 100644 index 00000000..36d0cfa7 --- /dev/null +++ b/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte @@ -0,0 +1,294 @@ + + +
+
+ +
+

{title}

+

Configuración legal y operativa de la entidad.

+
+
+ + {#if error} +
+ ⚠️ {error} +
+ {/if} + +
{ e.preventDefault(); handleSubmit(); }} class="space-y-6"> + + + +
+ +
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + General + Programas + Responsable + Config + +
+
+
+ +
+
+ + +
+
+
+
\ No newline at end of file diff --git a/frontend/src/routes/dashboard/general_catalogs/company_information/new/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/company_information/new/+page.svelte deleted file mode 100644 index 2ff93ec1..00000000 --- a/frontend/src/routes/dashboard/general_catalogs/company_information/new/+page.svelte +++ /dev/null @@ -1,247 +0,0 @@ - - -
-
- -
-

Nueva Empresa

-

Crea la información de la empresa.

-
-
- - {#if error} -
- ⚠️ {error} -
- {/if} - -
- - - - -
- - -
- -
-
- - -
-
- - -
-
- -
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
- -
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
- - - - General - Programas - Responsable - Config - - - - - -
-
- - -
-
- -
diff --git a/frontend/src/routes/dashboard/general_catalogs/doda/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/doda/+page.svelte index 525c6b3c..54fc080e 100644 --- a/frontend/src/routes/dashboard/general_catalogs/doda/+page.svelte +++ b/frontend/src/routes/dashboard/general_catalogs/doda/+page.svelte @@ -44,7 +44,7 @@

- diff --git a/frontend/src/routes/dashboard/general_catalogs/doda/edit/[[id]]/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/doda/edit/[[id]]/+page.svelte new file mode 100644 index 00000000..b81fc761 --- /dev/null +++ b/frontend/src/routes/dashboard/general_catalogs/doda/edit/[[id]]/+page.svelte @@ -0,0 +1,243 @@ + + +
+
+ +
+

{title}

+

Captura la información técnica del DODA.

+
+
+ + {#if error} +
+ ⚠️ {error} +
+ {/if} + +
{ e.preventDefault(); handleSubmit(); }} class="space-y-6"> + + + +
+ +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+ + +
+
+ +