WIP: 28213bcc minor i18n updates

This commit is contained in:
Javier Segarra 2024-07-22 17:30:15 +02:00
parent 28213bcce6
commit 3979a328e9
8 changed files with 58 additions and 86 deletions

View File

@ -105,6 +105,7 @@ globals:
agency: Agency
workCenters: Work centers
modes: Modes
negative: Tickets negative
zones: Zones
zonesList: Zones
deliveryDays: Delivery days

View File

@ -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

View File

@ -505,7 +505,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
:disable="!isTicketEditable || !selectedSales.length"
@click="setTransferParams()"
>
<QTooltip>{{ t('Transfer lines') }}</QTooltip>
<QTooltip>{{ t('ticketSale.transferLines') }}</QTooltip>
<TicketTransfer
:transfer="transfer"
:ticket="store.data"
@ -768,5 +768,4 @@ es:
Continue anyway?: ¿Continuar de todas formas?
You are going to delete lines of the ticket: Vas a eliminar lineas del ticket
Add item: Añadir artículo
Transfer lines: Transferir líneas
</i18n>

View File

@ -365,7 +365,7 @@ const replaceItem = () => {
</QTooltip>
</QBtn> -->
<QBtn color="primary" icon="vn:splitline" @click="setTransferParams()">
<QTooltip>{{ t('Transfer lines') }}</QTooltip>
<QTooltip>{{ t('ticketSale.transferLines') }}</QTooltip>
<TicketTransfer></TicketTransfer
></QBtn>
<QBtn color="primary" @click="showProposalDialog = true">

View File

@ -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(() => {
<VnSubToolbar class="bg-vn-dark justify-end">
<template #st-actions>
<QBtnGroup push style="column-gap: 1px" v-if="!currentRow">
<TicketMassiveUpdate
label="negative.buttonsUpdate.state"
tooltip="negative.detail.modal.changeState.title"
>
<NegativeOriginDialog
ref="originDialogRef"
:selected-rows="selectedRows"
></NegativeOriginDialog>
</TicketMassiveUpdate>
<QBtn
color="primary"
:disable="!selectedRows?.length"
@ -217,38 +213,13 @@ onBeforeMount(() => {
:use-model="true"
:row-click="redirectToCreateView"
v-model:selected="selectedRows"
:q-table="{
:table="{
'row-key': 'itemFk',
selection: 'multiple',
}"
>
</VnTable>
</div>
<!-- <div v-if="currentRow" class="list">
<TicketLackDetail
ref="ticketDetailRef"
:item="currentRow"
@close="(evt) => (currentRow = null)"
></TicketLackDetail>
</div> -->
<!-- <TotalNegativeOriginDialog
ref="totalNegativeDialogRef"
v-model="showTotalNegativeOriginDialog"
@hide="onDialogHide"
></TotalNegativeOriginDialog> -->
<NegativeOriginDialog
ref="originDialogRef"
@hide="onDialogHide"
v-model="showNegativeOriginDialog"
:selected-rows="selectedRows"
>
</NegativeOriginDialog>
<!-- <QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
<QScrollArea class="fit text-grey-8">
<TicketLackFilter data-key="NegativeList" />
</QScrollArea>
</QDrawer> -->
</QPage>
</template>

View File

@ -32,12 +32,12 @@ const update = async () => {
</script>
<template>
<QDialog
<!-- <QDialog
ref="dialogRef"
@hide="onDialogHide"
v-model="showNegativeOriginDialog"
full-width
>
> -->
<QCard class="q-pa-sm">
<QCardSection class="row items-center q-pb-none">
<QAvatar
@ -47,9 +47,7 @@ const update = async () => {
size="xl"
v-if="icon"
/>
<span class="text-h6 text-grey">{{
t('negative.modalOrigin.title')
}}</span>
<span class="text-h6 text-grey">{{ t('negative.modalOrigin.title') }}</span>
<QSpace />
<QBtn icon="close" flat round dense v-close-popup />
</QCardSection>
@ -78,7 +76,7 @@ const update = async () => {
autofocus
/> </QCardActions
></QCard>
</QDialog>
<!-- </QDialog> -->
</template>
<style lang="scss" scoped>

View File

@ -38,6 +38,7 @@ ticketSale:
shipped: Shipped
agency: Agency
address: Address
transferLines: Transfer lines
advanceTickets:
origin: Origin
destination: Destination

View File

@ -164,6 +164,7 @@ ticketSale:
shipped: F. Envío
agency: Agencia
address: Consignatario
transferLines: Transferir líneas
ticketComponents:
item: Artículo
description: Descripción