From 5c36ad14f48fed04134221bb94f37431bfa6cf8a Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 2 Jul 2024 21:33:19 -0300 Subject: [PATCH] Ticket components --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketComponents.vue | 356 +++++++++++++++++++++ src/pages/Ticket/Card/TicketDescriptor.vue | 17 + src/pages/Ticket/locale/en.yml | 18 ++ src/pages/Ticket/locale/es.yml | 18 ++ src/router/modules/ticket.js | 10 + 7 files changed, 421 insertions(+) create mode 100644 src/pages/Ticket/Card/TicketComponents.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 59cd1170a..c26100699 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -452,6 +452,7 @@ ticket: weeklyTickets: Weekly tickets services: Service tracking: Tracking + components: Components list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index e35e3d41c..58b0d900b 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -451,6 +451,7 @@ ticket: weeklyTickets: Tickets programados services: Servicios tracking: Estados + components: Componentes list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketComponents.vue b/src/pages/Ticket/Card/TicketComponents.vue new file mode 100644 index 000000000..85d2179a2 --- /dev/null +++ b/src/pages/Ticket/Card/TicketComponents.vue @@ -0,0 +1,356 @@ + + + diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index 5fb312b28..100e24058 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -66,6 +66,23 @@ const filter = { fields: ['id', 'name'], }, }, + { + relation: 'zone', + scope: { + fields: [ + 'agencyModeFk', + 'bonus', + 'hour', + 'id', + 'isVolumetric', + 'itemMaxSize', + 'm3Max', + 'name', + 'price', + 'travelingDays', + ], + }, + }, ], }; diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index 39aed4af7..90a3e67b7 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -159,6 +159,24 @@ service: 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 }' +components: + item: Item + description: Description + quantity: Quantity + serie: Serie + components: Components + import: Import + total: Total + baseToCommission: Base to commission + totalWithoutVat: Total without VAT + zoneBreakdown: Zone breakdown + price: Price + bonus: Bonus + zone: Zone + volume: Volume + theoricalCost: Theorical cost + totalPrice: Total price + packages: Packages tracking: state: State worker: Worker diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index d5b50efc5..370d3433d 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -164,5 +164,23 @@ ticketSale: shipped: F. Envío agency: Agencia address: Consignatario +components: + item: Artículo + description: Descripción + quantity: Cantidad + serie: Serie + components: Componentes + import: Importe + total: Total + baseToCommission: Base comisionable + totalWithoutVat: Total sin IVA + zoneBreakdown: Desglose zona + price: Precio + bonus: Bonificación + zone: Zona + volume: Volúmen + theoricalCost: Porte teórico + totalPrice: Precio total + packages: Bultos Search ticket: Buscar tickets 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 1e635470b..1a9a7d557 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -23,6 +23,7 @@ export default { 'TicketTracking', 'TicketVolume', 'TicketNotes', + 'TicketComponents', ], }, children: [ @@ -179,6 +180,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketVolume.vue'), }, + { + path: 'components', + name: 'TicketComponents', + meta: { + title: 'components', + icon: 'vn:components', + }, + component: () => import('src/pages/Ticket/Card/TicketComponents.vue'), + }, { path: 'observation', name: 'TicketNotes',