refactor: refs #7010 added function to get item packaging type
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
0650380b7b
commit
0b76d0d556
|
@ -149,6 +149,15 @@ const setShippedColor = (date) => {
|
|||
if (difference == 0) return 'warning';
|
||||
if (difference < 0) return 'success';
|
||||
};
|
||||
|
||||
const getItemPackagingType = (row) => {
|
||||
const packagingType = row?.ticketSales
|
||||
.map((sale) => sale.item?.itemPackingTypeFk || '-')
|
||||
.filter((value) => value !== '-')
|
||||
.join(', ');
|
||||
|
||||
return dashIfEmpty(packagingType);
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -221,14 +230,7 @@ const setShippedColor = (date) => {
|
|||
</template>
|
||||
<template #column-itemPackingTypeFk="{ row }">
|
||||
<span>
|
||||
{{
|
||||
dashIfEmpty(
|
||||
row?.ticketSales
|
||||
.map((sale) => sale.item?.itemPackingTypeFk || '-')
|
||||
.filter((value) => value !== '-')
|
||||
.join(', ')
|
||||
)
|
||||
}}
|
||||
{{ getItemPackagingType(row) }}
|
||||
</span>
|
||||
</template>
|
||||
</VnTable>
|
||||
|
|
Loading…
Reference in New Issue