From cb7d729b0f01ab15b5302abee21567b04fe4ebd1 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 4 Sep 2024 08:02:28 +0200 Subject: [PATCH] fix: refs #7553 fixed details in summary and data-key in TicketList --- src/pages/Ticket/Card/TicketSummary.vue | 97 ++++++++++++++++++++++--- src/pages/Ticket/TicketList.vue | 6 +- 2 files changed, 88 insertions(+), 15 deletions(-) diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index c1321b0d9..3330b4d1d 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -15,6 +15,7 @@ import { getUrl } from 'src/composables/getUrl'; import VnUserLink from 'src/components/ui/VnUserLink.vue'; import VnTitle from 'src/components/common/VnTitle.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; +import ZoneDescriptorProxy from 'src/pages/Zone/Card/ZoneDescriptorProxy.vue'; const route = useRoute(); const router = useRouter(); @@ -79,6 +80,29 @@ async function changeState(value) { await axios.post(`Tickets/state`, formData); router.go(route.fullPath); } + +function getNoteValue(description) { + switch (description) { + case 'ItemPicker': + return t('ItemPicker'); + case 'Packager': + return t('Packager'); + case 'Delivery': + return t('Delivery'); + case 'SalesPerson': + return t('SalesPerson'); + case 'Administrative': + return t('Administrative'); + case 'Weight': + return t('Weight'); + case 'InvoiceOut': + return t('InvoiceOut'); + case 'DropOff': + return t('DropOff'); + case 'Sustitución': + return t('Sustitución'); + } +}