From af065eb66e935c299fd26a9a924a2299d900fd21 Mon Sep 17 00:00:00 2001 From: provira Date: Tue, 6 May 2025 14:07:16 +0200 Subject: [PATCH] fix: fix Description & TicketId filters on CustomerConsumption --- .../Customer/Card/CustomerConsumption.vue | 33 ++++++++++--------- src/pages/Customer/locale/en.yml | 27 +++++++++++++++ src/pages/Customer/locale/es.yml | 27 +++++++++++++++ 3 files changed, 72 insertions(+), 15 deletions(-) diff --git a/src/pages/Customer/Card/CustomerConsumption.vue b/src/pages/Customer/Card/CustomerConsumption.vue index 640e37ed3..a968526e3 100644 --- a/src/pages/Customer/Card/CustomerConsumption.vue +++ b/src/pages/Customer/Card/CustomerConsumption.vue @@ -17,6 +17,7 @@ import TicketDescriptorProxy from 'src/pages/Ticket/Card/TicketDescriptorProxy.v import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import VnSelect from 'components/common/VnSelect.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; +import VnCheckbox from 'src/components/common/VnCheckbox.vue'; const arrayData = useArrayData('Client'); const { t } = useI18n(); @@ -50,7 +51,7 @@ const columns = computed(() => [ label: t('globals.ticket'), cardVisible: true, columnFilter: { - inWhere: true, + name: 'ticketId', }, }, { @@ -67,24 +68,19 @@ const columns = computed(() => [ label: t('globals.description'), columnClass: 'expand', columnFilter: { - inWhere: true, + name: 'description', + }, }, { - name: 'quantity', + name: 'quantity', label: t('globals.quantity'), cardVisible: true, - columnFilter: { - inWhere: true, - }, - }, - { - name: 'grouped', - label: t('Group by items'), - component: 'checkbox', - visible: false, - orderBy: false, + visible: true, + columnFilter: false + }, + ]); onBeforeMount(async () => { @@ -199,9 +195,9 @@ const updateDateParams = (value, params) => {
{{ row.subName }}
- + -