From 335d2ed207980b2a1673ebf05a0886a4d4cc09f1 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 23 Jun 2026 15:58:31 +0200 Subject: [PATCH] =?UTF-8?q?fix(front)=20:=20poids=20en=20champ=20texte=20c?= =?UTF-8?q?hiffr=C3=A9=20dans=20la=20pes=C3=A9e=20manuelle=20+=20retrait?= =?UTF-8?q?=20num=C3=A9ro/site=20sur=20la=20modification=20(ERP-189/190)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modale « Pesée manuelle » : champ Poids passé en MalioInputText verrouillé sur les chiffres (NUMERIC_MASK), comme le formulaire. - Masques de pesée factorisés dans utils/weighingMasks (NUMERIC / PLATE / FREE_PLATE). - Écran Modification : suppression des champs lecture seule « Numéro » et « Site » en tête (le numéro reste rappelé dans le titre de l'écran). --- frontend/i18n/locales/fr.json | 2 - .../logistique/components/WeighingBlock.vue | 29 +------------- .../__tests__/weighingTicketEdit.spec.ts | 6 +-- .../pages/weighing-tickets/[id]/edit.vue | 31 ++++----------- .../logistique/pages/weighing-tickets/new.vue | 8 ++-- .../modules/logistique/utils/weighingMasks.ts | 39 +++++++++++++++++++ 6 files changed, 56 insertions(+), 59 deletions(-) create mode 100644 frontend/modules/logistique/utils/weighingMasks.ts diff --git a/frontend/i18n/locales/fr.json b/frontend/i18n/locales/fr.json index 94ab9a9..3f418be 100644 --- a/frontend/i18n/locales/fr.json +++ b/frontend/i18n/locales/fr.json @@ -710,8 +710,6 @@ "addTitle": "Ajouter un ticket de pesée", "emptyBlock": "Poids à vide", "fullBlock": "Poids à plein", - "number": "Numéro", - "site": "Site", "date": "Date", "weight": "Poids (Kg)", "dsd": "DSD", diff --git a/frontend/modules/logistique/components/WeighingBlock.vue b/frontend/modules/logistique/components/WeighingBlock.vue index 890cb95..1c93628 100644 --- a/frontend/modules/logistique/components/WeighingBlock.vue +++ b/frontend/modules/logistique/components/WeighingBlock.vue @@ -101,6 +101,7 @@