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 {