From 0afd7f4ae1e32e35b97a6442ee975e1a30027ce4 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 19 Jun 2024 10:22:20 -0300 Subject: [PATCH 01/21] Ticket tracking --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Ticket/Card/TicketCreateTracking.vue | 73 +++++++++++ src/pages/Ticket/Card/TicketTracking.vue | 121 ++++++++++++++++++ src/pages/Ticket/locale/en.yml | 4 + src/pages/Ticket/locale/es.yml | 4 + src/router/modules/ticket.js | 11 +- 7 files changed, 214 insertions(+), 1 deletion(-) create mode 100644 src/pages/Ticket/Card/TicketCreateTracking.vue create mode 100644 src/pages/Ticket/Card/TicketTracking.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..419c33f8a 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + tracking: Tracking list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..192c17c90 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + tracking: Estados list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCreateTracking.vue b/src/pages/Ticket/Card/TicketCreateTracking.vue new file mode 100644 index 000000000..b340b406a --- /dev/null +++ b/src/pages/Ticket/Card/TicketCreateTracking.vue @@ -0,0 +1,73 @@ + + + + + es: + Create tracking: Crear estado + diff --git a/src/pages/Ticket/Card/TicketTracking.vue b/src/pages/Ticket/Card/TicketTracking.vue new file mode 100644 index 000000000..548bba831 --- /dev/null +++ b/src/pages/Ticket/Card/TicketTracking.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..88f5642cd --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,4 @@ +tracking: + state: State + worker: Worker + created: Created diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..6f68842fb 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,6 @@ +tracking: + state: Estado + worker: Trabajador + created: Fecha creación Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..6f63eb75d 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketTracking'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'tracking', + name: 'TicketTracking', + meta: { + title: 'tracking', + icon: 'vn:eye', + }, + component: () => import('src/pages/Ticket/Card/TicketTracking.vue'), + }, ], }, ], From 17e9d95702e562b5c721b9f66c47c07fda4de482 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 09:02:29 -0300 Subject: [PATCH 02/21] Ticket notes --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketCard.vue | 24 ++++-- src/pages/Ticket/Card/TicketNotes.vue | 102 ++++++++++++++++++++++++++ src/pages/Ticket/locale/en.yml | 8 ++ src/pages/Ticket/locale/es.yml | 8 ++ src/router/modules/ticket.js | 11 ++- 7 files changed, 148 insertions(+), 7 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketNotes.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..996ead262 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + observation: Notes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..8358953eb 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + observation: Notas list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 04363b506..a75cacd6c 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -1,17 +1,29 @@ diff --git a/src/pages/Ticket/Card/TicketNotes.vue b/src/pages/Ticket/Card/TicketNotes.vue new file mode 100644 index 000000000..732395584 --- /dev/null +++ b/src/pages/Ticket/Card/TicketNotes.vue @@ -0,0 +1,102 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..087102a07 --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,8 @@ +card: + search: Search tickets + searchInfo: You can search by ticket id or alias +ticketNotes: + observationType: Observation type + description: Description + removeNote: Remove note + addNote: Add note diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..d596fa217 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,10 @@ +card: + search: Buscar tickets + searchInfo: Buscar tickets por identificador o alias +ticketNotes: + observationType: Tipo de observación + description: Descripción + removeNote: Quitar nota + addNote: Añadir nota Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..a69a92e84 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketNotes'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'observation', + name: 'TicketNotes', + meta: { + title: 'notes', + icon: 'vn:notes', + }, + component: () => import('src/pages/Ticket/Card/TicketNotes.vue'), + }, ], }, ], From 91df35fcaecb88f791402ebbd03be6f27378a6f4 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 11:12:49 -0300 Subject: [PATCH 03/21] Ticket volume --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketCard.vue | 24 +++- src/pages/Ticket/Card/TicketVolume.vue | 153 +++++++++++++++++++++++++ src/pages/Ticket/locale/en.yml | 11 ++ src/pages/Ticket/locale/es.yml | 11 ++ src/router/modules/ticket.js | 11 +- 7 files changed, 205 insertions(+), 7 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketVolume.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..4edd310ff 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + volume: Volume list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..ceef27f1a 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + volume: Volumen list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 04363b506..9b4e05c93 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -1,17 +1,29 @@ diff --git a/src/pages/Ticket/Card/TicketVolume.vue b/src/pages/Ticket/Card/TicketVolume.vue new file mode 100644 index 000000000..93da31e53 --- /dev/null +++ b/src/pages/Ticket/Card/TicketVolume.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..6955fd0dd --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,11 @@ +card: + search: Search tickets + searchInfo: You can search by ticket id or alias +volume: + item: Item + description: Description + packingType: Packing Type + quantity: Quantity + volumeQuantity: m³ per quantity + type: Type + volume: Volume diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..e4bce2480 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,13 @@ +card: + search: Buscar tickets + searchInfo: Buscar tickets por identificador o alias +volume: + item: Artículo + description: Descripción + packingType: Encajado + quantity: Cantidad + volumeQuantity: m³ por cantidad + type: Tipo + volume: Volumen Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..1202115fa 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketVolume', 'TicketVolume'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'volume', + name: 'TicketVolume', + meta: { + title: 'volume', + icon: 'vn:volume', + }, + component: () => import('src/pages/Ticket/Card/TicketVolume.vue'), + }, ], }, ], From fb12d4ddc085b7f0de5a13c78bbb9ddfd586a88d Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 17:24:36 -0300 Subject: [PATCH 04/21] WIP --- src/i18n/locale/en.yml | 5 +++++ src/i18n/locale/es.yml | 5 +++++ src/pages/Ticket/Card/TicketService.vue | 1 + src/pages/Ticket/locale/en.yml | 8 ++++++++ src/pages/Ticket/locale/es.yml | 8 ++++++++ src/router/modules/ticket.js | 25 +++++++++++++++++++++++++ 6 files changed, 52 insertions(+) create mode 100644 src/pages/Ticket/Card/TicketService.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..347543092 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,11 @@ ticket: sms: Sms notes: Notes sale: Sale +<<<<<<< Updated upstream +======= + dms: File management + services: Service +>>>>>>> Stashed changes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..3151d72bf 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,11 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido +<<<<<<< Updated upstream +======= + dms: Gestión documental + service: Servicios +>>>>>>> Stashed changes list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue new file mode 100644 index 000000000..25e345de0 --- /dev/null +++ b/src/pages/Ticket/Card/TicketService.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..b8c21600d --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,8 @@ +service: + pay: Pay + description: Description + quantity: Quantity + price: Price + removeService: Remove service + newService: New service type + addService: Add service diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..a8ef0347b 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,10 @@ +service: + pay: Abonar + description: Descripción + quantity: Cantidad + price: Precio + removeService: Quitar servicio + newService: Nuevo tipo de servicio + addService: Añadir servicio Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..cbcc4b762 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,11 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], +<<<<<<< Updated upstream card: ['TicketBoxing', 'TicketSms', 'TicketSale'], +======= + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketDms', 'TicketService'], +>>>>>>> Stashed changes }, children: [ { @@ -93,6 +97,27 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, +<<<<<<< Updated upstream +======= + { + path: 'dms', + name: 'TicketDms', + meta: { + title: 'dms', + icon: 'cloud_upload', + }, + component: () => import('src/pages/Ticket/Card/TicketDms.vue'), + }, + { + path: 'service', + name: 'TicketService', + meta: { + title: 'service', + icon: 'cloud_upload', + }, + component: () => import('src/pages/Ticket/Card/TicketService.vue'), + }, +>>>>>>> Stashed changes ], }, ], From 8e538fb4638f705656d7544a3d2578373cffa3b5 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 08:27:25 -0300 Subject: [PATCH 05/21] WIP --- src/i18n/locale/en.yml | 4 - src/i18n/locale/es.yml | 4 - .../Ticket/Card/TicketCreateServiceType.vue | 49 +++++++ src/pages/Ticket/Card/TicketService.vue | 138 +++++++++++++++++- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + src/router/modules/ticket.js | 19 +-- 7 files changed, 190 insertions(+), 26 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketCreateServiceType.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 347543092..5e7b3621b 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,11 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale -<<<<<<< Updated upstream -======= - dms: File management services: Service ->>>>>>> Stashed changes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 3151d72bf..fd3dad952 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,11 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido -<<<<<<< Updated upstream -======= - dms: Gestión documental service: Servicios ->>>>>>> Stashed changes list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCreateServiceType.vue b/src/pages/Ticket/Card/TicketCreateServiceType.vue new file mode 100644 index 000000000..d392ec206 --- /dev/null +++ b/src/pages/Ticket/Card/TicketCreateServiceType.vue @@ -0,0 +1,49 @@ + + + + + +es: + New service type: Nuevo tipo de servicio + diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index 25e345de0..af2a5c664 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -1 +1,137 @@ - + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index b8c21600d..ff928c492 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -6,3 +6,4 @@ service: removeService: Remove service newService: New service type addService: Add service + quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index a8ef0347b..f1326e502 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -6,5 +6,6 @@ service: removeService: Quitar servicio newService: Nuevo tipo de servicio addService: Añadir servicio + quantityInfo: Para crear sevicios con cantidades negativas marcar servicio en el ticket origen y apretar el boton abonar. Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index cbcc4b762..eadaa1cab 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,11 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], -<<<<<<< Updated upstream - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], -======= - card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketDms', 'TicketService'], ->>>>>>> Stashed changes + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketService'], }, children: [ { @@ -97,17 +93,7 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, -<<<<<<< Updated upstream -======= - { - path: 'dms', - name: 'TicketDms', - meta: { - title: 'dms', - icon: 'cloud_upload', - }, - component: () => import('src/pages/Ticket/Card/TicketDms.vue'), - }, + { path: 'service', name: 'TicketService', @@ -117,7 +103,6 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketService.vue'), }, ->>>>>>> Stashed changes ], }, ], From a57df459a6be01d2e312ff16477aa3be95143745 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 12:54:21 -0300 Subject: [PATCH 06/21] Add pay button --- src/pages/Ticket/Card/TicketService.vue | 39 +++++++++++++++++++++---- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index af2a5c664..f071c7baa 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -1,6 +1,6 @@ -
checkeds: {{ selectedServices }}
diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index ff928c492..9162ca945 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -7,3 +7,4 @@ service: newService: New service type addService: Add service quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. + createRefundSuccess: 'The following refund ticket have been created: { ticketId }' diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index f1326e502..bb02a946f 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -7,5 +7,6 @@ service: newService: Nuevo tipo de servicio addService: Añadir servicio quantityInfo: Para crear sevicios con cantidades negativas marcar servicio en el ticket origen y apretar el boton abonar. + createRefundSuccess: 'Se ha creado siguiente ticket de abono: { ticketId }' Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket From 1529e2dd4f15dd693abed81c2732c335f618aa84 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 12:58:49 -0300 Subject: [PATCH 07/21] Add tooltip to add state button --- src/pages/Ticket/Card/TicketTracking.vue | 2 +- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Ticket/Card/TicketTracking.vue b/src/pages/Ticket/Card/TicketTracking.vue index 548bba831..2ddb278fa 100644 --- a/src/pages/Ticket/Card/TicketTracking.vue +++ b/src/pages/Ticket/Card/TicketTracking.vue @@ -114,7 +114,7 @@ const openCreateModal = () => createTrackingDialogRef.value.show(); - {{ t('purchaseRequest.newRequest') }} + {{ t('tracking.addState') }} diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index 88f5642cd..4fe6072b2 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -2,3 +2,4 @@ tracking: state: State worker: Worker created: Created + addState: Add state diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 6f68842fb..d116abb12 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -2,5 +2,6 @@ tracking: state: Estado worker: Trabajador created: Fecha creación + addState: Añadir estado Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket From d409b9ea8688658593c8cdb04a83a20ed5f157da Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 22:51:26 +0200 Subject: [PATCH 08/21] fix: WorkerSelect option format --- src/pages/Ticket/Card/TicketCreateTracking.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/Ticket/Card/TicketCreateTracking.vue b/src/pages/Ticket/Card/TicketCreateTracking.vue index b340b406a..399663571 100644 --- a/src/pages/Ticket/Card/TicketCreateTracking.vue +++ b/src/pages/Ticket/Card/TicketCreateTracking.vue @@ -59,9 +59,22 @@ const onStateFkChange = (formData) => (formData.userFk = user.value.id); v-model="data.userFk" :options="workersOptions" hide-selected - option-label="nickname" + option-label="name" option-value="id" - /> + > + From 151978160b0f1cf2f02d3ca474d051817f0da14d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 23:01:26 +0200 Subject: [PATCH 09/21] fix: ticket order --- src/router/modules/ticket.js | 61 +++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 475552585..2766d034a 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'TicketMain' }, menus: { - main: ['TicketList', 'TicketAdvance', 'TicketFuture'], + main: ['TicketList', 'TicketAdvance', 'TicketWeekly', 'TicketFuture'], card: [ 'TicketBasicData', 'TicketBoxing', @@ -49,13 +49,13 @@ export default { component: () => import('src/pages/Ticket/TicketCreate.vue'), }, { - name: 'TicketAdvance', - path: 'advance', + name: 'TicketWeekly', + path: 'weekly', meta: { - title: 'ticketAdvance', - icon: 'keyboard_double_arrow_left', + title: 'weeklyTickets', + icon: 'access_time', }, - component: () => import('src/pages/Ticket/TicketAdvance.vue'), + component: () => import('src/pages/Ticket/TicketWeekly.vue'), }, { name: 'TicketFuture', @@ -66,6 +66,15 @@ export default { }, component: () => import('src/pages/Ticket/TicketFuture.vue'), }, + { + name: 'TicketAdvance', + path: 'advance', + meta: { + title: 'ticketAdvance', + icon: 'keyboard_double_arrow_left', + }, + component: () => import('src/pages/Ticket/TicketAdvance.vue'), + }, ], }, { @@ -103,22 +112,14 @@ export default { component: () => import('src/pages/Ticket/Card/TicketSale.vue'), }, { - path: 'boxing', - name: 'TicketBoxing', + path: 'request', + name: 'TicketPurchaseRequest', meta: { - title: 'boxing', - icon: 'vn:package', + title: 'purchaseRequest', + icon: 'vn:buyrequest', }, - component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), - }, - { - path: 'sms', - name: 'TicketSms', - meta: { - title: 'sms', - icon: 'sms', - }, - component: () => import('src/pages/Ticket/Card/TicketSms.vue'), + component: () => + import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), }, { path: 'tracking', @@ -139,14 +140,22 @@ export default { component: () => import('src/pages/Ticket/Card/TicketLog.vue'), }, { - path: 'request', - name: 'TicketPurchaseRequest', + path: 'boxing', + name: 'TicketBoxing', meta: { - title: 'purchaseRequest', - icon: 'vn:buyrequest', + title: 'boxing', + icon: 'vn:package', }, - component: () => - import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), + component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), + }, + { + path: 'sms', + name: 'TicketSms', + meta: { + title: 'sms', + icon: 'sms', + }, + component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, ], }, From cd01ba8fe1b90a1abfac8e97660a90f13a6b4d15 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:36:17 -0300 Subject: [PATCH 10/21] changes --- src/pages/Ticket/Card/TicketNotes.vue | 119 +++++++++++++------------- 1 file changed, 61 insertions(+), 58 deletions(-) diff --git a/src/pages/Ticket/Card/TicketNotes.vue b/src/pages/Ticket/Card/TicketNotes.vue index 732395584..747955e6d 100644 --- a/src/pages/Ticket/Card/TicketNotes.vue +++ b/src/pages/Ticket/Card/TicketNotes.vue @@ -40,63 +40,66 @@ watch( auto-load url="ObservationTypes" /> - - + + From ae73dd047f214d8dcf94882602338898a4209c35 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:55:30 -0300 Subject: [PATCH 11/21] changes --- src/pages/Ticket/Card/TicketCard.vue | 1 - src/pages/Ticket/Card/TicketDescriptor.vue | 8 ++++---- src/pages/Ticket/Card/TicketNotes.vue | 9 +++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 62b112d5d..689a717e6 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -13,7 +13,6 @@ const route = useRoute(); const routeName = computed(() => route.name); const searchBarDataKeys = { TicketSummary: 'TicketSummary', - TicketNotes: 'TicketNotes', TicketSale: 'TicketSale', TicketPurchaseRequest: 'TicketPurchaseRequest', }; diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index dfbcfc106..5fb312b28 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -71,7 +71,7 @@ const filter = { const data = ref(useCardDescription()); const setData = (entity) => - (data.value = useCardDescription(entity.client.name, entity.id)); + (data.value = useCardDescription(entity.client?.name, entity.id)); From 3b18375cdbc1417e7080584b0dbba15463b47d46 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 1 Jul 2024 08:13:49 +0200 Subject: [PATCH 18/21] fix(TicketService): pay use selected --- src/pages/Ticket/Card/TicketService.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index 5d9688834..1ec072dd2 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -19,12 +19,11 @@ const { t } = useI18n(); const ticketServiceTypeFetchRef = ref(null); const ticketServiceCrudRef = ref(null); const ticketServiceOptions = ref([]); -const selected = ref([]); const arrayData = useArrayData('TicketNotes'); const { store } = arrayData; const { notify } = useNotify(); -const selectedServices = ref(new Set()); +const selected = ref([]); const defaultTaxClass = ref(null); const crudModelFilter = computed(() => ({ @@ -48,10 +47,10 @@ onMounted(async () => await getDefaultTaxClass()); const createRefund = async () => { try { - if (!selectedServices.value.size) return; + if (!selected.value.length) return; const params = { - servicesIds: Array.from(selectedServices.value), + servicesIds: selected.value.map((s) => s.id), withWarehouse: false, negative: true, }; @@ -130,7 +129,7 @@ const columns = computed(() => [ From a4a64eebb47fe9a6b77226fc4192d528928a3e2d Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 1 Jul 2024 09:18:16 +0200 Subject: [PATCH 19/21] fix: refs #7129 fix e2e --- .../integration/agency/agencyWorkCenter.spec.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/cypress/integration/agency/agencyWorkCenter.spec.js b/test/cypress/integration/agency/agencyWorkCenter.spec.js index 8349260ee..6d33dbc39 100644 --- a/test/cypress/integration/agency/agencyWorkCenter.spec.js +++ b/test/cypress/integration/agency/agencyWorkCenter.spec.js @@ -2,13 +2,10 @@ describe('AgencyWorkCenter', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit(`/#/agency`); + cy.visit(`/#/agency/11/workCenter`); }); it('assign workCenter', () => { - cy.visit(`/#/agency`); - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); cy.get( '.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container' @@ -17,8 +14,6 @@ describe('AgencyWorkCenter', () => { }); it('delete workCenter', () => { - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-item__section--side > .q-btn > .q-btn__content > .q-icon').click(); cy.get('.q-notification__message').should( 'have.text', @@ -27,9 +22,6 @@ describe('AgencyWorkCenter', () => { }); it('error on duplicate workCenter', () => { - cy.visit(`/#/agency`); - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); cy.get( '.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container' From 731169053c3fe78bd41a6b767023d47fbbc51224 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 1 Jul 2024 09:29:55 +0200 Subject: [PATCH 20/21] test: fix vnSearchbar adapt to vnTable --- test/cypress/integration/vnSearchBar.spec.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/test/cypress/integration/vnSearchBar.spec.js b/test/cypress/integration/vnSearchBar.spec.js index f1f3a9e82..580199bc3 100644 --- a/test/cypress/integration/vnSearchBar.spec.js +++ b/test/cypress/integration/vnSearchBar.spec.js @@ -3,13 +3,10 @@ describe('VnSearchBar', () => { const employeeId = ' #1'; const salesPersonId = ' #18'; const idGap = '.q-item > .q-item__label'; - const cardList = '.vn-card-list'; - - let url; + const vnTableRow = '.q-virtual-scroll__content'; beforeEach(() => { cy.login('developer'); cy.visit('#/customer/list'); - cy.url().then((currentUrl) => (url = currentUrl)); }); it('should redirect to customer summary page', () => { @@ -19,12 +16,12 @@ describe('VnSearchBar', () => { it('should stay on the list page if there are several results or none', () => { cy.writeSearchbar('salesA{enter}'); - checkCardListAndUrl(2); + checkTableLength(2); cy.clearSearchbar(); cy.writeSearchbar('0{enter}'); - checkCardListAndUrl(0); + checkTableLength(0); }); const searchAndCheck = (searchTerm, expectedText) => { @@ -33,10 +30,7 @@ describe('VnSearchBar', () => { cy.get(idGap).should('have.text', expectedText); }; - const checkCardListAndUrl = (expectedLength) => { - cy.get(cardList).then(($cardList) => { - expect($cardList.find('.q-card').length).to.equal(expectedLength); - cy.url().then((currentUrl) => expect(currentUrl).to.contain(url)); - }); + const checkTableLength = (expectedLength) => { + cy.get(vnTableRow).find('tr').should('have.length', expectedLength); }; }); From ae713213394796e34ba0d4a5cf0007fa986eac5b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 14:43:39 +0200 Subject: [PATCH 21/21] fix: map selected --- src/pages/Ticket/Card/TicketService.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index 1ec072dd2..4cc8207ef 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -50,7 +50,7 @@ const createRefund = async () => { if (!selected.value.length) return; const params = { - servicesIds: selected.value.map((s) => s.id), + servicesIds: selected.value.map((s) => +s.ticketFk), withWarehouse: false, negative: true, };