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 () => { - + - - - - - -
-
- + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
-
- -
-
- - - - - - บันทึกข้อมูล - - + + + + + + + + บันทึกข้อมูล + + + - + - - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + 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 + }} + + + + +