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 +}