fix: params.departmentFk i18n and ticketFilter.groupedStates
This commit is contained in:
parent
69da78b655
commit
a49c8891a7
|
@ -122,6 +122,7 @@ const props = defineProps({
|
|||
<i18n>
|
||||
en:
|
||||
params:
|
||||
departmentFk: Department
|
||||
search: Contains
|
||||
clientFk: Customer
|
||||
clientName: Customer
|
||||
|
@ -134,6 +135,7 @@ en:
|
|||
zoneFk: Zone
|
||||
es:
|
||||
params:
|
||||
departmentFk: Departamento
|
||||
search: Contiene
|
||||
clientFk: Cliente
|
||||
clientName: Cliente
|
||||
|
|
|
@ -163,6 +163,7 @@ en:
|
|||
email: Email
|
||||
isToBeMailed: Mailed
|
||||
isEqualizated: Equailized
|
||||
departmentFk: Department
|
||||
businessTypeFk: Business type
|
||||
sageTaxTypeFk: Sage Tax Type
|
||||
sageTransactionTypeFk: Sage Tax Type
|
||||
|
@ -173,6 +174,7 @@ en:
|
|||
postcode: Postcode
|
||||
es:
|
||||
params:
|
||||
departmentFk: Departamento
|
||||
search: Contiene
|
||||
fi: NIF
|
||||
isActive: Activo
|
||||
|
|
|
@ -196,8 +196,10 @@ en:
|
|||
date: L. O. Date
|
||||
credit: Credit I.
|
||||
defaulterSinced: From
|
||||
departmentFk: Department
|
||||
es:
|
||||
params:
|
||||
departmentFk: Departamento
|
||||
clientFk: Cliente
|
||||
countryFk: País
|
||||
paymentMethod: F. Pago
|
||||
|
|
|
@ -141,8 +141,10 @@ en:
|
|||
myTeam: My Team
|
||||
isConfirmed: Order Confirmed
|
||||
showEmpty: Show Empty
|
||||
departmentFk: Department
|
||||
es:
|
||||
params:
|
||||
departmentFk: Departamento
|
||||
search: Búsqueda
|
||||
clientFk: Cliente
|
||||
agencyModeFk: Agencia
|
||||
|
|
|
@ -22,16 +22,6 @@ const states = ref([]);
|
|||
const agencies = ref([]);
|
||||
const warehouses = ref([]);
|
||||
const groupedStates = ref([]);
|
||||
|
||||
const getGroupedStates = (data) => {
|
||||
for (const state of data) {
|
||||
groupedStates.value.push({
|
||||
id: state.id,
|
||||
name: t(`${state.code}`),
|
||||
code: state.code,
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -39,12 +29,11 @@ const getGroupedStates = (data) => {
|
|||
<FetchData url="States" @on-fetch="(data) => (states = data)" auto-load />
|
||||
<FetchData
|
||||
url="AlertLevels"
|
||||
@on-fetch="
|
||||
(data) => {
|
||||
getGroupedStates(data);
|
||||
}
|
||||
"
|
||||
auto-load
|
||||
@on-fetch="
|
||||
(data) =>
|
||||
(groupedStates = data.map((x) => Object.assign(x, { code: t(x.code) })))
|
||||
"
|
||||
/>
|
||||
<FetchData
|
||||
url="AgencyModes"
|
||||
|
@ -136,19 +125,17 @@ const getGroupedStates = (data) => {
|
|||
</QItemSection>
|
||||
<QItemSection v-if="groupedStates">
|
||||
<VnSelect
|
||||
:label="t('Grouped state')"
|
||||
:label="t('params.groupedStates')"
|
||||
v-model="params.groupedStates"
|
||||
@update:model-value="searchFn()"
|
||||
:options="groupedStates"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
option-label="code"
|
||||
emit-value
|
||||
map-options
|
||||
use-input
|
||||
dense
|
||||
outlined
|
||||
rounded
|
||||
sort-by="name ASC"
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
@ -326,7 +313,7 @@ en:
|
|||
ON_PREPARATION: On preparation
|
||||
PACKED: Packed
|
||||
DELIVERED: Delivered
|
||||
ON_PREVIOUS: ON_PREVIOUS
|
||||
ON_PREVIOUS: On previous
|
||||
es:
|
||||
params:
|
||||
search: Contiene
|
||||
|
@ -371,7 +358,7 @@ es:
|
|||
ON_PREPARATION: En preparación
|
||||
PACKED: Encajado
|
||||
DELIVERED: Servido
|
||||
ON_PREVIOUS: ON_PREVIOUS
|
||||
ON_PREVIOUS: En previa
|
||||
Collection: Colección
|
||||
Nickname: Nombre mostrado
|
||||
</i18n>
|
||||
|
|
|
@ -119,8 +119,11 @@ en:
|
|||
lastName: Last name
|
||||
userName: User
|
||||
extension: Extension
|
||||
departmentFk: Department
|
||||
es:
|
||||
|
||||
params:
|
||||
departmentFk: Departamento
|
||||
search: Contiene
|
||||
firstName: Nombre
|
||||
lastName: Apellidos
|
||||
|
|
Loading…
Reference in New Issue