From 3d858a7a2f688101fb98ad21d1ad2fd23755a028 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 23 Jun 2025 15:19:44 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/04_FamilyNew.vue | 10 ++++------ .../04_registryPerson/interface/index/family.ts | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue index 4d84657b1..23c69e2bb 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue @@ -177,6 +177,7 @@ const coupleData = reactive({ job: "", lastNameOld: "", statusMarital: "", + isCouple: false, // ใช้สำหรับการแสดงผลใน UI }); const childData = ref([]); @@ -266,6 +267,7 @@ async function fetchDataCouple() { coupleData.job = data.coupleCareer; coupleData.lastNameOld = data.coupleLastNameOld; coupleData.statusMarital = data.relationship; + coupleData.isCouple = data.couple; } }) .catch((err) => { @@ -677,7 +679,7 @@ onMounted(async () => { > -
+
{
- +
คู่สมรส
diff --git a/src/modules/04_registryPerson/interface/index/family.ts b/src/modules/04_registryPerson/interface/index/family.ts index 395bbcdfd..cc8e78b38 100644 --- a/src/modules/04_registryPerson/interface/index/family.ts +++ b/src/modules/04_registryPerson/interface/index/family.ts @@ -7,6 +7,7 @@ interface FormPerson { job: string; lastNameOld?: string; statusMarital?: string; + isCouple?: boolean; } interface ChildrenFamily {