From c04ebf4d5598d4a19545db7f2b22704d3de29bd6 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Wed, 13 Mar 2024 13:13:49 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20=E0=B8=84=E0=B8=A5=E0=B8=B4?= =?UTF-8?q?=E0=B8=81=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B9=82=E0=B8=9B=E0=B8=A3=E0=B9=84=E0=B8=9F=E0=B8=A5?= =?UTF-8?q?=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registryNew/views/detailView.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/04_registryNew/views/detailView.vue b/src/modules/04_registryNew/views/detailView.vue index 68469e058..468b62b05 100644 --- a/src/modules/04_registryNew/views/detailView.vue +++ b/src/modules/04_registryNew/views/detailView.vue @@ -39,6 +39,12 @@ const itemsMenu = ref([ name: "อื่นๆ", }, ]); +const input = document.createElement("input"); +input.type = "file"; + +function selectFile() { + input.click(); +} function fetchDataPersonal() { const data = { @@ -148,7 +154,9 @@ onMounted(() => { text-color="primary" icon="mdi-pencil-outline" style="position: absolute; bottom: 0; right: 0" - /> + @click="selectFile" + > +
From 33ea044678b16e9d1641400d6e7e58be9851652c Mon Sep 17 00:00:00 2001 From: oat_dev Date: Wed, 13 Mar 2024 15:06:47 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=84=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/04_Family.vue | 1309 +++++++++-------- 1 file changed, 676 insertions(+), 633 deletions(-) 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 93004daae..e941320c2 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -12,42 +12,68 @@ const formRef = ref(null); const dialog = ref(false); const historyDialog = ref(false); -const fatherPrefixRef = ref(null); -const fatherFirstNameRef = ref(null); -const fatherLastNameRef = ref(null); -const fatherData = reactive({ - isHaveInfo: 0, +const fatherMockData = { + isHaveInfo: 1, isDead: false, - citizenId: null, - prefix: null, + citizenId: "1596079203945", + prefix: "นาย", optionPrefix: ["นาย", "จ่าสิบเอก"], - firstName: null, - lastName: null, - job: null, + firstName: "เมฐาพงศ์", + lastName: "ดิษยบุตร", + job: "ตำรวจ", +}; +const fatherData = reactive({ + isHaveInfo: 1, + isDead: 0, + citizenId: "1-1345-67891-01-2", + prefix: "นาย", + optionPrefix: ["นาย", "จ่าสิบเอก"], + firstName: "ณัฐพัฐ", + lastName: "ดิษยบุตร", + job: "ตำรวจ", }); const motherData = reactive({ isHaveInfo: 0, - isDead: false, - citizenId: null, - prefix: null, + isDead: 0, + citizenId: "1-1345-67891-01-2", + prefix: "นาง", optionPrefix: ["นาง", "นางสาว"], - firstName: null, - lastName: null, - job: null, + firstName: "นางอริญกัญญา", + lastName: "ดิษยบุตร", + job: "พยาบาล", }); const spouseData = reactive({ - isHave: 0, - isDead: false, - citizenId: null, - prefix: null, + isHave: 1, + isDead: 0, + citizenId: "4-1325-12312-01-3", + prefix: "นาย", optionPrefix: ["นาย", "นาง", "นางสาว"], - firstName: null, - lastName: null, - job: null, + firstName: "กัญจาพล", + lastName: "ดิอุรุกษา", + job: "ค้าขาย", }); const childrenData: any = reactive({ - childrens: [], + childrens: [ + { + isDead: 0, + citizenId: "4-1325-55512-01-3", + prefix: "เด็กชาย", + optionPrefix: ["นาย", "นาง", "นางสาว"], + firstName: "เด็กชาย", + lastName: "ดิอุรุกษา", + job: "ค้าขาย", + }, + { + isDead: 0, + citizenId: "7-2222-14545-01-3", + prefix: "เด็กหญิง", + optionPrefix: ["นาย", "นาง", "นางสาว"], + firstName: "เด็กหญิง", + lastName: "ดิอุรุกษา", + job: "ค้าขาย", + }, + ], // isHave: "0", // isAlive: "0", // citizenId: null, @@ -104,8 +130,7 @@ function deleteChildren(items: any) {