forked from verdnatura/salix-front
Reviewed-on: verdnatura/salix-front#169 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
6c1bad1cf5
|
@ -1,6 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref } from 'vue';
|
import { reactive, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
|
|
||||||
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
|
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
@ -54,16 +55,18 @@ const onDataSaved = (data) => {
|
||||||
<template #form-inputs="{ data, validate }">
|
<template #form-inputs="{ data, validate }">
|
||||||
<VnRow class="row q-gutter-md q-mb-md">
|
<VnRow class="row q-gutter-md q-mb-md">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<QInput
|
<VnInput
|
||||||
:label="t('name')"
|
:label="t('name')"
|
||||||
v-model="data.name"
|
v-model="data.name"
|
||||||
|
:required="true"
|
||||||
:rules="validate('bankEntity.name')"
|
:rules="validate('bankEntity.name')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<QInput
|
<VnInput
|
||||||
:label="t('swift')"
|
:label="t('swift')"
|
||||||
v-model="data.bic"
|
v-model="data.bic"
|
||||||
|
:required="true"
|
||||||
:rules="validate('bankEntity.bic')"
|
:rules="validate('bankEntity.bic')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,11 +80,17 @@ const onDataSaved = (data) => {
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="country"
|
option-label="country"
|
||||||
hide-selected
|
hide-selected
|
||||||
|
:required="true"
|
||||||
:rules="validate('bankEntity.countryFk')"
|
:rules="validate('bankEntity.countryFk')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showEntityField" class="col">
|
<div v-if="showEntityField" class="col">
|
||||||
<QInput :label="t('id')" v-model="data.id" />
|
<VnInput
|
||||||
|
:label="t('id')"
|
||||||
|
v-model="data.id"
|
||||||
|
:required="true"
|
||||||
|
:rules="validate('city.name')"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</VnRow>
|
</VnRow>
|
||||||
</template>
|
</template>
|
||||||
|
@ -92,15 +101,15 @@ const onDataSaved = (data) => {
|
||||||
en:
|
en:
|
||||||
title: New bank entity
|
title: New bank entity
|
||||||
subtitle: Please, ensure you put the correct data!
|
subtitle: Please, ensure you put the correct data!
|
||||||
name: Name *
|
name: Name
|
||||||
swift: Swift *
|
swift: Swift
|
||||||
country: Country
|
country: Country
|
||||||
id: Entity code
|
id: Entity code
|
||||||
es:
|
es:
|
||||||
title: Nueva entidad bancaria
|
title: Nueva entidad bancaria
|
||||||
subtitle: ¡Por favor, asegúrate de poner los datos correctos!
|
subtitle: ¡Por favor, asegúrate de poner los datos correctos!
|
||||||
name: Nombre *
|
name: Nombre
|
||||||
swift: Swift *
|
swift: Swift
|
||||||
country: País
|
country: País
|
||||||
id: Código de la entidad
|
id: Código de la entidad
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -94,7 +94,7 @@ function handleFetch( data) {
|
||||||
:options="postcodesOptions"
|
:options="postcodesOptions"
|
||||||
:label="t('Location')"
|
:label="t('Location')"
|
||||||
:option-label="showLabel"
|
:option-label="showLabel"
|
||||||
:placeholder="t('Search by postalCode, town, province or country')"
|
:placeholder="t('search_by_postalcode')"
|
||||||
@input-value="locationFilter"
|
@input-value="locationFilter"
|
||||||
:default-filter="false"
|
:default-filter="false"
|
||||||
:input-debounce="300"
|
:input-debounce="300"
|
||||||
|
@ -129,7 +129,9 @@ function handleFetch( data) {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
|
en:
|
||||||
|
search_by_postalcode: Search by postalcode, town, province or country
|
||||||
es:
|
es:
|
||||||
Location: Ubicación
|
Location: Ubicación
|
||||||
Search by postalcode, town, province or country: Buscar por código postal, ciudad o país
|
search_by_postalcode: Buscar por código postal, ciudad o país
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -1108,5 +1108,6 @@ export default {
|
||||||
VnLv: {
|
VnLv: {
|
||||||
copyText: '{copyValue} has been copied to the clipboard',
|
copyText: '{copyValue} has been copied to the clipboard',
|
||||||
},
|
},
|
||||||
|
iban_tooltip: 'IBAN: ES21 1234 5678 90 0123456789',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1108,5 +1108,6 @@ export default {
|
||||||
VnLv: {
|
VnLv: {
|
||||||
copyText: '{copyValue} se ha copiado al portapepeles',
|
copyText: '{copyValue} se ha copiado al portapepeles',
|
||||||
},
|
},
|
||||||
|
iban_tooltip: 'IBAN: ES21 1234 5678 90 0123456789',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,7 +70,13 @@ const getBankEntities = () => {
|
||||||
|
|
||||||
<VnRow class="row q-gutter-md q-mb-md">
|
<VnRow class="row q-gutter-md q-mb-md">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<VnInput :label="t('IBAN')" v-model="data.iban" />
|
<VnInput :label="t('IBAN')" v-model="data.iban">
|
||||||
|
<template #append>
|
||||||
|
<QIcon name="info" class="cursor-info">
|
||||||
|
<QTooltip>{{ t('components.iban_tooltip') }}</QTooltip>
|
||||||
|
</QIcon>
|
||||||
|
</template>
|
||||||
|
</VnInput>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<VnSelectCreate
|
<VnSelectCreate
|
||||||
|
|
|
@ -99,10 +99,15 @@ onMounted(() => {
|
||||||
class="row q-gutter-md q-mb-md"
|
class="row q-gutter-md q-mb-md"
|
||||||
>
|
>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<VnInput
|
<VnInput :label="t('supplier.accounts.iban')" v-model="row.iban">
|
||||||
:label="t('supplier.accounts.iban')"
|
<template #append>
|
||||||
v-model="row.iban"
|
<QIcon name="info" class="cursor-info">
|
||||||
/>
|
<QTooltip>{{
|
||||||
|
t('components.iban_tooltip')
|
||||||
|
}}</QTooltip>
|
||||||
|
</QIcon>
|
||||||
|
</template>
|
||||||
|
</VnInput>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<VnSelectCreate
|
<VnSelectCreate
|
||||||
|
|
|
@ -248,7 +248,15 @@ onMounted(async () => {
|
||||||
v-model="data.iban"
|
v-model="data.iban"
|
||||||
:label="t('worker.create.iban')"
|
:label="t('worker.create.iban')"
|
||||||
:rules="validate('Worker.iban')"
|
:rules="validate('Worker.iban')"
|
||||||
/>
|
>
|
||||||
|
<template #append>
|
||||||
|
<QIcon name="info" class="cursor-info">
|
||||||
|
<QTooltip>{{
|
||||||
|
t('components.iban_tooltip')
|
||||||
|
}}</QTooltip>
|
||||||
|
</QIcon>
|
||||||
|
</template>
|
||||||
|
</VnInput>
|
||||||
</div>
|
</div>
|
||||||
<VnSelectCreate
|
<VnSelectCreate
|
||||||
:label="t('worker.create.bankEntity')"
|
:label="t('worker.create.bankEntity')"
|
||||||
|
|
Loading…
Reference in New Issue