From a8a82ac662dfa0d0d76c4789e4cd843b7b6b1274 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 13 Mar 2024 10:35:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=AA=E0=B9=88=E0=B8=A7=E0=B8=99?= =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B8=A7=20(=E0=B9=81=E0=B8=81=E0=B9=89?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=20mock=20=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/01_Profile.vue | 111 +++++++++++------- .../04_registryNew/interface/index/Main.ts | 44 ++++++- 2 files changed, 112 insertions(+), 43 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 377681861..1e2ba6767 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -10,14 +10,17 @@ import HistoryTable from "@/components/TableHistory.vue"; import DialogHeader from "@/components/DialogHeader.vue"; import type { InformationOps, + Information, DataOption, } from "@/modules/04_registryNew/interface/index/Main"; +import { defaultInformation } from "@/modules/04_registryNew/interface/index/Main"; import type { RequestItemsHistoryObject } from "@/modules/04_registryNew/interface/request/Information"; const $q = useQuasar(); const mixin = useCounterMixin(); const { showLoader, hideLoader, date2Thai, messageError } = mixin; +const informaData = ref(defaultInformation); const modal = ref(false); const myForm = ref(); const rowsHistory = ref([]); @@ -300,6 +303,26 @@ const visibleColumnsHistory = ref([ "createdAt", ]); +async function fetchData() { + informaData.value.cardid = resultData.value.citizenId; + informaData.value.prefixId = resultData.value.prefixId; + informaData.value.prefix = resultData.value.prefix; + informaData.value.firstname = resultData.value.firstName; + informaData.value.lastname = resultData.value.lastName; + informaData.value.birthDate = resultData.value.birthDate; + informaData.value.age = resultData.value.age; + informaData.value.genderId = resultData.value.genderId; + informaData.value.bloodId = resultData.value.bloodGroupId; + informaData.value.nationality = resultData.value.nationality; + informaData.value.ethnicity = resultData.value.race; + informaData.value.statusId = resultData.value.relationshipId; + informaData.value.religionId = resultData.value.religionId; + informaData.value.tel = resultData.value.telephoneNumber; + informaData.value.employeeType = resultData.value.employeeType; + informaData.value.employeeClass = resultData.value.employeeClass; + informaData.value.profileType = resultData.value.profileType; +} + // get person detail list async function fetchPerson() { // showLoader(); @@ -478,6 +501,7 @@ function onSubmit() { onMounted(async () => { await fetchPerson(); + await fetchData(); });