fix: uploadfile missing

This commit is contained in:
Thanaphon Frappet 2024-10-01 11:24:46 +07:00
parent b1aacbca73
commit 5383225538
3 changed files with 179 additions and 3 deletions

View file

@ -66,7 +66,9 @@ const employmentOfficeEN = defineModel<string | null | undefined>(
const optionStore = useOptionStore();
const namePrefix = defineModel<string | null>('namePrefix');
const birthDate = defineModel<Date | string | null>('birthDate');
const gender = defineModel<string>('gender', { required: true });
const gender = defineModel<string>('gender', {
required: true,
});
const address = defineModel<string>('address');
const firstName = defineModel<string>('firstName', { required: true });
@ -195,6 +197,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:id="`${prefixId}-input-birth-date`"
:readonly="readonly"
clearable
:rules="[(val: string) => !!val || $t('form.error.required')]"
/>
<q-input
@ -206,6 +209,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:label="$t('general.nationality')"
for="input-nationality"
v-model="nationality"
:rules="[(val: string) => !!val || $t('form.error.required')]"
/>
<q-input
@ -218,7 +222,6 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
for="input-religion"
v-model="religion"
/>
<q-select
outlined
use-input
@ -243,6 +246,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
(v) => (typeof v === 'string' ? (gender = v) : '')
"
@clear="gender = ''"
:rules="[(val: string) => !!val || $t('form.error.required')]"
>
<template v-slot:no-option>
<q-item>
@ -281,6 +285,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
}
"
@clear="namePrefix = ''"
:rules="[(val: string) => !!val || $t('form.error.required')]"
>
<template v-slot:no-option>
<q-item>
@ -379,6 +384,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:id="`${prefixId}-input-issue-date`"
:readonly="readonly"
clearable
:rules="[(val: string) => !!val || $t('form.error.required')]"
/>
<DatePicker
@ -388,6 +394,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:id="`${prefixId}-input-passport-expiry-date`"
:readonly="readonly"
clearable
:rules="[(val: string) => !!val || $t('form.error.required')]"
/>
</div>
</div>