forked from verdnatura/salix-front
refactor: refs #7010 modified customer summary table
This commit is contained in:
parent
56af4d3736
commit
6d5a8cba6f
|
@ -6,7 +6,7 @@ import { useRoute, useRouter } from 'vue-router';
|
|||
import { date } from 'quasar';
|
||||
import { toDateFormat } from 'src/filters/date.js';
|
||||
|
||||
import { toCurrency } from 'src/filters';
|
||||
import { dashIfEmpty, toCurrency } from 'src/filters';
|
||||
|
||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||
import TicketSummary from 'src/pages/Ticket/Card/TicketSummary.vue';
|
||||
|
@ -101,8 +101,6 @@ const columns = computed(() => [
|
|||
align: 'left',
|
||||
name: 'itemPackingTypeFk',
|
||||
label: t('ticketSale.packaging'),
|
||||
format: (row, dashIfEmpty) =>
|
||||
dashIfEmpty(row?.ticketSales[0]?.item.itemPackingTypeFk),
|
||||
},
|
||||
{
|
||||
align: 'right',
|
||||
|
@ -221,6 +219,18 @@ const setShippedColor = (date) => {
|
|||
</QBadge>
|
||||
<span v-else> {{ toDateFormat(row.shipped) }}</span>
|
||||
</template>
|
||||
<template #column-itemPackingTypeFk="{ row }">
|
||||
<span>
|
||||
{{
|
||||
dashIfEmpty(
|
||||
row?.ticketSales
|
||||
.map((sale) => sale.item?.itemPackingTypeFk || '-')
|
||||
.filter((value) => value !== '-')
|
||||
.join(', ')
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
</template>
|
||||
</VnTable>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue