0
0
Fork 0

refactor: refs #7553 changed fields in ticket component & ticket filter

This commit is contained in:
Jon Elias 2024-09-09 08:10:05 +02:00
parent 0e5607d685
commit 4630496361
2 changed files with 17 additions and 7 deletions

View File

@ -110,6 +110,16 @@ const columns = computed(() => [
align: 'left',
format: (row) => dashIfEmpty(row.serie),
},
{
label: t('ticketComponents.components'),
name: 'components',
align: 'left',
},
{
label: t('ticketComponents.import'),
name: 'import',
align: 'left',
},
{
label: t('ticketComponents.total'),
name: 'total',
@ -311,28 +321,28 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</span>
</div>
</template>
<!-- <template #column-components="{ row }">
<template #column-components="{ row }">
<div class="column">
<span v-for="(saleComponent, index) in row.components" :key="index">
{{ saleComponent.component?.name }}
</span>
</div>
</template> -->
<!-- <template #column-import="{ row }">
</template>
<template #column-import="{ row }">
<div class="column text-left">
<span v-for="(saleComponent, index) in row.components" :key="index">
{{ toCurrency(saleComponent.value, 'EUR', 3) }}
</span>
</div>
</template> -->
</template>
<template #column-total="{ row }">
<div class="column">
<span v-for="(saleComponent, index) in row.components" :key="index">
{{ toCurrency(saleComponent.value * row.quantity, 'EUR', 3) }}
<QTooltip>
<!-- <QTooltip>
{{ saleComponent.component?.name }}:
{{ toCurrency(saleComponent.value, 'EUR', 3) }}
</QTooltip>
</QTooltip> -->
</span>
</div>
</template>

View File

@ -118,7 +118,7 @@ const warehouses = ref([]);
<QItem>
<QItemSection>
<VnInput
v-model="params.scopedDays"
v-model="params.scopeDays"
:label="t('Days onward')"
is-outlined
/>