From 3979a328e9dbd13aad8ca7d601985b9122cdf82f Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 22 Jul 2024 17:30:15 +0200 Subject: [PATCH] WIP: 28213bcc minor i18n updates --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketSale.vue | 3 +- .../Ticket/Negative/TicketLackDetail.vue | 2 +- src/pages/Ticket/Negative/TicketLackList.vue | 51 +++-------- .../components/NegativeOriginDialog.vue | 84 +++++++++---------- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + 8 files changed, 58 insertions(+), 86 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 7ff0f185e..e47cab9f3 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -105,6 +105,7 @@ globals: agency: Agency workCenters: Work centers modes: Modes + negative: Tickets negative zones: Zones zonesList: Zones deliveryDays: Delivery days diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 3717706b0..5b2e81f4b 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -106,6 +106,7 @@ globals: agency: Agencia workCenters: Centros de trabajo modes: Modos + negative: Tickets negativos zones: Zonas zonesList: Zonas deliveryDays: Días de entrega diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index cbc94b388..215380f44 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -505,7 +505,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); :disable="!isTicketEditable || !selectedSales.length" @click="setTransferParams()" > - {{ t('Transfer lines') }} + {{ t('ticketSale.transferLines') }} diff --git a/src/pages/Ticket/Negative/TicketLackDetail.vue b/src/pages/Ticket/Negative/TicketLackDetail.vue index ed676f238..a21ad1a57 100644 --- a/src/pages/Ticket/Negative/TicketLackDetail.vue +++ b/src/pages/Ticket/Negative/TicketLackDetail.vue @@ -365,7 +365,7 @@ const replaceItem = () => { --> - {{ t('Transfer lines') }} + {{ t('ticketSale.transferLines') }} diff --git a/src/pages/Ticket/Negative/TicketLackList.vue b/src/pages/Ticket/Negative/TicketLackList.vue index 00fd2cf7a..62cb57bb1 100644 --- a/src/pages/Ticket/Negative/TicketLackList.vue +++ b/src/pages/Ticket/Negative/TicketLackList.vue @@ -2,29 +2,16 @@ import { computed, ref, reactive } from 'vue'; import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; -// import VnPaginate from 'components/ui/VnPaginate.vue'; -// import TicketLackFilter from 'pages/Ticket/Negative/TicketLackFilter.vue'; -// import TicketLackDetail from 'pages/Ticket/Negative/TicketLackDetail.vue'; -// import FetchData from 'components/FetchData.vue'; import VnTable from 'components/VnTable/VnTable.vue'; - import NegativeOriginDialog from 'pages/Ticket/Negative/components/NegativeOriginDialog.vue'; -// import TotalNegativeOriginDialog from 'pages/Ticket/Negative/components/TotalNegativeOriginDialog.vue'; -// import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import { onBeforeMount } from 'vue'; import { dashIfEmpty, toDate, toHour } from 'src/filters'; import { useRouter } from 'vue-router'; -// import { useUserConfig } from 'src/composables/useUserConfig'; import { useState } from 'src/composables/useState'; import { useRole } from 'src/composables/useRole'; +import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; -// import TicketLackDetail from './TicketLackDetail.vue'; -// import { useSummaryDialog } from 'src/composables/useSummaryDialog'; - -// const { viewSummary } = useSummaryDialog(); - -// const DEFAULT_WAREHOUSE = 'Algemesi'; const router = useRouter(); const stateStore = useStateStore(); @@ -184,6 +171,15 @@ onBeforeMount(() => { diff --git a/src/pages/Ticket/Negative/components/NegativeOriginDialog.vue b/src/pages/Ticket/Negative/components/NegativeOriginDialog.vue index 6864116de..bbcf126a9 100644 --- a/src/pages/Ticket/Negative/components/NegativeOriginDialog.vue +++ b/src/pages/Ticket/Negative/components/NegativeOriginDialog.vue @@ -32,53 +32,51 @@ const update = async () => {