diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue index e4e0f1249..c5e87d9a1 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -6,7 +6,6 @@ import { QForm, useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; import { useRoute } from "vue-router"; -import DialogHistory from "@/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyHistory.vue"; import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile"; const mixin = useCounterMixin(); const $q = useQuasar(); @@ -105,7 +104,6 @@ const childrenDataEdit: any = reactive({ function editForm(rows: any) { if (rows !== null) { - fatherDataEdit.isHaveInfo = rows.fatherFirstName !== null ? 1 : 0; fatherDataEdit.isLive = rows.fatherLive ? 1 : 0; fatherDataEdit.citizenId = rows.fatherCitizenId; @@ -286,7 +284,9 @@ const addChildren = async () => { }; function deleteChildren(items: any) { - const index = childrenDataEdit.childrens.findIndex((r: any) => r.id == items.id); + const index = childrenDataEdit.childrens.findIndex( + (r: any) => r.id == items.id + ); childrenDataEdit.childrens.splice(index, 1); } @@ -356,17 +356,16 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ fatherData.prefix ? fatherData.prefix : "-" }} -
-
ชื่อ
-
- {{ fatherData.firstName ? fatherData.firstName : "-" }} -
-
นามสกุล
-
- {{ fatherData.lastName ? fatherData.lastName : "-" }} +
ชื่อ-นามสกุล
+
+ {{ + fatherData.prefix + ? fatherData.prefix + + fatherData.firstName + + " " + + fatherData.lastName + : "-" + }}
อาชีพ
@@ -398,17 +397,16 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ motherData.prefix ? motherData.prefix : "-" }} -
-
ชื่อ
-
- {{ motherData.firstName ? motherData.firstName : "-" }} -
-
นามสกุล
-
- {{ motherData.lastName ? motherData.lastName : "-" }} +
ชื่อ-นามสกุล
+
+ {{ + motherData.prefix + ? motherData.prefix + + motherData.firstName + + " " + + motherData.lastName + : "-" + }}
อาชีพ
@@ -440,17 +438,16 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ spouseData.prefix ? spouseData.prefix : "-" }} -
-
ชื่อ
-
- {{ spouseData.firstName ? spouseData.firstName : "-" }} -
-
นามสกุล
-
- {{ spouseData.lastName ? spouseData.lastName : "-" }} +
ชื่อ-นามสกุล
+
+ {{ + spouseData.prefix + ? spouseData.prefix + + spouseData.firstName + + " " + + spouseData.lastName + : "-" + }}
อาชีพ
@@ -486,17 +483,16 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ children.childrenPrefix }} -
-
ชื่อ
-
- {{ children.childrenFirstName }} -
-
นามสกุล
-
- {{ children.childrenLastName }} +
ชื่อ-นามสกุล
+
+ {{ + children.childrenPrefix + ? children.childrenPrefix + + children.childrenFirstName + + " " + + children.childrenLastName + : "-" + }}
อาชีพ
@@ -839,7 +835,11 @@ onMounted(async () => { />
- +
{ เพิ่มข้อมูล
-
+
บุตรคนที่ : {{ index + 1 }} @@ -1112,6 +1115,7 @@ onMounted(async () => { + {
ไม่พบข้อมูล
-
+
@@ -1160,17 +1164,14 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].fatherPrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].fatherFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].fatherLastName }} +
ชื่อ-นามสกุล
+
+ {{ + historyRows[index - 1].fatherPrefix + + historyRows[index - 1].fatherFirstName + + " " + + historyRows[index - 1].fatherLastName + }}
อาชีพ
@@ -1206,17 +1207,14 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].motherPrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].motherFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].motherLastName }} +
ชื่อ-นามสกุล
+
+ {{ + historyRows[index - 1].motherPrefix + + historyRows[index - 1].motherFirstName + + " " + + historyRows[index - 1].motherLastName + }}
อาชีพ
@@ -1259,17 +1257,14 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].couplePrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].coupleFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].coupleLastName }} +
ชื่อ-นามสกุล
+
+ {{ + historyRows[index - 1].couplePrefix + + historyRows[index - 1].coupleFirstName + + " " + + historyRows[index - 1].coupleLastName + }}
อาชีพ
@@ -1318,17 +1313,14 @@ onMounted(async () => {
-
คำนำหน้าชื่อ
-
- {{ children.childrenPrefix }} -
-
ชื่อ
-
- {{ children.childrenFirstName }} -
-
นามสกุล
-
- {{ children.childrenLastName }} +
ชื่อ-นามสกุล
+
+ {{ + children.childrenPrefix + + children.childrenFirstName + + " " + + children.childrenLastName + }}
อาชีพ
@@ -1346,14 +1338,15 @@ onMounted(async () => {
- - -
- -
-
+ + + +
+ +
+
diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyHistory.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyHistory.vue deleted file mode 100644 index 2f0f0b731..000000000 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyHistory.vue +++ /dev/null @@ -1,236 +0,0 @@ - - -