feat: refs #8388 add InvoiceInVehicle route and component

This commit is contained in:
Jorge Penadés 2025-03-18 13:21:50 +01:00
parent d698275ba2
commit ac8a203fc4
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<script setup>
import VnTable from 'src/components/VnTable/VnTable.vue';
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const columns = computed(() => [
{
name: 'vehicleFk',
label: t('vehicle.numberPlate'),
},
{
name: 'amount',
label: t('globals.amount'),
},
]);
</script>
<template>
<VnTable
data-key="VehicleInvoiceIns"
url="VehicleInvoiceIns"
:filter="{ where: { invoiceInFk: $route.params.id } }"
:columns
:right-search="false"
:is-editable="true"
save-url="VehicleInvoiceIns/crud"
/>
</template>