From 17e9d95702e562b5c721b9f66c47c07fda4de482 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 09:02:29 -0300 Subject: [PATCH 1/3] 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 cd01ba8fe1b90a1abfac8e97660a90f13a6b4d15 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:36:17 -0300 Subject: [PATCH 2/3] 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 3/3] 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));