fix:function_calculateAge
This commit is contained in:
parent
8867829211
commit
6f40ee330c
10 changed files with 41 additions and 152 deletions
|
|
@ -9,14 +9,11 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import { useLinkageStore } from "@/stores/linkage";
|
||||
import { useDataLinkCenter } from "@/modules/04_registryPerson/stores/LinkCenter";
|
||||
import { useRequestEditStore } from "@/modules/04_registryPerson/stores/RequestEdit";
|
||||
import { calculateAge } from "@/utils/function";
|
||||
|
||||
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||
import type { RequestregistrationAddressObject } from "@/modules/04_registryPerson/interface/request/Address";
|
||||
import type { RequestObject } from "@/modules/04_registryPerson/interface/request/Profile";
|
||||
import type {
|
||||
FormPerson,
|
||||
FormChildren,
|
||||
} from "@/modules/04_registryPerson/interface/index/family";
|
||||
|
||||
import Header from "@/components/DialogHeader.vue"; //ส่วนหัว popup
|
||||
import InformationPage from "@/modules/04_registryPerson/components/Dialog/01_Information.vue"; //form ข้อมูลส่วนตัว
|
||||
|
|
@ -268,7 +265,7 @@ async function amiRequest() {
|
|||
formInformations.birthDate = data.value.dateOfBirth
|
||||
? conventDateOfBirth(`${data.value.dateOfBirth}`)
|
||||
: null;
|
||||
age.value = storeLinkCenter.calculateAge(data.value.age);
|
||||
age.value = calculateAge(data.value.dateOfBirth);
|
||||
formInformations.gender = data.value.genderDesc;
|
||||
|
||||
let registrationAddress = data.value.houseNo ? data.value.houseNo : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue