feat : finalisation de l'étape 1 "Réception" (formulaire)

This commit is contained in:
2026-01-27 16:59:36 +01:00
parent 9ae073e69e
commit f901d52324
46 changed files with 1977 additions and 88 deletions

View File

@@ -0,0 +1,9 @@
export interface AddressData {
id: number
label: string
street: string
postalCode: string
city: string
countryCode: string
fullAddress?: string
}

View File

@@ -0,0 +1,5 @@
export interface CarrierData {
id: number
name: string
code: string
}

View File

@@ -0,0 +1,7 @@
import type { CarrierData } from '~/services/dto/carrier-data'
export interface DriverData {
id: number
name: string
carrier?: CarrierData | null
}

View File

@@ -1,3 +1,11 @@
import type { ReceptionTypeData } from '~/services/dto/reception-type-data'
import type { UserData } from '~/services/dto/user-data'
import type { SupplierData } from '~/services/dto/supplier-data'
import type { AddressData } from '~/services/dto/address-data'
import type { TruckData } from '~/services/dto/truck-data'
import type { CarrierData } from '~/services/dto/carrier-data'
import type { DriverData } from '~/services/dto/driver-data'
export interface ReceptionData {
id: number
licensePlate: string | null
@@ -5,6 +13,13 @@ export interface ReceptionData {
receptionDate: string
currentStep: number
isValid: boolean
receptionType?: ReceptionTypeData | null
user?: UserData | null
supplier?: SupplierData | null
address?: AddressData | null
truck?: TruckData | null
carrier?: CarrierData | null
driver?: DriverData | null
}
export interface WeightEntryData {
@@ -14,3 +29,17 @@ export interface WeightEntryData {
weight: number | null
weighedAt: string | null
}
export type ReceptionPayload = {
licensePlate?: string | null
receptionDate?: string
currentStep?: number
isValid?: boolean
receptionType?: string | null
user?: string | null
supplier?: string | null
address?: string | null
truck?: string | null
carrier?: string | null
driver?: string | null
}

View File

@@ -0,0 +1,5 @@
export interface ReceptionTypeData {
id: number
label: string
code: string
}

View File

@@ -0,0 +1,7 @@
import type { AddressData } from '~/services/dto/address-data'
export interface SupplierData {
id: number
name: string
addresses?: AddressData[] | null
}

View File

@@ -0,0 +1,4 @@
export interface TruckData {
id: number
name: string
}

View File

@@ -1,3 +1,4 @@
export interface UserData {
id: number
username: string
}

View File

@@ -0,0 +1,9 @@
import type { CarrierData } from '~/services/dto/carrier-data'
import type { TruckData } from '~/services/dto/truck-data'
export interface VehicleData {
id: number
plate: string
carrier?: CarrierData | null
truck?: TruckData | null
}