@@ -138,7 +247,12 @@ function deleteChildren(items: any) {
color="primary"
icon="mdi-pencil-outline"
size="14px"
- @click="dialog = true"
+ @click="
+ () => {
+ editForm(rows);
+ dialog = true;
+ }
+ "
>
แก้ไขข้อมูล
@@ -148,7 +262,11 @@ function deleteChildren(items: any) {
color="blue"
icon="mdi-history"
size="14px"
- @click="historyDialog = true"
+ @click="
+ () => {
+ fetchHistoryData(id);
+ }
+ "
>
ประวัติการแก้ไข
@@ -166,17 +284,7 @@ function deleteChildren(items: any) {
เลขบัตรประจำตัวประชาชน
- {{
- `${fatherData.citizenId[0]}-${fatherData.citizenId.slice(
- 2,
- 6
- )}-${fatherData.citizenId.slice(
- 7,
- 12
- )}-${fatherData.citizenId.slice(13, 15)}-${
- fatherData.citizenId[16]
- }`
- }}
+ {{ fatherData.citizenId }}
@@ -199,8 +307,8 @@ function deleteChildren(items: any) {
สถานภาพการมีชีวิต
-
@@ -218,17 +326,7 @@ function deleteChildren(items: any) {
เลขบัตรประจำตัวประชาชน
- {{
- `${motherData.citizenId[0]}-${motherData.citizenId.slice(
- 2,
- 6
- )}-${motherData.citizenId.slice(
- 7,
- 12
- )}-${motherData.citizenId.slice(13, 15)}-${
- motherData.citizenId[16]
- }`
- }}
+ {{ motherData.citizenId }}
@@ -252,7 +350,7 @@ function deleteChildren(items: any) {
สถานภาพการมีชีวิต
-
มีชีวิตอยู่
+
มีชีวิตอยู่
ถึงแก่กรรม
@@ -270,17 +368,7 @@ function deleteChildren(items: any) {
เลขบัตรประจำตัวประชาชน
- {{
- `${spouseData.citizenId[0]}-${spouseData.citizenId.slice(
- 2,
- 6
- )}-${spouseData.citizenId.slice(
- 7,
- 12
- )}-${spouseData.citizenId.slice(13, 15)}-${
- spouseData.citizenId[16]
- }`
- }}
+ {{ spouseData.citizenId }}
@@ -304,7 +392,7 @@ function deleteChildren(items: any) {
สถานภาพการมีชีวิต
-
มีชีวิตอยู่
+
มีชีวิตอยู่
ถึงแก่กรรม
@@ -325,42 +413,32 @@ function deleteChildren(items: any) {
-
- {{
- `${children.citizenId[0]}-${children.citizenId.slice(
- 2,
- 6
- )}-${children.citizenId.slice(
- 7,
- 12
- )}-${children.citizenId.slice(13, 15)}-${
- children.citizenId[16]
- }`
- }}
+
+ {{ children.childrenCitizenId }}
คำนำหน้าชื่อ
- {{ children.prefix }}
+ {{ children.childrenPrefix }}
ชื่อ
- {{ children.firstName }}
+ {{ children.childrenFirstName }}
นามสกุล
- {{ children.lastName }}
+ {{ children.childrenLastName }}
อาชีพ
- {{ children.job }}
+ {{ children.childrenCareer }}
สถานภาพการมีชีวิต
-
มีชีวิตอยู่
+
มีชีวิตอยู่
ถึงแก่กรรม
@@ -371,7 +449,7 @@ function deleteChildren(items: any) {
-
+
@@ -416,8 +494,8 @@ function deleteChildren(items: any) {
dense
v-model="fatherData.citizenId"
:label="`${'เลขประจำตัวประชาชน'}`"
- maxlength="17"
- mask="#-####-#####-##-#"
+ maxlength="13"
+ mask="#############"
/>
@@ -476,7 +554,7 @@ function deleteChildren(items: any) {
@@ -573,7 +651,7 @@ function deleteChildren(items: any) {
dense
bg-color="white"
lazy-rules
- v-model="fatherData.lastName"
+ v-model="motherData.lastName"
:rules="[(val) => !!val || 'กรุณากรอกนามสกุล']"
label="นามสกุล"
/>
@@ -595,7 +673,7 @@ function deleteChildren(items: any) {
@@ -714,7 +792,7 @@ function deleteChildren(items: any) {
@@ -777,7 +855,7 @@ function deleteChildren(items: any) {
dense
lazy-rules
bg-color="white"
- v-model="items.prefix"
+ v-model="items.childrenPrefix"
:rules="[(val) => !!val || 'กรุณาเลือกคำนำหน้าชื่อ']"
:options="childrenOptionPrefix"
label="คำนำหน้าชื่อ"
@@ -789,7 +867,7 @@ function deleteChildren(items: any) {
dense
lazy-rules
bg-color="white"
- v-model="items.firstName"
+ v-model="items.childrenFirstName"
:rules="[(val) => !!val || 'กรุณากรอกชื่อ']"
label="ชื่อ"
/>
@@ -800,7 +878,7 @@ function deleteChildren(items: any) {
lazy-rules
bg-color="white"
dense
- v-model="items.lastName"
+ v-model="items.childrenLastName"
:rules="[(val) => !!val || 'กรุณากรอกนามสกุล']"
label="นามสกุล"
/>
@@ -810,7 +888,7 @@ function deleteChildren(items: any) {
outlined
bg-color="white"
dense
- v-model="items.job"
+ v-model="items.childrenCareer"
label="อาชีพ"
/>
@@ -819,23 +897,21 @@ function deleteChildren(items: any) {
สถานภาพการมีชีวิต
@@ -870,6 +946,7 @@ function deleteChildren(items: any) {
label="บันทึก"
color="public"
class="q-px-md"
+ @click=""
>
บันทึกข้อมูล
@@ -879,339 +956,194 @@ function deleteChildren(items: any) {
-
-
-
-
-
-
-
- ยังไม่รู้ว่าจะออกแบบยังไงครับ
+
+
+
+
+