diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2e31409..b3e2025 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,15 +6,10 @@ - - - - - - - - + + + @@ -279,7 +274,7 @@ - + @@ -585,7 +580,15 @@ 1769676223697 - + + + 1769700808988 + + + + 1769700808988 + + @@ -635,7 +638,6 @@ - @@ -660,7 +662,8 @@ - + + diff --git a/frontend/components/reception/reception-form.vue b/frontend/components/reception/reception-form.vue index ab2088f..a07a8f8 100644 --- a/frontend/components/reception/reception-form.vue +++ b/frontend/components/reception/reception-form.vue @@ -3,181 +3,96 @@ Réception - - Nom de l'utilisateur - - Sélectionner - - {{ user.username }} - - - + - - Date de réception - - + - - Type de réception - - Sélectionner - - {{ type.label }} - - - + - - Fournisseur - - Sélectionner - - {{ supplier.name }} - - - + - - Adresse - - Sélectionner - - {{ address.fullAddress }} - - - + - - Camion - - Sélectionner - - {{ truck.name }} - - - + - - Transporteur - - Sélectionner - - {{ carrier.name }} - - - + - - Nom du chauffeur si LIOT - - Sélectionner - - {{ driver.name }} - - - + - - Immatriculation - - Sélectionner - - {{ vehicle.plate }} - - - + diff --git a/frontend/components/ui/UiDateInput.vue b/frontend/components/ui/UiDateInput.vue new file mode 100644 index 0000000..9bc95c6 --- /dev/null +++ b/frontend/components/ui/UiDateInput.vue @@ -0,0 +1,62 @@ + + + + {{ label }} + + + + + + diff --git a/frontend/components/ui/UiSelect.vue b/frontend/components/ui/UiSelect.vue new file mode 100644 index 0000000..ca57336 --- /dev/null +++ b/frontend/components/ui/UiSelect.vue @@ -0,0 +1,85 @@ + + + + {{ label }} + + + + {{ placeholderText }} + + + {{ option.label }} + + + + + + diff --git a/frontend/components/ui/UiTextInput.vue b/frontend/components/ui/UiTextInput.vue new file mode 100644 index 0000000..faa1514 --- /dev/null +++ b/frontend/components/ui/UiTextInput.vue @@ -0,0 +1,68 @@ + + + + {{ label }} + + + + + + diff --git a/frontend/components/ui/license-plate-input.vue b/frontend/components/ui/license-plate-input.vue index 96bad53..479212a 100644 --- a/frontend/components/ui/license-plate-input.vue +++ b/frontend/components/ui/license-plate-input.vue @@ -12,16 +12,15 @@ class="border-b border-black flex-1 min-w-0 text-xl uppercase h-[30px]" @input="handleInput" /> - - - Autoriser un format libre - + @@ -80,13 +79,7 @@ const handleInput = (event: Event) => { emit('update:modelValue', target.value) } -const toggleAllowAny = (event: Event) => { - const target = event.target as HTMLInputElement | null - if (!target) { - return - } - - const nextValue = target.checked +const handleAllowAnyChange = (nextValue: boolean) => { emit('update:allowAny', nextValue) if (!nextValue) { emit('update:modelValue', props.modelValue)