<template>
    <UiDataTable
        :columns="columns"
        url="receptions"
        :items-per-page="2"
    />
</template>

<script setup lang="ts">
const columns = [
    {key: 'identificationNumber', label: 'Numero'},
    {key: 'receptionDate', label: 'Date de livraison'},
    {key: 'supplier', label: 'Fournisseur'},
    {key: 'address.fullAddress', label: 'Adresse'},
    {key: 'receptionType', label: 'Type'},
    {key: 'weights', label: 'Poids', format: formatWeights}
]
</script>

