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

View File

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