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 @@ @@ -500,8 +549,12 @@ function filterSelector(val: string, update: Function, refData: string) { changeNameData.prefix = profileInfo.prefix; changeNameData.firstName = profileInfo.firstName; changeNameData.lastName = profileInfo.lastName; + prefixChange = changeNameData.prefix; + firstNameChange = changeNameData.firstName; + lastNameChange = changeNameData.lastName; changeNameData.status = ''; dialogStatus = 'create'; + submitDisable = true; dialog = true; } " @@ -545,13 +598,12 @@ function filterSelector(val: string, update: Function, refData: string) { virtual-scroll ref="table" v-bind="attrs" + v-model:pagination="pagination" :rows="rows" :columns="columns" :filter="filterSearch" :rows-per-page-options="[0]" - :pagination="initialPagination" :visible-columns="visibleColumns" - :pagination-label="paginationLabel" :virtual-scroll-sticky-size-start="48" > @@ -630,325 +682,351 @@ function filterSelector(val: string, update: Function, refData: string) { - - + + - - - - - - - - + + + + + + + + + + + filterSelector(inputValue, doneFn,'statusOptions' ) " - dense - /> + dense + /> + - - - - + + filterSelector(inputValue, doneFn,'prefixOps' ) " - /> + /> + + + + + + + - - - - - - - - - (fileUpload = v[0])" - > - - - - ลบทั้งหมด - - - ลบไฟล์ที่อัปโหลด - - - - - {{ "[ไฟล์ jpg,png,pdf,csv,doc,docx ขนาดไม่เกิน 10MB]" }} - - - {{ scope.uploadSizeLabel }} / - {{ scope.uploadProgressLabel }} + + (fileUpload = v[0])" + > + + + + ลบทั้งหมด + + + ลบไฟล์ที่อัปโหลด + + + + + {{ "[ไฟล์ jpg,png,pdf,csv,doc,docx ขนาดไม่เกิน 10MB]" }} + + + {{ scope.uploadSizeLabel }} / + {{ scope.uploadProgressLabel }} + + + + เลือกไฟล์ + + + ยกเลิกการอัปโหลด + - - - เลือกไฟล์ - - - ยกเลิกการอัปโหลด - - - - - - กรุณาอัพโหลดเอกสาร - + + + + กรุณาอัพโหลดเอกสาร + + - - - - { - if (!!fileUpload) { - alertUpload = false; - } else { - alertUpload = true; + + + + + + + { + if (!!fileUpload && dialogStatus === 'create') { + alertUpload = false; + } else { + alertUpload = true; + } } - } - " - > - บันทึกข้อมูล - - + " + > + บันทึกข้อมูล + + + - + - - - - - - - - - - - - - - - + + + - - - - - {{ col.label }} - - - - - - - - - {{ col.value === "" ? "-" : col.value }} - - - - - - - - + + + + + + + + + + + + + + + + + + + + {{ col.label }} + + + + + + + + + {{ col.value === "" ? "-" : col.value }} + + + + + + + + + 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 () => { - + - - - - - - - - - - selectProvince(value, '1')" - @filter="(inputValue:string, - doneFn:Function) => filterSelector(inputValue, doneFn,'provinceOps' - ) " - /> - - - selectDistrict(value, '1')" - @filter="(inputValue:string, - doneFn:Function) => filterSelector(inputValue, doneFn,'districtOps' - ) " - /> - - - selectSubDistrict(value, '1')" - @filter="(inputValue:string, - doneFn:Function) => filterSelector(inputValue, doneFn,'subdistrictOps' - ) " - /> - - - - - - - - ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้าน - - - - - + + + + + + + + + { 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" /> - - + + + ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้าน + + + + + + + + + + + selectProvince(value, '2')" + @filter="(inputValue:string, + doneFn:Function) => filterSelector(inputValue, doneFn,'provinceOps' + ) " + /> + + + selectDistrict(value, '2')" + @filter="(inputValue:string, + doneFn:Function) => filterSelector(inputValue, doneFn,'districtOps' + ) " + /> + + + selectSubDistrict(value, '2')" + @filter="(inputValue:string, + doneFn:Function) => filterSelector(inputValue, doneFn,'subdistrictOps' + ) " + /> + + + + + + + + - - - บันทึก - - + + + + + บันทึกข้อมูล + + + - + - - - - - - - - - - - - - - - - + + + - - - > - - - - {{ col.label }} - - - - - - - - {{ col.value ? col.value : "-" }} - - - - + + + - - - - - - + + + + + + + + + + + + + + > + + + + {{ col.label }} + + + + + + + + {{ col.value ? col.value : "-" }} + + + + + + + + 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 () => { - + - - - + + + + + + - - - - - • บิดา - - - - - - - - - - + + + + + • บิดา - - filterSelector(inputValue, doneFn,'prefixOps' - ) " - /> - - - - - - - - - - - - - สถานภาพการมีชีวิต - + - - - - • มารดา - - - - - - - - - - - - - filterSelector(inputValue, doneFn,'prefixOps' - ) " - /> - - - - - - - - - - - - - สถานภาพการมีชีวิต - - - - - - - - - • คู่สมรส - - - - - - - - - - - - - filterSelector(inputValue, doneFn, 'prefixOps' - )" - /> - - - - - - - - - - - - - สถานภาพการมีชีวิต - - - - - - - - - • บุตร - - - เพิ่มข้อมูล - - - - - บุตรคนที่ : {{ index + 1 }} - - - - - - - - - filterSelector(inputValue, doneFn,'prefixOps' - ) " - /> - - - - - - - - - - - - - สถานภาพการมีชีวิต - - - - - - - - - + + + - ลบข้อมูลบุตรคนที่ {{ 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 }} + filterSelector(inputValue, doneFn,'prefixOps' + ) " + /> + + + + + + + + + - - สถานภาพการมีชีวิต - - มีชีวิตอยู่ - ถึงแก่กรรม + + สถานภาพการมีชีวิต + + + + + + • มารดา + + + + + + + + + + + + + filterSelector(inputValue, doneFn,'prefixOps' + ) " + /> + + + + + + + + + + + + + สถานภาพการมีชีวิต + + + + + + + + + • คู่สมรส + + + + + + + + + + + + + filterSelector(inputValue, doneFn, 'prefixOps' + )" + /> + + + + + + + + + + + + + สถานภาพการมีชีวิต + + + + + + + + + • บุตร + + + เพิ่มข้อมูล + + + + + + บุตรคนที่ : {{ index + 1 }} + + + + + + + + + + filterSelector(inputValue, doneFn,'prefixOps' + ) " + /> + + + + + + + + + + + + + สถานภาพการมีชีวิต + + + + + + + + + + ลบข้อมูลบุตรคนที่ {{ 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 () => { - - - - - - - - - - - - - - - + + + - - - - - {{ col.label }} - - - - - - - - - {{ col.value === "" ? "-" : col.value }} - - - - - - - - + + + + + + + + + + + + + + + + + + + + {{ col.label }} + + + + + + + + + {{ col.value === "" ? "-" : col.value }} + + + + + + + + + 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 () => { - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - บันทึกข้อมูล - - + + + + + + + + บันทึกข้อมูล + + + - + - - - - - - - - - - - - - - - + + + - - - - - {{ col.label }} - - - - - - - - {{ col.value ? col.value : "-" }} - - - - - - - + + + + + + + + + + + + + + + + + + + + {{ col.label }} + + + + + + + + {{ col.value ? col.value : "-" }} + + + + + + + + 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 @@ - + { - + + import { ref } from "vue"; +import { useQuasar } from "quasar"; import { useRouter, useRoute } from "vue-router"; import BasicInfo from "@/modules/15_development/components/BasicInfo.vue"; @@ -8,56 +9,81 @@ import ProjectDetail from "@/modules/15_development/components/ProjectDetail.vue import FollowResult from "@/modules/15_development/components/FollowResult.vue"; import Other from "@/modules/15_development/components/Other.vue"; +import { useCounterMixin } from "@/stores/mixin"; + +const $q = useQuasar(); const router = useRouter(); const route = useRoute(); +const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); const title = ref(route.params.id ? "แก้ไข" : "เพิ่ม"); const tab = ref("BasicInfo"); + +function onSubmit() { + dialogConfirm($q, () => {}); +} - - - {{ `${title}รายการโครงการ/หลักสูตรการฝึกอบรม` }} - - - - - - - - - - - - - - - - - - - - - + + + + {{ `${title}รายการโครงการ/หลักสูตรการฝึกอบรม` }} + + + บันทึกข้อมูล + + - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/15_development/components/Target.vue b/src/modules/15_development/components/Target.vue index eb8b87105..7b383b950 100644 --- a/src/modules/15_development/components/Target.vue +++ b/src/modules/15_development/components/Target.vue @@ -489,7 +489,8 @@ onMounted(() => { hide-bottom-space v-model="formGroupTarget.amount" label="จำนวน(คน)" - mask="#####" + mask="#" + reverse-fill-mask :rules="[ (val:string) => !!val || `${'กรุณากรอกจำนวน(คน)'}`, @@ -545,7 +546,8 @@ onMounted(() => { hide-bottom-space v-model="formGroupRelate.amount" label="จำนวน(คน)" - mask="#####" + mask="#" + reverse-fill-mask :rules="[ (val:string) => !!val || `${'กรุณากรอกจำนวน(คน)'}`, diff --git a/src/modules/15_development/views/MainPage.vue b/src/modules/15_development/views/MainPage.vue index ca45a44e8..18efe50cb 100644 --- a/src/modules/15_development/views/MainPage.vue +++ b/src/modules/15_development/views/MainPage.vue @@ -47,6 +47,27 @@ const columns = ref([ ]); const visibleColumns = ref(["year", "name", "org"]); +const itemDownload = ref([ + { + label: "ดาวน์โหลด 1", + value: "", + icon: "mdi-file-pdf-box", + color: "green", + }, + { + label: "ดาวน์โหลด 2", + value: "", + icon: "mdi-file-table", + color: "red", + }, + { + label: "ดาวน์โหลด 3", + value: "", + icon: "mdi-file-word", + color: "blue", + }, +]); + function fetchListProject() { showLoader(); const data = [ @@ -115,11 +136,33 @@ onMounted(() => { - + เพิ่ม + + + + + + + + {{ + items.label + }} + + + + +