From 955f9a436f0f5ef772b7be14624a4113a66d4312 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 2 Jun 2026 18:01:18 +0200 Subject: [PATCH] refactor(front) : aligne l'ecran ajouter client sur la maquette (ERP-63) - Layout maquette : en-tete avec retour, grille 3 colonnes (gap-x-[80px]), cartes ombrees pour les onglets, boutons Valider centres, libelles ajustes. - Telephones du formulaire principal en tableau (1 par defaut, + revele le 2e). - Information : Description en row-span-2 (alignement corrige via pt-1), Nombre de salaries en MalioInputText masque chiffres. - Adresse : carte ombree, suppression en absolute, sites en cases a cocher inline, pays France/Espagne, exclusivite Prospect appliquee au toggle. - Onglets : icones par onglet (TAB_ICONS) ; Statistiques / Rapports / Echanges passent en edit-only (absents a la creation, option includeEditOnlyTabs pour la modification). --- frontend/i18n/locales/fr.json | 17 +- .../components/ClientAddressBlock.vue | 276 ++++++------ .../modules/commercial/pages/clients/new.vue | 397 ++++++++++-------- .../utils/__tests__/clientFormRules.spec.ts | 12 +- .../commercial/utils/clientFormRules.ts | 27 +- 5 files changed, 398 insertions(+), 331 deletions(-) diff --git a/frontend/i18n/locales/fr.json b/frontend/i18n/locales/fr.json index a01ee69..c085ff4 100644 --- a/frontend/i18n/locales/fr.json +++ b/frontend/i18n/locales/fr.json @@ -102,19 +102,20 @@ }, "form": { "title": "Ajouter un client", + "back": "Précédent", "submit": "Valider", "duplicateCompany": "Un client portant ce nom de société existe déjà.", "main": { - "companyName": "Nom de l'entreprise", - "firstName": "Prénom", - "lastName": "Nom", + "companyName": "Nom du client (Entreprise)", + "firstName": "Prénom du contact principal", + "lastName": "Nom du contact principal", "email": "Email", "phonePrimary": "Téléphone", "phoneSecondary": "Téléphone (2)", "addPhone": "Ajouter un numéro", - "categories": "Catégories", - "relation": "Relation", - "relationNone": "Aucune", + "categories": "Catégorie", + "relation": "Distributeur / Courtier", + "relationNone": "Aucun", "relationDistributor": "Distributeur", "relationBroker": "Courtier", "distributorName": "Nom du distributeur", @@ -123,10 +124,10 @@ }, "information": { "description": "Description", - "competitors": "Concurrents", + "competitors": "Concurrent", "foundedAt": "Date de création", "employeesCount": "Nombre de salariés", - "revenueAmount": "Chiffre d'affaires", + "revenueAmount": "CA", "profitAmount": "Résultat", "directorName": "Dirigeant" }, diff --git a/frontend/modules/commercial/components/ClientAddressBlock.vue b/frontend/modules/commercial/components/ClientAddressBlock.vue index 5cc1ce2..22d3591 100644 --- a/frontend/modules/commercial/components/ClientAddressBlock.vue +++ b/frontend/modules/commercial/components/ClientAddressBlock.vue @@ -1,153 +1,150 @@