refs #6321 perf: i18n

This commit is contained in:
Javier Segarra 2024-04-02 13:25:51 +02:00
parent 6b4dea6bf9
commit 370e52f7c4
4 changed files with 34 additions and 109 deletions

View File

@ -514,8 +514,8 @@ export default {
size: 'Size', size: 'Size',
origen: 'Origen', origen: 'Origen',
value: 'Negative', value: 'Negative',
itemFk: 'itemFk', itemFk: 'Article',
warehouseFk: 'warehouseFk', warehouseFk: 'Warehouse',
producer: 'Producer', producer: 'Producer',
category: 'category', category: 'category',
warehouse: 'warehouse', warehouse: 'warehouse',
@ -541,8 +541,7 @@ export default {
theoreticalhour: 'Theoretical hour', theoreticalhour: 'Theoretical hour',
agName: 'Agency', agName: 'Agency',
quantity: 'Quantity', quantity: 'Quantity',
alertLevel: 'Alert level', alertLevelCode: 'Group state',
alertLevelCode: 'Altert state',
state: 'State', state: 'State',
peticionCompra: 'Buy request', peticionCompra: 'Buy request',
isRookie: 'New client', isRookie: 'New client',

View File

@ -455,21 +455,20 @@ export default {
}, },
negative: { negative: {
hour: 'Hora', hour: 'Hora',
id: 'Id_Articulo', id: 'Id Articulo',
longName: 'Articulo', longName: 'Articulo',
supplier: 'Productor', supplier: 'Productor',
colour: 'Color', colour: 'Color',
size: 'Medida', size: 'Medida',
origen: 'Origen', origen: 'Origen',
value: 'Negativo', value: 'Negativo',
itemFk: 'itemFk', warehouseFk: 'Almacen',
warehouseFk: 'warehouseFk',
producer: 'Producer', producer: 'Producer',
category: 'category', category: 'Categoria',
warehouse: 'warehouse', warehouse: 'Almacen',
lack: 'Negativo', lack: 'Negativo',
inkFk: 'Color', inkFk: 'Color',
timed: 'timed', timed: 'Timed',
minTimed: 'Hora', minTimed: 'Hora',
type: 'Tipo', type: 'Tipo',
negativeAction: 'Negativo', negativeAction: 'Negativo',
@ -489,8 +488,7 @@ export default {
theoreticalhour: 'Hora teórica', theoreticalhour: 'Hora teórica',
agName: 'Agencia', agName: 'Agencia',
quantity: 'Cantidad', quantity: 'Cantidad',
alertLevel: 'Nivel de alerta', alertLevelCode: 'Estado agrupado',
alertLevelCode: 'Estado de Alerta',
state: 'Estado', state: 'Estado',
peticionCompra: 'Petición compra', peticionCompra: 'Petición compra',
isRookie: 'Cliente nuevo', isRookie: 'Cliente nuevo',

View File

@ -120,15 +120,6 @@ const tableColumnComponents = computed(() => ({
}, },
event: getInputEvents, event: getInputEvents,
}, },
alertLevel: {
component: VnInput,
props: {
type: 'number',
min: 0,
class: 'input-number',
},
event: getInputEvents,
},
alertLevelCode: { alertLevelCode: {
component: 'span', component: 'span',

View File

@ -26,13 +26,11 @@ const defaultParams = {
// to: toDateString(to), // to: toDateString(to),
}; };
const agencies = ref(); const warehouses = ref();
// const warehouses = ref();
</script> </script>
<template> <template>
<FetchData url="AgencyModes" @on-fetch="(data) => (agencies = data)" auto-load /> <FetchData url="Warehouses" @on-fetch="(data) => (warehouses = data)" auto-load />
<!-- <FetchData url="Warehouses" @on-fetch="(data) => (warehouses = data)" auto-load /> -->
<VnFilterPanel <VnFilterPanel
:data-key="props.dataKey" :data-key="props.dataKey"
:params="defaultParams" :params="defaultParams"
@ -44,15 +42,14 @@ const agencies = ref();
<span>{{ formatFn(tag.value) }}</span> <span>{{ formatFn(tag.value) }}</span>
</div> </div>
</template> </template>
<template #body="{ params }"> <template #body="{ params, searchFn }">
<!-- <template #body="{ params, searchFn }"> -->
<QList dense class="q-gutter-y-sm q-mt-sm"> <QList dense class="q-gutter-y-sm q-mt-sm">
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnInput <VnInput
v-model="params.id" v-model="params.id"
:label="t('ticket.negative.id')" :label="t('ticket.negative.id')"
is-outlined dense
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
@ -61,16 +58,16 @@ const agencies = ref();
<VnInput <VnInput
v-model="params.producer" v-model="params.producer"
:label="t('ticket.negative.producer')" :label="t('ticket.negative.producer')"
is-outlined dense
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnInput <VnInput
v-model="params.color" v-model="params.colour"
:label="t('ticket.negative.colour')" :label="t('ticket.negative.colour')"
is-outlined dense
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
@ -79,7 +76,7 @@ const agencies = ref();
<VnInput <VnInput
v-model="params.size" v-model="params.size"
:label="t('ticket.negative.size')" :label="t('ticket.negative.size')"
is-outlined dense
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
@ -88,7 +85,7 @@ const agencies = ref();
<VnInput <VnInput
v-model="params.origen" v-model="params.origen"
:label="t('ticket.negative.origen')" :label="t('ticket.negative.origen')"
is-outlined dense
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
@ -97,86 +94,26 @@ const agencies = ref();
<VnInput <VnInput
v-model="params.lack" v-model="params.lack"
:label="t('ticket.negative.value')" :label="t('ticket.negative.value')"
is-outlined dense
/>
</QItemSection>
</QItem>
<QItem v-if="warehouses">
<QItemSection>
<QSelect
:label="t('Warehouse')"
v-model="params.warehouse"
@update:model-value="searchFn()"
:options="warehouses"
option-value="id"
option-label="name"
emit-value
map-options
dense
/> />
</QItemSection> </QItemSection>
<!-- <QItemSection>
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
</QItemSection> -->
</QItem> </QItem>
<!-- <QItem>
<QItemSection v-if="!warehouses">
<QSkeleton type="QInput" class="full-width" />
</QItemSection>
<QItemSection v-if="warehouses">
<QSelect
:label="t('Warehouse')"
v-model="params.warehouseFk"
@update:model-value="searchFn()"
:options="warehouses"
option-value="id"
option-label="name"
emit-value
map-options
dense
outlined
rounded
/>
</QItemSection>
</QItem> -->
</QList> </QList>
</template> </template>
</VnFilterPanel> </VnFilterPanel>
</template> </template>
<i18n>
en:
params:
search: Contains
clientFk: Customer
orderFk: Order
from: From
to: To
salesPersonFk: Salesperson
stateFk: State
refFk: Invoice Ref.
myTeam: My team
pending: Pending
hasInvoice: Invoiced
hasRoute: Routed
provinceFk: Province
agencyModeFk: Agency
warehouseFk: Warehouse
es:
params:
search: Contiene
clientFk: Cliente
orderFk: Pedido
from: Desde
to: Hasta
salesPersonFk: Comercial
stateFk: Estado
refFk: Ref. Factura
myTeam: Mi equipo
pending: Pendiente
hasInvoice: Facturado
hasRoute: Enrutado
Customer ID: ID Cliente
Order ID: ID Pedido
From: Desde
To: Hasta
Salesperson: Comercial
State: Estado
Invoice Ref.: Ref. Factura
My team: Mi equipo
Pending: Pendiente
With problems: Con problemas
Invoiced: Facturado
Routed: Enrutado
More options: Más opciones
Province: Provincia
Agency: Agencia
Warehouse: Almacén
Yes: Si
No: No
</i18n>