WIP
This commit is contained in:
parent
cded128c4c
commit
c93a418dd3
|
@ -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>
|
|
@ -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
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue