0
0
Fork 0

fix: TicketComponent Sales column

This commit is contained in:
Javier Segarra 2024-07-03 21:30:29 +02:00
parent 8baf5b1489
commit 2b0b470120
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const salesFilter = computed(() => ({
include: {
relation: 'componentType',
scope: {
fields: ['type', 'isBase'],
fields: ['type', 'isBase', 'name'],
},
},
},
@ -169,7 +169,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<template>
<FetchData
ref="salesRef"
url="sales"
url="Sales"
:filter="salesFilter"
@on-fetch="(data) => (components = data)"
auto-load
@ -323,7 +323,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<QTd>
<div class="column">
<span v-for="(saleComponent, index) in row.components" :key="index">
{{ saleComponent.component?.componentType?.type }}
{{ saleComponent.component?.componentType?.name }}
</span>
</div>
</QTd>