9ca0a7511b
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | #318 | Affichage d'une reception 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/19 Reviewed-by: Autin <tristan@yuno.malio.fr> Co-authored-by: sroy <sebastien@yuno.malio.fr> Co-committed-by: sroy <sebastien@yuno.malio.fr>
75 lines
2.4 KiB
TypeScript
75 lines
2.4 KiB
TypeScript
import type { ReceptionTypeData } from '~/services/dto/reception-type-data'
|
|
import type { MerchandiseTypeData } from '~/services/dto/merchandise-type-data'
|
|
import type { BuildingData } from '~/services/dto/building-data'
|
|
import type { ReceptionPelletBuildingData } from '~/services/dto/reception-pellet-building-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'
|
|
import type {BovineTypeData} from "~/services/dto/bovine-type-data";
|
|
|
|
export interface ReceptionData {
|
|
id: number
|
|
identificationNumber?: string | null
|
|
licensePlate: string | null
|
|
weights?: WeightEntryData[] | null
|
|
receptionDate: string
|
|
currentStep: number
|
|
isValid: boolean
|
|
receptionType?: ReceptionTypeData | null
|
|
merchandiseType?: MerchandiseTypeData | null
|
|
merchandiseDetail?: string | null
|
|
bovineDetail?: string | null
|
|
buildings?: BuildingData[] | null
|
|
bovinesTypes?: BovineTypeData[] | null
|
|
pelletBuildings?: ReceptionPelletBuildingData[] | null
|
|
user?: UserData | null
|
|
supplier?: SupplierData | null
|
|
address?: AddressData | null
|
|
truck?: TruckData | null
|
|
carrier?: CarrierData | null
|
|
driver?: DriverData | null
|
|
}
|
|
|
|
export interface WeightEntryData {
|
|
id?: number
|
|
type: 'gross' | 'tare'
|
|
dsd: number | null
|
|
weight: number | null
|
|
weighedAt: string | null
|
|
}
|
|
|
|
export type ReceptionPayload = {
|
|
licensePlate?: string | null
|
|
receptionDate?: string
|
|
currentStep?: number
|
|
isValid?: boolean
|
|
receptionType?: string | null
|
|
merchandiseType?: string | null
|
|
merchandiseDetail?: string | null
|
|
bovineDetail?: string | null
|
|
buildings?: string[] | null
|
|
bovinesTypes?: string[] | null
|
|
user?: string | null
|
|
supplier?: string | null
|
|
address?: string | null
|
|
truck?: string | null
|
|
carrier?: string | null
|
|
driver?: string | null
|
|
}
|
|
|
|
export type ReceptionFormData = {
|
|
licensePlate: string
|
|
receptionDate: string
|
|
receptionTypeId: string
|
|
userId: string
|
|
supplierId: string
|
|
addressId: string
|
|
truckId: string
|
|
carrierId: string
|
|
driverId: string
|
|
vehicleId: string
|
|
}
|