From 2b64f024b6ae834b8d48d2b6e68410c830f90f19 Mon Sep 17 00:00:00 2001 From: sroy Date: Thu, 26 Feb 2026 14:01:39 +0000 Subject: [PATCH] =?UTF-8?q?[#327]=20=20Afficher=20modifier=20une=20exp?= =?UTF-8?q?=C3=A9dition=20termin=C3=A9e=20(!34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | Numéro du ticket | Titre du ticket | |------------------|-----------------| | #327 | Afficher modifier une expédition terminée | ## 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/34 Reviewed-by: Autin Co-authored-by: sroy Co-committed-by: sroy --- CHANGELOG.md | 1 + frontend/components/address.vue | 2 +- .../{reception => commun}/update-weight.vue | 4 +- .../components/shipment/shipment-form.vue | 12 +- frontend/pages/admin/bovin/[[id]].vue | 2 +- frontend/pages/admin/carrier/[[id]].vue | 1 - frontend/pages/admin/customer/[[id]].vue | 2 +- frontend/pages/admin/supplier/[[id]].vue | 2 +- frontend/pages/admin/user/[[id]].vue | 2 +- frontend/pages/reception/update/[[id]].vue | 5 +- frontend/pages/shipment/update/[[id]].vue | 639 ++++++++++++++++++ frontend/services/dto/shipment-data.ts | 6 + frontend/services/dto/weight-data.ts | 8 + 13 files changed, 670 insertions(+), 16 deletions(-) rename frontend/components/{reception => commun}/update-weight.vue (93%) create mode 100644 frontend/pages/shipment/update/[[id]].vue diff --git a/CHANGELOG.md b/CHANGELOG.md index bd0be1a..07c5efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ Ajouter dans le fichier .env du frontend * [#278] Plan du site * [#334] Correctifs * [#332] Refonte écran réception terminée +* [#327] afficher/modifier écran expédition terminée ### Changed diff --git a/frontend/components/address.vue b/frontend/components/address.vue index cd8abb6..cb6e64b 100644 --- a/frontend/components/address.vue +++ b/frontend/components/address.vue @@ -12,7 +12,7 @@ type="submit" :disabled="isLoading" > - + {{ props.address? "Valider" : "Ajouter" }} diff --git a/frontend/components/reception/update-weight.vue b/frontend/components/commun/update-weight.vue similarity index 93% rename from frontend/components/reception/update-weight.vue rename to frontend/components/commun/update-weight.vue index a37a9e3..c0abab9 100644 --- a/frontend/components/reception/update-weight.vue +++ b/frontend/components/commun/update-weight.vue @@ -13,7 +13,7 @@ /> @@ -31,7 +31,7 @@ diff --git a/frontend/services/dto/shipment-data.ts b/frontend/services/dto/shipment-data.ts index ad72819..fe36006 100644 --- a/frontend/services/dto/shipment-data.ts +++ b/frontend/services/dto/shipment-data.ts @@ -2,6 +2,9 @@ import type {CarrierData} from '~/services/dto/carrier-data' import type {TruckData} from '~/services/dto/truck-data' import type {CustomerData} from '~/services/dto/customer-data' import type {AddressData} from "~/services/dto/address-data"; +import type {UserData} from '~/services/dto/user-data' +import type {DriverData} from '~/services/dto/driver-data' +import type {VehicleData} from '~/services/dto/vehicle-data' export interface ShipmentTypeData { id: number @@ -20,6 +23,9 @@ export type ShipmentData = { carrier?: CarrierData | null truck?: TruckData | null customer?: CustomerData | null + user?: UserData | null + driver?: DriverData | null + vehicle?: VehicleData | null shipmentType?: ShipmentTypeData | null nbBovinSend?: number | null weights?: WeightShipmentEntryData[] | null diff --git a/frontend/services/dto/weight-data.ts b/frontend/services/dto/weight-data.ts index 2349a1d..293e01d 100644 --- a/frontend/services/dto/weight-data.ts +++ b/frontend/services/dto/weight-data.ts @@ -4,3 +4,11 @@ export interface WeightData { weighedAt: string | null type : string | null } + +export interface WeightEntryData { + id?: number + type: 'gross' | 'tare' + dsd: number | null + weight: number | null + weighedAt: string | null +}