0
0
Fork 0

examples(restore)

This commit is contained in:
Javier Segarra 2024-06-21 15:04:55 +02:00
parent ccbfe7e0d9
commit f0b329c226
4 changed files with 11 additions and 9 deletions

View File

@ -53,12 +53,7 @@ onMounted(async () => {
> >
<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">
<VnInput <VnInput :label="t('name')" v-model="data.name" :required="true" />
:label="t('name')"
v-model="data.name"
:required="true"
:rules="validate('bankEntity.name')"
/>
<VnInput <VnInput
ref="bicInputRef" ref="bicInputRef"
:label="t('swift')" :label="t('swift')"

View File

@ -56,7 +56,12 @@ const getBankEntities = (data, formData) => {
option-value="id" option-value="id"
v-model="data.payMethod" v-model="data.payMethod"
/> />
<VnInput :label="t('Due day')" clearable v-model="data.dueDay" /> <VnInput
:label="t('Due day')"
clearable
v-model="data.dueDay"
:required="true"
/>
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">

View File

@ -88,7 +88,6 @@ const redirectToEntryBasicData = (_, { id }) => {
option-label="nickname" option-label="nickname"
hide-selected hide-selected
:required="true" :required="true"
:rules="validate('entry.supplierFk')"
> >
<template #option="scope"> <template #option="scope">
<QItem v-bind="scope.itemProps"> <QItem v-bind="scope.itemProps">

View File

@ -80,6 +80,7 @@ const onIntrastatCreated = (response, formData) => {
option-label="name" option-label="name"
hide-selected hide-selected
map-options map-options
:required="true"
> >
<template #option="scope"> <template #option="scope">
<QItem v-bind="scope.itemProps"> <QItem v-bind="scope.itemProps">
@ -156,13 +157,14 @@ const onIntrastatCreated = (response, formData) => {
</VnSelectDialog> </VnSelectDialog>
<div class="col"> <div class="col">
<VnSelect <VnSelect
:label="t('basicData.expense')" :label="t('basicData.expfense')"
v-model="data.expenseFk" v-model="data.expenseFk"
:options="expensesOptions" :options="expensesOptions"
option-value="id" option-value="id"
option-label="name" option-label="name"
hide-selected hide-selected
map-options map-options
:required="true"
/> />
</div> </div>
</VnRow> </VnRow>
@ -172,6 +174,7 @@ const onIntrastatCreated = (response, formData) => {
v-model.number="data.weightByPiece" v-model.number="data.weightByPiece"
:min="0" :min="0"
type="number" type="number"
:required="true"
/> />
<VnInput <VnInput
:label="t('basicData.boxUnits')" :label="t('basicData.boxUnits')"