This commit is contained in:
William Buezas 2023-12-12 11:58:44 -03:00
parent cded128c4c
commit c93a418dd3
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,26 @@
<script setup>
import { reactive } from 'vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const formData = reactive({
name: null,
bic: null,
countryFk: null,
id: null,
});
</script>
<template>
<QDialog>
<QInput :label="t('name')" v-model="formData.name" />
</QDialog>
</template>
<i18n>
en:
name: Name *
es:
name: Nombre *
</i18n>

View File

@ -38,6 +38,10 @@ const newWorkerForm = ref({
city: null,
street: null,
name: null,
email: null,
bossFk: null,
iban: null,
bankEntityFk: null,
});
const filtersOptions = reactive({
@ -112,7 +116,6 @@ const onFetchWorkerConfig = (workerConfig) => {
url-create="Workers/new"
model="worker"
:form-initial-data="newWorkerForm"
:observe-form-changes="false"
>
<template #form="{ data }">
<VnRow class="row q-gutter-md q-mb-md">
@ -170,7 +173,7 @@ const onFetchWorkerConfig = (workerConfig) => {
:label="t('worker.create.city')"
v-model="data.city"
:options="filtersOptions.towns"
option-value="id"
option-value="name"
option-label="name"
hide-selected
>