From 697c467006aef81ccd6164b4a8957d2ef18afb1b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 29 Mar 2024 00:56:10 +0100 Subject: [PATCH] refs #6321 i18n: buttons tooltip --- src/i18n/en/index.js | 2 + src/i18n/es/index.js | 54 ++++++++++--------- .../Ticket/Negative/TicketLackDialog.vue | 2 +- .../Ticket/Negative/TicketLackDialogProxy.vue | 16 ++---- 4 files changed, 34 insertions(+), 40 deletions(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 1483dfcf9..ab6122882 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -33,6 +33,8 @@ export default { confirm: 'Confirm', assign: 'Assign', back: 'Back', + split: 'Split', + splitAll: 'Split all', yes: 'Yes', no: 'No', noChanges: 'No changes to save', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index a934a1c79..71532419f 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -33,6 +33,8 @@ export default { confirm: 'Confirmar', assign: 'Asignar', back: 'Volver', + split: 'Separar', + splitAll: 'Separar todos', yes: 'Si', no: 'No', noChanges: 'Sin cambios que guardar', @@ -451,15 +453,15 @@ export default { customerCard: 'Ficha del cliente', alias: 'Alias', }, - negative:{ + negative: { hour: 'Hora', id: 'Id_Articulo', - longName:'Articulo', + longName: 'Articulo', supplier: 'Productor', - colour:'Color', - size:'Medida', - origen:'Origen', - value:'Negativo', + colour: 'Color', + size: 'Medida', + origen: 'Origen', + value: 'Negativo', itemFk: 'itemFk', warehouseFk: 'warehouseFk', producer: 'Producer', @@ -472,28 +474,28 @@ export default { type: 'Tipo', negativeAction: 'Negativo', totalNegative: 'Total negativos', - modalOrigin:{ + modalOrigin: { title: 'Actualizar negativos', - question: 'Seleccione un estado para guardar' + question: 'Seleccione un estado para guardar', + }, + detail: { + itemFk: 'Articulo', + ticketFk: 'Id_Ticket', + code: 'code', + nickname: 'Alias', + name: 'Nombre', + zoneName: 'Nombre Agencia', + shipped: 'Fecha', + theoreticalhour: 'Hora teórica', + agName: 'Agencia', + quantity: 'Cantidad', + alertLevel: 'Nivel de alerta', + alertLevelCode: 'Estado de Alerta', + state: 'Estado', + peticionCompra: 'Petición compra', + isRookie: 'Cliente nuevo', + turno: 'Linea turno', }, - detail:{ - itemFk:'Articulo', - ticketFk:'Id_Ticket', - code:'code', - nickname:'Alias', - name:'Nombre', - zoneName:'Nombre Agencia', - shipped:'Fecha', - theoreticalhour:'Hora teórica', - agName:'Agencia', - quantity:'Cantidad', - alertLevel:'Nivel de alerta', - alertLevelCode:'Estado de Alerta', - state:'Estado', - peticionCompra:'Petición compra', - isRookie:'Cliente nuevo', - turno:'Linea turno', - } }, boxing: { expedition: 'Expedición', diff --git a/src/pages/Ticket/Negative/TicketLackDialog.vue b/src/pages/Ticket/Negative/TicketLackDialog.vue index 4ba04d136..173cf0ce3 100644 --- a/src/pages/Ticket/Negative/TicketLackDialog.vue +++ b/src/pages/Ticket/Negative/TicketLackDialog.vue @@ -407,7 +407,7 @@ defineExpose({ split }); > - {{ t('components.leftMenu.removeFromPinned') }} + {{ t('globals.split') }} diff --git a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue index 18d3e4464..5f557fbdf 100644 --- a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue +++ b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue @@ -2,9 +2,7 @@ import { toRefs, ref } from 'vue'; import TicketLackDialog from './TicketLackDialog.vue'; import { useSession } from 'src/composables/useSession'; -// import { useVnConfirm } from 'composables/useVnConfirm'; import { useI18n } from 'vue-i18n'; -// import VnConfirm from 'components/ui/VnConfirm.vue'; const { t } = useI18n(); const $props = defineProps({ @@ -21,19 +19,11 @@ const { ticket } = toRefs($props); const session = useSession(); const token = session.getTokenMultimedia(); -// const { openConfirmationModal } = useVnConfirm(); const ticketRef = ref(null); const hasRowsSelected = ref(false); -// const confirmationModal = ref(false); + async function splitAll() { - // confirmationModal.value = true; ticketRef.value.split({ all: true }); - // openConfirmationModal( - // t('Confirm splitAll'), - // t('Are you sure you want to split all tickets?'), - // null, - // () => - // ); } +