feat : admin fournisseurs creation et modif (WIP)

This commit is contained in:
2026-02-10 11:48:02 +01:00
parent 4e2fe556be
commit b1c12138f1
8 changed files with 248 additions and 158 deletions

View File

@@ -1,12 +1,15 @@
import type { AddressFormData } from '~/services/dto/address-data'
import type { AddressFormData } from "~/services/dto/address-data"
export type SupplierAddresses = AddressFormData[] | string[]
export interface SupplierData {
id: number
name: string
email?: string | null
phone?: string | null
addresses: AddressFormData[]
addresses: SupplierAddresses
}
export interface SupplierFormData {
name: string
email?: string
@@ -18,8 +21,5 @@ export type SupplierPayload = {
name: string
email?: string | null
phone?: string | null
street?: string | null
city?: string | null
postalCode?: string | null
country?: string | null
addresses: string[]
}