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 'warning';
|
||||||
if (difference < 0) return 'success';
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -221,14 +230,7 @@ const setShippedColor = (date) => {
|
||||||
</template>
|
</template>
|
||||||
<template #column-itemPackingTypeFk="{ row }">
|
<template #column-itemPackingTypeFk="{ row }">
|
||||||
<span>
|
<span>
|
||||||
{{
|
{{ getItemPackagingType(row) }}
|
||||||
dashIfEmpty(
|
|
||||||
row?.ticketSales
|
|
||||||
.map((sale) => sale.item?.itemPackingTypeFk || '-')
|
|
||||||
.filter((value) => value !== '-')
|
|
||||||
.join(', ')
|
|
||||||
)
|
|
||||||
}}
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
|
|
Loading…
Reference in New Issue