diff --git a/frontend/src/lib/components/dashboard/export/manifest/manifest-driver-subform.svelte b/frontend/src/lib/components/dashboard/export/manifest/manifest-driver-subform.svelte index da92de92..d1f86444 100644 --- a/frontend/src/lib/components/dashboard/export/manifest/manifest-driver-subform.svelte +++ b/frontend/src/lib/components/dashboard/export/manifest/manifest-driver-subform.svelte @@ -26,6 +26,7 @@ X, Save } from 'lucide-svelte'; + import * as Dialog from '$lib/components/ui/dialog'; import { companyStore } from '$lib/stores/company.svelte'; import { manifestDriversApi, type ManifestDriver } from '$lib/api/dashboard/a76/manifest-drivers'; import { toast } from 'svelte-sonner'; @@ -200,278 +201,254 @@
-
- - - -
-
-
- -
-
- Tripulación - Personal activo + + + +
+
+
+ +
+
+ Tripulación + Personal activo +
+
+ +
+
+ +
+ + + + + + + + + + + {#if loading && drivers.length === 0} + + + + {:else if drivers.length === 0} + + + + {:else} + {#each drivers as driver, i} + + + + + + + {/each} + {/if} + +
NombreTipoUbicación
+ + Cargando registros... +
+ No hay tripulación registrada en este manifiesto. +
+ {driver.driver_name} + + + {typeLabels[driver.driver_type as keyof typeof typeLabels]?.label || + driver.driver_type} + + +
+ + {driver.city || ''}, {driver.country || ''} +
+
+
+ + +
+
+
+
+
+ + + + + + + + {editingIndex !== null ? 'Editar' : 'Agregar'} Miembro de Tripulación + + + Ingrese los detalles del personal para este manifiesto. + + + +
+ +
+ +
+ (showDriverDialog = true)} + /> + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ (showCountryDialog = true)} + /> +
- {#if !showForm} - - {/if}
- - -
- - +
+ + +
- - - - - - - - {#if loading && drivers.length === 0} - - - - {:else if drivers.length === 0} - - - - {:else} - {#each drivers as driver, i} - - - - - - - {/each} - {/if} - -
NombreTipoUbicación
- - Cargando registros... -
- No hay tripulación registrada en este manifiesto. -
- {driver.driver_name} - - - {typeLabels[driver.driver_type as keyof typeof typeLabels]?.label || - driver.driver_type} - - -
- - {driver.city || ''}, {driver.country || ''} -
-
-
- - -
-
+ + Conductor + + + + +
-
- - - - {#if showForm} -
- - -
- - {editingIndex !== null ? 'Editar' : 'Agregar'} Miembro - - Llene los datos requeridos -
- -
- -
- -
- - -
-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
- (showCountryDialog = true)} - /> - -
-
-
- -
- - - - - - -
-
- - - - -
- {/if} -
+ + + + + +
+
diff --git a/frontend/src/lib/components/dashboard/export/manifest/manifest-form.svelte b/frontend/src/lib/components/dashboard/export/manifest/manifest-form.svelte index d7d22a17..3bb3f9b4 100644 --- a/frontend/src/lib/components/dashboard/export/manifest/manifest-form.svelte +++ b/frontend/src/lib/components/dashboard/export/manifest/manifest-form.svelte @@ -7,6 +7,7 @@ import { Separator } from '$lib/components/ui/separator'; import { Textarea } from '$lib/components/ui/textarea'; import * as Tabs from '$lib/components/ui/tabs'; + import * as Select from '$lib/components/ui/select'; import { Switch } from '$lib/components/ui/switch'; import { Checkbox } from '$lib/components/ui/checkbox'; import { Badge } from '$lib/components/ui/badge'; @@ -29,7 +30,8 @@ DollarSign, FileSpreadsheet, Globe, - Users + Users, + Circle } from 'lucide-svelte'; import { manifestApi, type Manifest } from '$lib/api/dashboard/a76/manifests'; import { toast } from 'svelte-sonner'; @@ -138,7 +140,8 @@ transport_key: '', transport_mode: '', trailer_number: '', - status_description: '' + status_description: '', + vehicle_status: 'NUEVO' }); // Consolidated Categorized Lists (Merges Available + Selected) @@ -690,74 +693,70 @@
- - -
-
- -
- - -
-
-
- -
- - -
-
-
- -
-
- - (showTransporterModal = true)} - /> -
- -
-
-
- -
- - -
-
+ +
+
+ +
+ +
- - +
+
+ +
+ + +
+
+
+ +
+
+ + (showTransporterModal = true)} + /> +
+ +
+
+
+ +
+ + +
+
+
@@ -1032,133 +1031,176 @@ - +
+ +
+ + + + + + Atributos + + + +
+ + +
+
+
+ +
+ +

¿Riesgo?

+
+
+ +
+
+
- -
- - - - - - Atributos del Manifiesto - - - -
- - -
-
-
- -
- -

- ¿Contiene mercancía de riesgo? -

+ + + + + + Vehículo + + + +
+
+ +
+ (showVehicleModal = true)} + class="h-9 font-mono text-xs" + /> + +
+
+
+ +
+ (showTransportModeModal = true)} + class="h-9 font-mono text-xs" + /> + +
+
+
+ +
+ (showTrailerModal = true)} + class="h-9 font-mono text-xs" + /> + +
+
+ +
+ + (formData.vehicle_status = v)} + > + +
+ {#if formData.vehicle_status === 'NUEVO'} + + {:else if formData.vehicle_status === 'USADO'} + + {:else if formData.vehicle_status === 'CANCELADO'} + + {:else} + + {/if} + {formData.vehicle_status || 'Estado'} +
+
+ + +
+ + NUEVO +
+
+ +
+ + USADO +
+
+ +
+ + CANCELADO +
+
+
+
- -
- - + +
+ +