From 0bb849787190203ad6c91a133b9a5c335f4891f1 Mon Sep 17 00:00:00 2001 From: sroy Date: Wed, 25 Feb 2026 15:42:59 +0100 Subject: [PATCH] fix : trie du code et reorganisation composant parent enfant --- .idea/workspace.xml | 5 +- .../components/reception/update-bovin.vue | 241 ++---- .../reception/update-merchandise.vue | 390 ++++------ frontend/pages/reception/update/[[id]].vue | 703 +++++++++++------- frontend/services/dto/reception-data.ts | 7 + 5 files changed, 653 insertions(+), 693 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8ec73df..3b1ecea 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,7 +7,8 @@ - + + @@ -232,7 +233,7 @@ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", "RunOnceActivity.git.unshallow": "true", "RunOnceActivity.typescript.service.memoryLimit.init": "true", - "git-widget-placeholder": "fit/332-refonte-reception-terminee", + "git-widget-placeholder": "feat/332-refonte-reception-terminee", "last_opened_file_path": "//wsl.localhost/Ubuntu-24.04/home/kevin/Stage/Ferme/frontend/pages/shipment", "node.js.detected.package.eslint": "true", "node.js.detected.package.tslint": "true", diff --git a/frontend/components/reception/update-bovin.vue b/frontend/components/reception/update-bovin.vue index 6329f52..2176e9e 100644 --- a/frontend/components/reception/update-bovin.vue +++ b/frontend/components/reception/update-bovin.vue @@ -1,15 +1,15 @@ - diff --git a/frontend/components/reception/update-merchandise.vue b/frontend/components/reception/update-merchandise.vue index c0ca6e1..e866463 100644 --- a/frontend/components/reception/update-merchandise.vue +++ b/frontend/components/reception/update-merchandise.vue @@ -1,8 +1,7 @@ diff --git a/frontend/pages/reception/update/[[id]].vue b/frontend/pages/reception/update/[[id]].vue index ca89298..5f62632 100644 --- a/frontend/pages/reception/update/[[id]].vue +++ b/frontend/pages/reception/update/[[id]].vue @@ -173,17 +173,15 @@
@@ -201,62 +199,67 @@ diff --git a/frontend/services/dto/reception-data.ts b/frontend/services/dto/reception-data.ts index d5f50f3..d8cec88 100644 --- a/frontend/services/dto/reception-data.ts +++ b/frontend/services/dto/reception-data.ts @@ -41,6 +41,13 @@ export interface WeightEntryData { weighedAt: string | null } +export interface MerchandiseEntryData { + merchandiseTypeId: string + merchandiseDetail: string + selectedBuildingIds: string[] + selectedPelletBuildingIds: Record +} + export interface WeightFormData { id: number weight: number