forked from verdnatura/salix-front
refs #6321 perf: i18n
This commit is contained in:
parent
6b4dea6bf9
commit
370e52f7c4
|
@ -514,8 +514,8 @@ export default {
|
|||
size: 'Size',
|
||||
origen: 'Origen',
|
||||
value: 'Negative',
|
||||
itemFk: 'itemFk',
|
||||
warehouseFk: 'warehouseFk',
|
||||
itemFk: 'Article',
|
||||
warehouseFk: 'Warehouse',
|
||||
producer: 'Producer',
|
||||
category: 'category',
|
||||
warehouse: 'warehouse',
|
||||
|
@ -541,8 +541,7 @@ export default {
|
|||
theoreticalhour: 'Theoretical hour',
|
||||
agName: 'Agency',
|
||||
quantity: 'Quantity',
|
||||
alertLevel: 'Alert level',
|
||||
alertLevelCode: 'Altert state',
|
||||
alertLevelCode: 'Group state',
|
||||
state: 'State',
|
||||
peticionCompra: 'Buy request',
|
||||
isRookie: 'New client',
|
||||
|
|
|
@ -455,21 +455,20 @@ export default {
|
|||
},
|
||||
negative: {
|
||||
hour: 'Hora',
|
||||
id: 'Id_Articulo',
|
||||
id: 'Id Articulo',
|
||||
longName: 'Articulo',
|
||||
supplier: 'Productor',
|
||||
colour: 'Color',
|
||||
size: 'Medida',
|
||||
origen: 'Origen',
|
||||
value: 'Negativo',
|
||||
itemFk: 'itemFk',
|
||||
warehouseFk: 'warehouseFk',
|
||||
warehouseFk: 'Almacen',
|
||||
producer: 'Producer',
|
||||
category: 'category',
|
||||
warehouse: 'warehouse',
|
||||
category: 'Categoria',
|
||||
warehouse: 'Almacen',
|
||||
lack: 'Negativo',
|
||||
inkFk: 'Color',
|
||||
timed: 'timed',
|
||||
timed: 'Timed',
|
||||
minTimed: 'Hora',
|
||||
type: 'Tipo',
|
||||
negativeAction: 'Negativo',
|
||||
|
@ -489,8 +488,7 @@ export default {
|
|||
theoreticalhour: 'Hora teórica',
|
||||
agName: 'Agencia',
|
||||
quantity: 'Cantidad',
|
||||
alertLevel: 'Nivel de alerta',
|
||||
alertLevelCode: 'Estado de Alerta',
|
||||
alertLevelCode: 'Estado agrupado',
|
||||
state: 'Estado',
|
||||
peticionCompra: 'Petición compra',
|
||||
isRookie: 'Cliente nuevo',
|
||||
|
|
|
@ -120,15 +120,6 @@ const tableColumnComponents = computed(() => ({
|
|||
},
|
||||
event: getInputEvents,
|
||||
},
|
||||
alertLevel: {
|
||||
component: VnInput,
|
||||
props: {
|
||||
type: 'number',
|
||||
min: 0,
|
||||
class: 'input-number',
|
||||
},
|
||||
event: getInputEvents,
|
||||
},
|
||||
|
||||
alertLevelCode: {
|
||||
component: 'span',
|
||||
|
|
|
@ -26,13 +26,11 @@ const defaultParams = {
|
|||
// to: toDateString(to),
|
||||
};
|
||||
|
||||
const agencies = ref();
|
||||
// const warehouses = ref();
|
||||
const warehouses = ref();
|
||||
</script>
|
||||
|
||||
<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
|
||||
:data-key="props.dataKey"
|
||||
:params="defaultParams"
|
||||
|
@ -44,15 +42,14 @@ const agencies = ref();
|
|||
<span>{{ formatFn(tag.value) }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #body="{ params }">
|
||||
<!-- <template #body="{ params, searchFn }"> -->
|
||||
<template #body="{ params, searchFn }">
|
||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
||||
<QItem>
|
||||
<QItemSection>
|
||||
<VnInput
|
||||
v-model="params.id"
|
||||
:label="t('ticket.negative.id')"
|
||||
is-outlined
|
||||
dense
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
@ -61,16 +58,16 @@ const agencies = ref();
|
|||
<VnInput
|
||||
v-model="params.producer"
|
||||
:label="t('ticket.negative.producer')"
|
||||
is-outlined
|
||||
dense
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
<QItem>
|
||||
<QItemSection>
|
||||
<VnInput
|
||||
v-model="params.color"
|
||||
v-model="params.colour"
|
||||
:label="t('ticket.negative.colour')"
|
||||
is-outlined
|
||||
dense
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
@ -79,7 +76,7 @@ const agencies = ref();
|
|||
<VnInput
|
||||
v-model="params.size"
|
||||
:label="t('ticket.negative.size')"
|
||||
is-outlined
|
||||
dense
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
@ -88,7 +85,7 @@ const agencies = ref();
|
|||
<VnInput
|
||||
v-model="params.origen"
|
||||
:label="t('ticket.negative.origen')"
|
||||
is-outlined
|
||||
dense
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
@ -97,86 +94,26 @@ const agencies = ref();
|
|||
<VnInput
|
||||
v-model="params.lack"
|
||||
: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>
|
||||
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
|
||||
</QItemSection> -->
|
||||
</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>
|
||||
</template>
|
||||
</VnFilterPanel>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue