From 1ff15da8ca4ec1b5e39b2fb1c6cabe016d8eac5f Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 16 Sep 2024 16:33:09 +0200 Subject: [PATCH 01/32] fix: refs #7323 workerList --- src/i18n/locale/en.yml | 5 +++ src/i18n/locale/es.yml | 5 +++ src/pages/Worker/WorkerFilter.vue | 30 ++++++++++------- src/pages/Worker/WorkerList.vue | 53 ++++++++++++++++++++++++++++--- src/pages/Worker/locale/en.yml | 5 +++ src/pages/Worker/locale/es.yml | 5 +++ 6 files changed, 86 insertions(+), 17 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index f99244d42..3b1cb20fa 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -286,6 +286,7 @@ globals: myAccount: My account noOne: No one params: + id: ID clientFk: Client id salesPersonFk: Sales person warehouseFk: Warehouse @@ -293,6 +294,10 @@ globals: from: From To: To stateFk: State + departmentFk: Department + email: Email + SSN: SSN + fi: FI errors: statusUnauthorized: Access denied statusInternalServerError: An internal server error has ocurred diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 360627fda..31010dfb0 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -290,6 +290,7 @@ globals: myAccount: Mi cuenta noOne: Nadie params: + id: Id clientFk: Id cliente salesPersonFk: Comercial warehouseFk: Almacén @@ -297,6 +298,10 @@ globals: from: Desde To: Hasta stateFk: Estado + departmentFk: Departamento + email: Correo + SSN: NSS + fi: NIF errors: statusUnauthorized: Acceso denegado statusInternalServerError: Ha ocurrido un error interno del servidor diff --git a/src/pages/Worker/WorkerFilter.vue b/src/pages/Worker/WorkerFilter.vue index 765241341..61120f448 100644 --- a/src/pages/Worker/WorkerFilter.vue +++ b/src/pages/Worker/WorkerFilter.vue @@ -7,7 +7,7 @@ import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; -const { t } = useI18n(); +const { t, te } = useI18n(); const props = defineProps({ dataKey: { type: String, @@ -16,6 +16,11 @@ const props = defineProps({ }); const departments = ref(); + +const getLocale = (label) => { + const globalLocale = `globals.params.${label}`; + return te(globalLocale) ? t(globalLocale) : t(`params.${label}`); +}; diff --git a/src/pages/Worker/locale/en.yml b/src/pages/Worker/locale/en.yml index 96df37919..96764ffd1 100644 --- a/src/pages/Worker/locale/en.yml +++ b/src/pages/Worker/locale/en.yml @@ -4,3 +4,4 @@ tableColumns: name: Name department: Department email: Email +queue: Queue diff --git a/src/pages/Worker/locale/es.yml b/src/pages/Worker/locale/es.yml index 41812345f..cf6bc3afe 100644 --- a/src/pages/Worker/locale/es.yml +++ b/src/pages/Worker/locale/es.yml @@ -9,3 +9,4 @@ tableColumns: name: Nombre department: Departamento email: Email +queue: Cola From b54d358617b3cfcd1f2e6c47c05696820af6ade4 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 25 Sep 2024 09:14:35 +0200 Subject: [PATCH 07/32] fix: refs #7207 use right locale --- src/pages/InvoiceIn/InvoiceInFilter.vue | 2 +- src/pages/InvoiceIn/locale/es.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/InvoiceIn/InvoiceInFilter.vue b/src/pages/InvoiceIn/InvoiceInFilter.vue index bf4e023a9..b19e047fa 100644 --- a/src/pages/InvoiceIn/InvoiceInFilter.vue +++ b/src/pages/InvoiceIn/InvoiceInFilter.vue @@ -170,7 +170,7 @@ es: awb: AWB amount: Importe issued: Emitida - isBooked: Conciliada + isBooked: Contabilizada account: Cuenta contable created: Creada dued: Vencida diff --git a/src/pages/InvoiceIn/locale/es.yml b/src/pages/InvoiceIn/locale/es.yml index 944708364..2d3b137f4 100644 --- a/src/pages/InvoiceIn/locale/es.yml +++ b/src/pages/InvoiceIn/locale/es.yml @@ -7,7 +7,7 @@ invoiceIn: shortIssued: F. emisión file: Fichero issued: Fecha emisión - isBooked: Conciliada + isBooked: Contabilizada awb: AWB amount: Importe card: From 45b3ed6e17ce1c3d6b70fea9a62d29cbd516776e Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 25 Sep 2024 09:53:06 +0200 Subject: [PATCH 08/32] fix: refs #7207 te2e --- test/cypress/integration/ticket/ticketDescriptor.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cypress/integration/ticket/ticketDescriptor.spec.js b/test/cypress/integration/ticket/ticketDescriptor.spec.js index 8192b7c7c..cc3a1d65a 100644 --- a/test/cypress/integration/ticket/ticketDescriptor.spec.js +++ b/test/cypress/integration/ticket/ticketDescriptor.spec.js @@ -1,7 +1,7 @@ /// describe('Ticket descriptor', () => { - const toCloneOpt = '[role="menu"] .q-list > :nth-child(5)'; - const setWeightOpt = '[role="menu"] .q-list > :nth-child(6)'; + const toCloneOpt = '[role="menu"] .q-list > :nth-child(8)'; + const setWeightOpt = '[role="menu"] .q-list > :nth-child(13)'; const warehouseValue = ':nth-child(1) > :nth-child(6) > .value > span'; const summaryHeader = '.summaryHeader > div'; const weight = 25; From e827d3aabfb3b03b39e01593bb2af12b4f443016 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 26 Sep 2024 09:47:54 +0200 Subject: [PATCH 09/32] fix: refs #7323 rollback --- src/pages/Worker/WorkerFilter.vue | 5 ----- src/pages/Worker/WorkerList.vue | 20 +------------------- src/pages/Worker/locale/en.yml | 2 +- src/pages/Worker/locale/es.yml | 2 +- 4 files changed, 3 insertions(+), 26 deletions(-) diff --git a/src/pages/Worker/WorkerFilter.vue b/src/pages/Worker/WorkerFilter.vue index 61120f448..dfb5659fe 100644 --- a/src/pages/Worker/WorkerFilter.vue +++ b/src/pages/Worker/WorkerFilter.vue @@ -84,11 +84,6 @@ const getLocale = (label) => { /> - - - - - diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index a5281b651..3ca0d0c24 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -40,7 +40,7 @@ const columns = computed(() => [ { align: 'left', name: 'firstName', - label: t('tableColumns.name'), + label: t('tableColumns.firstName'), isTitle: true, columnFilter: { name: 'firstName', @@ -78,24 +78,6 @@ const columns = computed(() => [ }, format: (row, dashIfEmpty) => dashIfEmpty(row.department), }, - { - align: 'left', - name: 'fi', - label: t('tableColumns.fi'), - isTitle: true, - columnFilter: { - name: 'fi', - }, - }, - { - align: 'left', - name: 'SSN', - label: t('tableColumns.SSN'), - isTitle: true, - columnFilter: { - name: 'SSN', - }, - }, { align: 'left', name: 'email', diff --git a/src/pages/Worker/locale/en.yml b/src/pages/Worker/locale/en.yml index 7081e8fd0..865e86e7e 100644 --- a/src/pages/Worker/locale/en.yml +++ b/src/pages/Worker/locale/en.yml @@ -1,7 +1,7 @@ passwordRequirements: 'The password must have at least { length } length characters, {nAlpha} alphabetic characters, {nUpper} capital letters, {nDigits} digits and {nPunct} symbols (Ex: $%&.)\n' tableColumns: id: ID - name: Name + firstName: First name lastName: Last Name userName: User Name department: Department diff --git a/src/pages/Worker/locale/es.yml b/src/pages/Worker/locale/es.yml index 61694dc83..b3c093ec5 100644 --- a/src/pages/Worker/locale/es.yml +++ b/src/pages/Worker/locale/es.yml @@ -6,7 +6,7 @@ External: Externo passwordRequirements: 'La contraseña debe tener al menos { length } caracteres de longitud, {nAlpha} caracteres alfabéticos, {nUpper} letras mayúsculas, {nDigits} dígitos y {nPunct} símbolos (Ej: $%&.)' tableColumns: id: ID - name: Nombre + firstName: Nombre lastName: Apellidos userName: Nombre de usuario department: Departamento From c2b52473a12da9e856a3baa1889ba6702286c8fe Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 26 Sep 2024 10:04:16 +0200 Subject: [PATCH 10/32] fix: refs #7323 align tables --- src/pages/Monitor/MonitorOrders.vue | 56 +++++++++++++++-------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/src/pages/Monitor/MonitorOrders.vue b/src/pages/Monitor/MonitorOrders.vue index 52d442d0a..853a6edc9 100644 --- a/src/pages/Monitor/MonitorOrders.vue +++ b/src/pages/Monitor/MonitorOrders.vue @@ -139,33 +139,35 @@ const openTab = (id) => :disable-option="{ card: true }" > diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue index 67fa15898..119a7fd07 100644 --- a/src/pages/Account/Card/AccountCard.vue +++ b/src/pages/Account/Card/AccountCard.vue @@ -10,7 +10,7 @@ const { t } = useI18n(); Date: Fri, 4 Oct 2024 12:34:37 +0200 Subject: [PATCH 19/32] feat: added click and transfer tickets and deleted useless code --- src/pages/Ticket/Card/TicketTransfer.vue | 38 ++++++-------------- src/pages/Ticket/Card/TicketTransferForm.vue | 7 ++-- 2 files changed, 14 insertions(+), 31 deletions(-) diff --git a/src/pages/Ticket/Card/TicketTransfer.vue b/src/pages/Ticket/Card/TicketTransfer.vue index 1944b80f4..e1a011a84 100644 --- a/src/pages/Ticket/Card/TicketTransfer.vue +++ b/src/pages/Ticket/Card/TicketTransfer.vue @@ -1,13 +1,11 @@