From 4b93c100b02b58aa61fd9e672bcec444f19dc5bf Mon Sep 17 00:00:00 2001 From: sroy Date: Thu, 26 Feb 2026 14:19:12 +0100 Subject: [PATCH] =?UTF-8?q?feat=20:=20affichage=20et=20modification=20exp?= =?UTF-8?q?=C3=A9dition=20et=20modification=20bouton=20valider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{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 | 4 +- frontend/pages/shipment/update/[[id]].vue | 633 ++++++++++++++++++ frontend/services/dto/shipment-data.ts | 6 + frontend/services/dto/weight-data.ts | 8 + 11 files changed, 662 insertions(+), 14 deletions(-) rename frontend/components/{reception => commun}/update-weight.vue (93%) create mode 100644 frontend/pages/shipment/update/[[id]].vue 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 +}