feat: refs #6321 lactTable icons

This commit is contained in:
Javier Segarra 2025-01-25 13:47:31 +01:00
parent 85a0e328e3
commit d9237c4a38
3 changed files with 46 additions and 19 deletions

View File

@ -88,28 +88,37 @@ const rowColor = (row) => {
// }; // };
const columns = computed(() => [ const columns = computed(() => [
{ {
label: '',
name: 'totalProblems',
align: 'left', align: 'left',
label: t('negative.detail.isBasket'), columnFilter: false,
name: 'isBasket', attrs: {
cardVisible: true, dense: true,
create: true,
component: 'checkbox',
attrs: ({ row }) => {
return {
'toggle-indeterminate': true,
};
}, },
columnClass: 'shrink',
},
{
align: 'left',
label: t('negative.detail.hasSubstitution'),
name: 'hasSubstitution',
cardVisible: true,
create: true,
component: 'checkbox',
columnClass: 'shrink',
}, },
// {
// align: 'left',
// label: t('negative.detail.isBasket'),
// name: 'isBasket',
// cardVisible: true,
// create: true,
// component: 'checkbox',
// attrs: ({ row }) => {
// return {
// 'toggle-indeterminate': true,
// };
// },
// columnClass: 'shrink',
// },
// {
// align: 'left',
// label: t('negative.detail.hasSubstitution'),
// name: 'hasSubstitution',
// cardVisible: true,
// create: true,
// component: 'checkbox',
// columnClass: 'shrink',
// },
{ {
name: 'status', name: 'status',
align: 'left', align: 'left',
@ -255,6 +264,22 @@ function onTicketLackFetched(data) {
:right-search="false" :right-search="false"
v-model:selected="selectedRows" v-model:selected="selectedRows"
> >
<template #column-totalProblems>
{{}}
<!-- <pre> {{ props }}</pre> -->
<!-- v-if="!props.row.isBasket" -->
<QIcon name="vn:basket" color="primary" size="sm">
<QTooltip>{{ t('negative.detail.isBasket') }}</QTooltip>
</QIcon>
<!-- v-if="!props.row.hasToIgnore" -->
<QIcon name="star" color="primary" size="sm">
<QTooltip>{{ t('negative.detail.hasToIgnore') }}</QTooltip>
</QIcon>
<!-- v-if="!props.row.hasSubstitution" -->
<QIcon name="change_circle" color="primary" size="sm">
<QTooltip>{{ t('negative.detail.hasSubstitution') }}</QTooltip>
</QIcon>
</template>
<template #column-alertLevelCode="props"> <template #column-alertLevelCode="props">
<VnSelect <VnSelect
:options="editableStates" :options="editableStates"

View File

@ -240,6 +240,7 @@ negative:
showFree: Show Free lines showFree: Show Free lines
isBasket: 'Basket' isBasket: 'Basket'
hasSubstitution: 'Has substitution' hasSubstitution: 'Has substitution'
hasToIgnore: VIP
modal: modal:
changeItem: changeItem:
title: Update item reference title: Update item reference

View File

@ -268,6 +268,7 @@ negative:
showFree: Solo estado libre showFree: Solo estado libre
isBasket: 'Cesta' isBasket: 'Cesta'
hasSubstitution: 'Tiene sustitución' hasSubstitution: 'Tiene sustitución'
hasToIgnore: VIP
modal: modal:
changeItem: changeItem:
title: Actualizar referencia artículo title: Actualizar referencia artículo