From 11abca5e07015a560b1febd4876ae35f26dbda6b Mon Sep 17 00:00:00 2001 From: oat_dev Date: Tue, 2 Apr 2024 10:00:41 +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=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B9=81=E0=B8=97=E0=B9=87=E0=B8=9A=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=AA=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=95=E0=B8=B1=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_NameChangeHistory.vue | 706 ++++---- .../detail/PersonalInformation/03_Address.vue | 511 +++--- .../detail/PersonalInformation/04_Family.vue | 1553 +++++++++-------- .../PersonalInformation/05_Education.vue | 171 +- .../PersonalInformation/06_SpecialSkill.vue | 327 ++-- 5 files changed, 1730 insertions(+), 1538 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue index 9c775b504..9f9e937d6 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -1,5 +1,5 @@ diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue index cf822c7c2..8038a4515 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue @@ -566,133 +566,22 @@ onMounted(async () => { - + - - - - -
- -
-
-
- -
-
- -
-
- -
-
- -
-
- -
- - - -
- -
+ + + + + + + + +
{ hide-bottom-space type="textarea" class="inputgreen" - v-model="formData.currentAddress" - :label="dataLabel.currentAddress" - :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ปัจจุบัน'}`]" + v-model="formData.registrationAddress" + :label="dataLabel.registrationAddress" + :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ตามทะเบียนบ้าน'}`]" />
@@ -720,11 +609,11 @@ onMounted(async () => { option-label="name" input-debounce="0" class="inputgreen" - v-model="formData.currentProvinceId" + v-model="formData.registrationProvinceId" :options="store.Ops.provinceOps" - :label="dataLabel.currentProvince" + :label="dataLabel.registrationProvince" :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]" - @update:model-value="(value:string) => selectProvince(value, '2')" + @update:model-value="(value:string) => selectProvince(value, '1')" @filter="(inputValue:string, doneFn:Function) => filterSelector(inputValue, doneFn,'provinceOps' ) " @@ -743,11 +632,11 @@ onMounted(async () => { option-label="name" input-debounce="0" class="inputgreen" - v-model="formData.currentDistrictId" - :options="store.Ops.districtCOps" - :label="dataLabel.currentDistrict" + v-model="formData.registrationDistrictId" + :options="store.Ops.districtOps" + :label="dataLabel.registrationDistrict" :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]" - @update:model-value="(value:string) => selectDistrict(value, '2')" + @update:model-value="(value:string) => selectDistrict(value, '1')" @filter="(inputValue:string, doneFn:Function) => filterSelector(inputValue, doneFn,'districtOps' ) " @@ -766,11 +655,11 @@ onMounted(async () => { option-label="name" input-debounce="0" class="inputgreen" - v-model="formData.currentSubDistrictId" - :options="store.Ops.subdistrictCOps" - :label="dataLabel.currentSubDistrict" + v-model="formData.registrationSubDistrictId" + :options="store.Ops.subdistrictOps" + :label="dataLabel.registrationSubDistrict" :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล'}`]" - @update:model-value="(value:string) => selectSubDistrict(value, '2')" + @update:model-value="(value:string) => selectSubDistrict(value, '1')" @filter="(inputValue:string, doneFn:Function) => filterSelector(inputValue, doneFn,'subdistrictOps' ) " @@ -783,127 +672,249 @@ onMounted(async () => { outlined lazy-rules hide-bottom-space - v-model="formData.currentZipCode" + v-model="formData.registrationZipCode" :label="dataLabel.registrationZipCode" />
- -
+ +
+ + + +
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ + -
- - บันทึก - -
+ + + + + บันทึกข้อมูล + + +
-
+
- - - - - - - -
- - - - - + + + -
- - > - - + + + - - -
-
+ + +
+ + + + + +
+ + > + + + +
+
+
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 e197f856e..5f8e42370 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -455,780 +455,837 @@ onMounted(async () => { - + - - - + + + + + + - - -
-
- • บิดา -
-
- - -
-
- -
-
- + + +
+
+ • บิดา
-
- -
-
- -
-
- -
-
- -
-
-
-
สถานภาพการมีชีวิต
-
+
- -
-
- • มารดา -
-
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
สถานภาพการมีชีวิต
-
- - -
-
-
-
-
- • คู่สมรส -
-
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
สถานภาพการมีชีวิต
-
- - -
-
-
-
-
- • บุตร -
- - เพิ่มข้อมูล - -
-
-
-
บุตรคนที่ : {{ index + 1 }}
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
สถานภาพการมีชีวิต
-
- - -
-
-
-
-
- +
+
+ - ลบข้อมูลบุตรคนที่ {{ index + 1 }} - + v-model="fatherData.citizenId" + :label="`${'เลขประจำตัวประชาชน'}`" + maxlength="13" + :rules="[ + (val) => val.length === 13 || 'กรุณากรอกเลขบัตรประชาชน', + ]" + class="inputgreen" + mask="#############" + />
-
-
-
- - - - - บันทึกข้อมูล - - - - - - - - - - - -
ไม่พบข้อมูล
-
-
-
-
- แก้ไขโดย {{ historyRows[index - 1].lastUpdateFullName }} -
-
- วันที่แก้ไข {{ date2Thai(historyRows[index - 1].lastUpdatedAt) }} -
-
-
-
- • บิดา -
-
- -
-
-
เลขบัตรประจำตัวประชาชน
-
-
- {{ historyRows[index - 1].fatherCitizenId }} -
-
-
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].fatherPrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].fatherFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].fatherLastName }} -
-
อาชีพ
-
- {{ historyRows[index - 1].fatherCareer }} -
-
-
-
สถานภาพการมีชีวิต
-
-
มีชีวิตอยู่
-
ถึงแก่กรรม
-
-
-
-
-
-
-
- • มารดา -
-
- -
-
-
เลขบัตรประจำตัวประชาชน
-
-
- {{ historyRows[index - 1].motherCitizenId }} -
-
-
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].motherPrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].motherFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].motherLastName }} -
-
อาชีพ
-
- {{ historyRows[index - 1].motherCareer }} -
-
-
-
สถานภาพการมีชีวิต
-
-
มีชีวิตอยู่
-
ถึงแก่กรรม
-
-
-
-
-
-
-
- • คู่สมรส -
-
- -
-
-
เลขบัตรประจำตัวประชาชน
-
-
- {{ historyRows[index - 1].coupleCitizenId }} -
-
-
-
คำนำหน้าชื่อ
-
- {{ historyRows[index - 1].couplePrefix }} -
-
ชื่อ
-
- {{ historyRows[index - 1].coupleFirstName }} -
-
นามสกุล
-
- {{ historyRows[index - 1].coupleLastName }} -
-
อาชีพ
-
- {{ historyRows[index - 1].coupleCareer }} -
-
-
-
สถานภาพการมีชีวิต
-
-
มีชีวิตอยู่
-
ถึงแก่กรรม
-
-
-
-
-
-
-
- • บุตร -
-
-
-
-
บุตรคนที่ : {{ index }}
-
- -
-
-
เลขบัตรประจำตัวประชาชน
-
-
- {{ children.childrenCitizenId }} -
-
-
-
คำนำหน้าชื่อ
-
- {{ children.childrenPrefix }} -
-
ชื่อ
-
- {{ children.childrenFirstName }} -
-
นามสกุล
-
- {{ children.childrenLastName }} -
-
อาชีพ
- {{ children.childrenCareer }} + +
+
+ +
+
+ +
+
+
-
-
สถานภาพการมีชีวิต
-
-
มีชีวิตอยู่
-
ถึงแก่กรรม
+
+
สถานภาพการมีชีวิต
+
+ +
+
+
+ • มารดา +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
สถานภาพการมีชีวิต
+
+ + +
+
+
+
+
+ • คู่สมรส +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
สถานภาพการมีชีวิต
+
+ + +
+
+
+
+
+ • บุตร +
+ + เพิ่มข้อมูล + +
+
+
+
+ บุตรคนที่ : {{ index + 1 }} +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
สถานภาพการมีชีวิต
+
+ + +
+
+
+
+
+ + ลบข้อมูลบุตรคนที่ {{ index + 1 }} + +
+
+
+
+ + + + + + + + บันทึกข้อมูล + + + + + + + + + + + + + + + + + +
ไม่พบข้อมูล
+
+
+
+
+ แก้ไขโดย {{ historyRows[index - 1].lastUpdateFullName }} +
+
+ วันที่แก้ไข + {{ date2Thai(historyRows[index - 1].lastUpdatedAt) }} +
+
+
+
+ • บิดา +
+
+ +
+
+
เลขบัตรประจำตัวประชาชน
+
+
+ {{ historyRows[index - 1].fatherCitizenId }} +
+
+
+
คำนำหน้าชื่อ
+
+ {{ historyRows[index - 1].fatherPrefix }} +
+
ชื่อ
+
+ {{ historyRows[index - 1].fatherFirstName }} +
+
นามสกุล
+
+ {{ historyRows[index - 1].fatherLastName }} +
+
อาชีพ
+
+ {{ historyRows[index - 1].fatherCareer }} +
+
+
+
สถานภาพการมีชีวิต
+
+
+ มีชีวิตอยู่ +
+
ถึงแก่กรรม
+
+
+
+
+
+
+
+ • มารดา +
+
+ +
+
+
เลขบัตรประจำตัวประชาชน
+
+
+ {{ historyRows[index - 1].motherCitizenId }} +
+
+
+
คำนำหน้าชื่อ
+
+ {{ historyRows[index - 1].motherPrefix }} +
+
ชื่อ
+
+ {{ historyRows[index - 1].motherFirstName }} +
+
นามสกุล
+
+ {{ historyRows[index - 1].motherLastName }} +
+
อาชีพ
+
+ {{ historyRows[index - 1].motherCareer }} +
+
+
+
สถานภาพการมีชีวิต
+
+
+ มีชีวิตอยู่ +
+
ถึงแก่กรรม
+
+
+
+
+
+
+
+ • คู่สมรส +
+
+ +
+
+
เลขบัตรประจำตัวประชาชน
+
+
+ {{ historyRows[index - 1].coupleCitizenId }} +
+
+
+
คำนำหน้าชื่อ
+
+ {{ historyRows[index - 1].couplePrefix }} +
+
ชื่อ
+
+ {{ historyRows[index - 1].coupleFirstName }} +
+
นามสกุล
+
+ {{ historyRows[index - 1].coupleLastName }} +
+
อาชีพ
+
+ {{ historyRows[index - 1].coupleCareer }} +
+
+
+
สถานภาพการมีชีวิต
+
+
+ มีชีวิตอยู่ +
+
ถึงแก่กรรม
+
+
+
+
+
+
+
+ • บุตร +
+
+
+
+
บุตรคนที่ : {{ index }}
+
+ +
+
+
เลขบัตรประจำตัวประชาชน
+
+
+ {{ children.childrenCitizenId }} +
+
+
+
คำนำหน้าชื่อ
+
+ {{ children.childrenPrefix }} +
+
ชื่อ
+
+ {{ children.childrenFirstName }} +
+
นามสกุล
+
+ {{ children.childrenLastName }} +
+
อาชีพ
+
+ {{ children.childrenCareer }} +
+
+
+
สถานภาพการมีชีวิต
+
+
มีชีวิตอยู่
+
ถึงแก่กรรม
+
+
+
+
+
-
-
-
- -
-
+ + +
+ +
+
+ + + diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue index fd0234685..fed637cf7 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -448,6 +448,11 @@ const pagination = ref({ rowsPerPage: 10, }); +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + const visibleColumns = ref([ "educationLevel", "institute", @@ -628,6 +633,7 @@ async function addData() { ...educationData, startYear: undefined, endYear: undefined, + isDate: isDate.value === "false" ? false : true, }) .then(() => { fetchData(id.value); @@ -648,6 +654,7 @@ function editData(idData: string) { profileId: undefined, startYear: undefined, endYear: undefined, + isDate: isDate.value === "false" ? false : true, }) .then(() => { fetchData(id.value); @@ -958,7 +965,11 @@ onMounted(async () => { @@ -1410,82 +1421,92 @@ onMounted(async () => { - - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/06_SpecialSkill.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/06_SpecialSkill.vue index 56460121b..03f2dcffe 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/06_SpecialSkill.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/06_SpecialSkill.vue @@ -165,6 +165,11 @@ const pagination = ref({ rowsPerPage: 10, }); +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + const visibleColumns = ref([ "field", "detail", @@ -238,7 +243,6 @@ async function fetchHistoryData(id: string) { .get(config.API.profileNewAbilityHisByAbilityId(id)) .then(async (res) => { historyRows.value = res.data.result; - console.log(res.data.result); }) .catch((err) => { messageError($q, err); @@ -434,19 +438,6 @@ onMounted(async () => { > ประวัติแก้ไขความสามารถพิเศษ - - ลบข้อมูล - @@ -504,151 +495,185 @@ onMounted(async () => { - + - - - - - -
-
- + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
-
- -
-
- - - - - - บันทึกข้อมูล - - + + + + + + + + บันทึกข้อมูล + + + - + - - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + From 71b92a24b5e17525daee834fd0d6dc6a6d12cd28 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 2 Apr 2024 10:23:22 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3/=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=B9=E0=B8=95=E0=B8=A3=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9D=E0=B8=B6=E0=B8=81=E0=B8=AD=E0=B8=9A=E0=B8=A3=E0=B8=A1?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=82=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=B8=E0=B8=87=E0=B9=80=E0=B8=97=E0=B8=9E?= =?UTF-8?q?=E0=B8=A1=E0=B8=AB=E0=B8=B2=E0=B8=99=E0=B8=84=E0=B8=A3=E0=B9=80?= =?UTF-8?q?=E0=B8=9B=E0=B9=87=E0=B8=99=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=88?= =?UTF-8?q?=E0=B8=B1=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/BasicInfo.vue | 10 +- .../15_development/components/MainTab.vue | 110 +++++++++++------- .../15_development/components/Target.vue | 6 +- src/modules/15_development/views/MainPage.vue | 45 ++++++- 4 files changed, 121 insertions(+), 50 deletions(-) diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index ab7f6ee68..90d4dceeb 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -1,5 +1,5 @@ - + เพิ่ม
+ + + + + + + + {{ + items.label + }} + + + + +