From e8fd3c0a8f2bcb057c41396e211f099be62b7537 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 23 Oct 2024 14:58:03 +0200 Subject: [PATCH] fix: refs #6389 fix front, filters, itp --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Monitor/Ticket/MonitorTicketFilter.vue | 12 +++++ src/pages/Monitor/Ticket/MonitorTickets.vue | 48 ++++++++++++++++--- src/pages/Monitor/locale/en.yml | 1 + src/pages/Monitor/locale/es.yml | 1 + 6 files changed, 57 insertions(+), 7 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index fa0a14f45..8fd495e68 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -308,6 +308,7 @@ globals: email: Email SSN: SSN fi: FI + packing: ITP changePass: Change password deleteConfirmTitle: Delete selected elements errors: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 5dfe90e98..f777089a6 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -312,6 +312,7 @@ globals: email: Correo SSN: NSS fi: NIF + packing: ITP changePass: Cambiar contraseña deleteConfirmTitle: Eliminar los elementos seleccionados errors: diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index ae5dc7a56..f952850d2 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -222,6 +222,18 @@ const getLocale = (label) => { /> + + + + + [ align: 'left', format: (row) => row.practicalHour, columnFilter: false, + dense: true, }, { label: t('salesTicketsTable.preparation'), @@ -227,22 +233,32 @@ const columns = computed(() => [ label: t('salesTicketsTable.department'), name: 'department', align: 'left', - component: 'select', - attrs: { - url: 'Departments', - optionValue: 'name', - optionLabel: 'name', - }, columnFilter: { component: 'select', url: 'Departments', attrs: { + options: DepartmentOpts.value, optionValue: 'name', optionLabel: 'name', dense: true, }, }, }, + { + label: t('salesTicketsTable.packing'), + name: 'packing', + align: 'left', + columnFilter: { + component: 'select', + url: 'ItemPackingTypes', + attrs: { + options: ItemPackingTypeOpts.value, + 'option-value': 'code', + 'option-label': 'code', + dense: true, + }, + }, + }, { align: 'right', name: 'tableActions', @@ -349,6 +365,24 @@ const openTab = (id) => auto-load @on-fetch="(data) => (zoneOpts = data)" /> + +