แก้ไข type
This commit is contained in:
parent
e72f86e1d4
commit
a3905a84b6
5 changed files with 32 additions and 12 deletions
|
|
@ -205,7 +205,7 @@ const defaultAdd = () => {
|
|||
if (props.statusAdd) {
|
||||
edit.value = props.statusAdd;
|
||||
name.value = "";
|
||||
if (uploader.value !== null) {
|
||||
if (uploader.value) {
|
||||
uploader.value.reset();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,11 @@
|
|||
lazy-rules
|
||||
:readonly="!edit"
|
||||
:borderless="!edit"
|
||||
:model-value="date2Thai(informaData.birthDate)"
|
||||
:model-value="
|
||||
informaData.birthDate == null
|
||||
? ''
|
||||
: date2Thai(informaData.birthDate)
|
||||
"
|
||||
:rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
|
||||
:label="`${'วัน/เดือน/ปี เกิด'}`"
|
||||
>
|
||||
|
|
@ -1051,7 +1055,10 @@ const editData = async () => {
|
|||
nationality: informaData.value.nationality,
|
||||
race: informaData.value.ethnicity,
|
||||
religionId: informaData.value.religionId,
|
||||
birthDate: dateToISO(informaData.value.birthDate) ?? dateToISO(new Date()),
|
||||
birthDate:
|
||||
informaData.value.birthDate == null
|
||||
? dateToISO(new Date())
|
||||
: dateToISO(informaData.value.birthDate),
|
||||
bloodGroupId: informaData.value.bloodId,
|
||||
relationshipId: informaData.value.statusId,
|
||||
telephoneNumber: informaData.value.tel,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue