feat : creation du composant datatable (WIP)
This commit is contained in:
@@ -17,10 +17,10 @@ import {formatBovinShipments, formatWeights} from "~/utils/datatable-formatters"
|
||||
|
||||
const router = useRouter()
|
||||
const columns = [
|
||||
{key: 'identificationNumber', label: 'Numero'},
|
||||
{key: 'shipmentDate', label: 'Date de livraison'},
|
||||
{key: 'customer', label: 'Client'},
|
||||
{key: 'address.fullAddress', label: 'Adresse'},
|
||||
{key: 'identificationNumber', label: 'Numero',isSearchable:true},
|
||||
{key: 'shipmentDate', label: 'Date de livraison',isSearchable:true, type:'date'},
|
||||
{key: 'customer.name', label: 'Client',isSearchable:true},
|
||||
{key: 'address.fullAddress', label: 'Adresse',isSearchable:true},
|
||||
{key: 'bovinShipments', label: 'Type', format:formatBovinShipments},
|
||||
{key: 'weights', label: 'Poids', format: formatWeights}
|
||||
]
|
||||
|
||||
@@ -19,11 +19,11 @@ import {formatBovinShipments} from "~/utils/datatable-formatters";
|
||||
const router = useRouter()
|
||||
|
||||
const columns = [
|
||||
{key: 'customer', label: 'Client'},
|
||||
{key: 'address.fullAddress', label: 'Adresse'},
|
||||
{key: 'bovinShipments', label: 'Type d\'expéditions', format:formatBovinShipments},
|
||||
{key: 'carrier', label: 'Transporteur'},
|
||||
{key: 'Plate', label: 'Immatriculation'},
|
||||
{key: 'customer.name', label: 'Client', isSearchable:true},
|
||||
{key: 'address.fullAddress', label: 'Adresse', isSearchable:true},
|
||||
{key: 'carrier.name', label: 'Transporteur', isSearchable:true},
|
||||
{key: 'bovinShipments', label: 'Type', format:formatBovinShipments},
|
||||
{key: 'licencePlate', label: 'Immatriculation', isSearchable:true},
|
||||
]
|
||||
|
||||
type ReceptionRow = {
|
||||
|
||||
Reference in New Issue
Block a user