From 257b93e6911402648ea2af558a6c9bee3350c24a Mon Sep 17 00:00:00 2001 From: sroy Date: Fri, 27 Feb 2026 13:09:19 +0000 Subject: [PATCH] [#353] front de la page admin client (!38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | Numéro du ticket | Titre du ticket | |------------------|-----------------| | [#353] | front de la page admin client | ## Description de la PR ## Modification du .env ## Check list - [x] Pas de régression - [ ] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié Reviewed-on: https://gitea.malio.fr/MALIO-DEV/Ferme/pulls/38 Reviewed-by: Autin Co-authored-by: sroy Co-committed-by: sroy --- CHANGELOG.md | 3 +- frontend/pages/admin/carrier/[[id]].vue | 2 +- frontend/pages/admin/customer/[[id]].vue | 81 ++++++++++--------- frontend/pages/admin/customer/address.vue | 11 +-- .../pages/admin/customer/customer-list.vue | 34 ++++---- frontend/pages/admin/supplier/[[id]].vue | 4 +- frontend/pages/admin/supplier/address.vue | 5 +- frontend/pages/admin/user/[[id]].vue | 2 +- 8 files changed, 72 insertions(+), 70 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 571a195..fd65085 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,8 +55,9 @@ Ajouter dans le fichier .env du frontend * [#332] Refonte écran réception terminée * [#327] afficher/modifier écran expédition terminée * [#352] modification front admin fournisseur -* [#355] afficher/modifier écran expédition terminée +* [#355] modification front admin transporteur * [#356] front page admin bovin +* [#353] modification front admin client ### Changed ### Fixed diff --git a/frontend/pages/admin/carrier/[[id]].vue b/frontend/pages/admin/carrier/[[id]].vue index a3978cc..ff27650 100644 --- a/frontend/pages/admin/carrier/[[id]].vue +++ b/frontend/pages/admin/carrier/[[id]].vue @@ -11,7 +11,7 @@ />

- {{ route.params.id ? 'Modifications du transporteur' : 'Ajout d\'un transporteur' }} + {{ route.params.id ? 'Modification du transporteur' : 'Ajout d\'un transporteur' }}

diff --git a/frontend/pages/admin/customer/[[id]].vue b/frontend/pages/admin/customer/[[id]].vue index 840d655..f51e994 100644 --- a/frontend/pages/admin/customer/[[id]].vue +++ b/frontend/pages/admin/customer/[[id]].vue @@ -1,12 +1,22 @@ +
+ + + Ajouter + +
diff --git a/frontend/pages/admin/customer/address.vue b/frontend/pages/admin/customer/address.vue index 7c5859f..f581603 100644 --- a/frontend/pages/admin/customer/address.vue +++ b/frontend/pages/admin/customer/address.vue @@ -16,13 +16,10 @@ const addressId = computed(() => (route.query.addressId !== undefined ? Number(r const address = ref(null) const validate = async (payload: AddressPayload) => { - try { - if (addressId.value !== null) { - await updateAddress(addressId.value, payload) - } else { - await addAddress(payload) - } - } finally { + if (addressId.value !== null) { + await updateAddress(addressId.value, payload) + } else { + await addAddress(payload) await router.push("/admin/customer/" + customerId.value) } } diff --git a/frontend/pages/admin/customer/customer-list.vue b/frontend/pages/admin/customer/customer-list.vue index 461c97f..8805659 100644 --- a/frontend/pages/admin/customer/customer-list.vue +++ b/frontend/pages/admin/customer/customer-list.vue @@ -1,21 +1,12 @@