diff --git a/src/modules/04_registryNew/components/DialogAddData.vue b/src/modules/04_registryNew/components/DialogAddData.vue index 909e18506..44b9f34ab 100644 --- a/src/modules/04_registryNew/components/DialogAddData.vue +++ b/src/modules/04_registryNew/components/DialogAddData.vue @@ -21,11 +21,9 @@ const profileStore = useProfileDataStore(); const $q = useQuasar(); const store = useRegistryNewDataStore(); const { - dialogRemove, dialogConfirm, success, messageError, - showLoader, hideLoader, dialogMessageNotify, date2Thai, @@ -54,24 +52,6 @@ const formData = reactive({ birthDate: null, }); -const prefixRef = ref(null); -const firstNameRef = ref(null); -const lastNameRef = ref(null); -const citizenIdRef = ref(null); -const positionRef = ref(null); -const posTypeIdRef = ref(null); -const posLevelIdRef = ref(null); - -const objectRef: MyObjectRef = { - prefix: prefixRef, - firstName: firstNameRef, - lastName: lastNameRef, - citizenId: citizenIdRef, - position: positionRef, - posTypeId: posTypeIdRef, - posLevelId: posLevelIdRef, -}; - function fetchPrefix() { http .get(config.API.orgPrefix) @@ -152,22 +132,6 @@ function clearFormData() { formData.birthDate = null; } -function validateForm() { - const hasError = []; - for (const key in objectRef) { - if (Object.prototype.hasOwnProperty.call(objectRef, key)) { - const property = objectRef[key]; - if (property.value && typeof property.value.validate === "function") { - const isValid = property.value.validate(); - hasError.push(isValid); - } - } - } - if (hasError.every((result) => result === true)) { - onSubmit(); - } -} - async function onSubmit() { dialogConfirm($q, async () => { await http @@ -209,35 +173,38 @@ watch( diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index cb75991a6..34ea0f55f 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -9,6 +9,7 @@ import type { RequestItemsObject } from "@/modules/04_registryNew/interface/requ import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ProfesLicense"; import http from "@/plugins/http"; import config from "@/app.config"; +import { log } from "console"; const mixin = useCounterMixin(); const $q = useQuasar(); const { @@ -179,7 +180,7 @@ const profesLicenseData = reactive({ issuer: "", certificateNo: "", issueDate: new Date(), - expireDate: new Date(), + expireDate: null, profileId: id.value, }); @@ -244,7 +245,7 @@ async function fetchData(id: string) { } function clearForm() { - profesLicenseData.expireDate = new Date(); + profesLicenseData.expireDate = null; profesLicenseData.issueDate = new Date(); profesLicenseData.certificateNo = ""; profesLicenseData.certificateType = ""; @@ -297,21 +298,21 @@ async function editData(idData: string) { }); } -function deleteData(idData: string) { - dialogRemove($q, () => - http - .delete(config.API.profileNewCertificateByCertificateId(idData)) - .then(() => { - fetchData(id.value); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }) - ); -} +// function deleteData(idData: string) { +// dialogRemove($q, () => +// http +// .delete(config.API.profileNewCertificateByCertificateId(idData)) +// .then(() => { +// fetchData(id.value); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }) +// ); +// } async function fetchHistoryData(id: string) { showLoader(); @@ -465,7 +466,7 @@ onMounted(async () => { > ประวัติแก้ไขใบอนุญาตประกอบวิชาชีพ - { v-close-popup > ลบข้อมูล - + --> @@ -529,26 +530,6 @@ onMounted(async () => { - @@ -569,6 +550,7 @@ onMounted(async () => { label="ชื่อใบอนุญาต" bg-color="white" dense + class="inputgreen" :rules="[(val) => !!val || `${'กรุณากรอกชื่อใบอนุญาต'}`]" hide-bottom-space /> @@ -580,6 +562,7 @@ onMounted(async () => { label="หน่วยงานผู้ออกใบอนุญาต" bg-color="white" dense + class="inputgreen" :rules="[ (val) => !!val || `${'กรุณากรอกหน่วยงานผู้ออกใบอนุญาต'}`, ]" @@ -594,6 +577,7 @@ onMounted(async () => { v-model="profesLicenseData.certificateNo" label="เลขที่ใบอนุญาต" bg-color="white" + class="inputgreen" dense :rules="[(val) => !!val || `${'กรุณากรอกเลขที่ใบอนุญาต'}`]" hide-bottom-space @@ -617,6 +601,7 @@ onMounted(async () => { { dense outlined bg-color="white" + class="inputgreen" + clearable + @clear="() => (profesLicenseData.expireDate = null)" hide-bottom-space :model-value=" profesLicenseData.expireDate @@ -669,6 +657,7 @@ onMounted(async () => { : '' " :label="`${'วันที่หมดอายุ'}`" + @update:modelValue="profesLicenseData.expireDate" > - diff --git a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue index fe13d0da0..60287a1ac 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue @@ -295,12 +295,12 @@ const trainData = reactive({ profileId: id.value, name: "", topic: "", - yearly: new Date().getFullYear(), + yearly: null, place: "", duration: "", department: "", numberOrder: "", - dateOrder: new Date(), + dateOrder: null, startDate: new Date(), endDate: new Date(), startYear: new Date().getFullYear(), @@ -360,7 +360,7 @@ function clearForm() { isDate.value = "false"; trainData.name = ""; trainData.topic = ""; - trainData.yearly = new Date().getFullYear(); + trainData.yearly = null; trainData.place = ""; trainData.duration = ""; trainData.department = ""; @@ -690,26 +690,6 @@ onMounted(async () => { - @@ -731,6 +711,7 @@ onMounted(async () => { label="ชื่อโครงการ/หลักสูตรการฝึกอบรม" bg-color="white" dense + class="inputgreen" :rules="[ (val) => !!val || `${'กรุณากรอกชื่อโครงการ/หลักสูตรการฝึกอบรม'}`, @@ -741,6 +722,7 @@ onMounted(async () => {
{ dense lazy-rules outlined + class="inputgreen" hide-bottom-space :model-value="trainData.startYear + 543" :rules="[ @@ -844,6 +827,7 @@ onMounted(async () => { { outlined dense lazy-rules + class="inputgreen" :model-value="date2Thai(trainData.startDate)" :rules="[ (val) => @@ -936,6 +921,7 @@ onMounted(async () => { outlined dense lazy-rules + class="inputgreen" :model-value="date2Thai(trainData.endDate)" :rules="[ (val) => @@ -978,8 +964,11 @@ onMounted(async () => { dense lazy-rules outlined + class="inputgreen" hide-bottom-space - :model-value="trainData.yearly + 543" + :model-value=" + !!trainData.yearly ? trainData.yearly + 543 : null + " :label="`${'ปีงบประมาณ'}`" > - diff --git a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue index f023c6b4d..45224dd9e 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue @@ -789,26 +789,6 @@ onMounted(async () => { direction-links > - @@ -1218,26 +1198,6 @@ onMounted(async () => { direction-links > - diff --git a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue index 0a7fd4450..8d6addcb4 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue @@ -531,26 +531,6 @@ watch( direction-links > - @@ -849,26 +829,6 @@ watch( direction-links > - diff --git a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue index b8ef11535..0a4be22ad 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue @@ -583,26 +583,6 @@ onMounted(async () => { direction-links > - @@ -895,26 +875,6 @@ onMounted(async () => { direction-links > - diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue index fc7b7a7db..cc2a6e99e 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue @@ -276,22 +276,22 @@ async function editData(idData: string) { }); } -function deleteData(idData: string) { - dialogRemove($q, () => - http - .delete(config.API.profileNewDisciplineByDisciplineId(idData)) - .then(() => { - fetchData(profileId.value); - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }) - ); -} +// function deleteData(idData: string) { +// dialogRemove($q, () => +// http +// .delete(config.API.profileNewDisciplineByDisciplineId(idData)) +// .then(() => { +// fetchData(profileId.value); +// success($q, "ลบข้อมูลสำเร็จ"); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }) +// ); +// } /** * กดเลือกข้อมูลที่จะแก้ไข * @param props ค่า props ใน row ที่เลือก @@ -467,7 +467,7 @@ onMounted(async () => { > ประวัติแก้ไขวินัย - { v-close-popup > ลบข้อมูล - + --> @@ -573,26 +573,6 @@ onMounted(async () => { direction-links > - @@ -725,10 +705,12 @@ onMounted(async () => { ref="dateRef" class="full-width inputgreen cursor-pointer" outlined + clearable dense :model-value="date2Thai(disciplineData.refCommandDate)" hide-bottom-space :label="`${'เอกสารอ้างอิง (ลงวันที่)'}`" + @clear="disciplineData.refCommandDate = null" > - diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/03_Leave.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/03_Leave.vue index 5fccf2728..f372923bd 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/03_Leave.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/03_Leave.vue @@ -55,7 +55,6 @@ const formFilter = reactive({ isProbation: false, }); - const modal = ref(false); const edit = ref(false); const modalHistory = ref(false); @@ -252,7 +251,11 @@ function openDialogEdit(props: DetailData) { edit.value = true; modal.value = true; id.value = props.id; - typeLeave.value = {id:props.typeLeaveId,name:props.typeLeave,code:props.code}; + typeLeave.value = { + id: props.typeLeaveId, + name: props.typeLeave, + code: props.code, + }; statLeave.value = props.status; reason.value = props.reason; dateRange.value = [ @@ -392,7 +395,7 @@ const editData = async () => { http .patch(config.API.profileNewLeaveById(id.value), { leaveTypeId: typeLeave.value.id, - dateLeaveStart : dateToISO(dateRange.value[0]), + dateLeaveStart: dateToISO(dateRange.value[0]), dateLeaveEnd: dateToISO(dateRange.value[1]), leaveDays: numLeave.value, leaveCount: 0, @@ -545,11 +548,7 @@ onMounted(() => { - @@ -760,7 +752,6 @@ onMounted(() => {
{ direction-links > - diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWork.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWork.vue index d298b9830..93f037156 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWork.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWork.vue @@ -247,22 +247,22 @@ async function editData(idData: string) { /** ลบข้อมูล */ -function deleteData(idData: string) { - dialogRemove($q, () => - http - .delete(config.API.profileNewDutyByDutyId(idData)) - .then(() => { - fetchData(profileId.value); - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }) - ); -} +// function deleteData(idData: string) { +// dialogRemove($q, () => +// http +// .delete(config.API.profileNewDutyByDutyId(idData)) +// .then(() => { +// fetchData(profileId.value); +// success($q, "ลบข้อมูลสำเร็จ"); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }) +// ); +// } /** กด Submit */ @@ -421,7 +421,7 @@ onMounted(async () => { > ประวัติแก้ไขปฏิบัติราชการพิเศษ - { v-close-popup > ลบข้อมูล - + --> @@ -521,26 +521,6 @@ onMounted(async () => { direction-links > - @@ -702,6 +682,8 @@ onMounted(async () => { " hide-bottom-space :label="`${'เอกสารอ้างอิง (ลงวันที่)'}`" + clearable + @clear="dutyData.refCommandDate = null" > - diff --git a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue index f638aa4f3..e7bc8b1b3 100644 --- a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue @@ -395,26 +395,6 @@ onMounted(() => { direction-links > - diff --git a/src/modules/04_registryNew/components/detail/Other/01_OtherInformationHistory.vue b/src/modules/04_registryNew/components/detail/Other/01_OtherInformationHistory.vue index f46362eab..1d620f529 100644 --- a/src/modules/04_registryNew/components/detail/Other/01_OtherInformationHistory.vue +++ b/src/modules/04_registryNew/components/detail/Other/01_OtherInformationHistory.vue @@ -218,26 +218,6 @@ watch(modal, (status) => { direction-links > - diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 5189c7711..8c2b3b577 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -599,7 +599,6 @@ onMounted(async () => { lazy-rules hide-bottom-space readonly - class="inputgreen" v-model="age" :label="dataLabel.age" /> @@ -839,26 +838,6 @@ onMounted(async () => { direction-links > - 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 1f25b4837..9c775b504 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -8,7 +8,6 @@ import http from "@/plugins/http"; import config from "@/app.config"; import dialogHeader from "@/components/DialogHeader.vue"; import { useCounterMixin } from "@/stores/mixin"; -import HistoryTable from "@/components/TableHistory.vue"; import type { ResponseObject } from "@/components/information/interface/response/OldName"; import type { Pagination } from "@/modules/04_registryNew/interface/index/Main"; import type { RequestItemsObject } from "@/components/information/interface/request/OldName"; @@ -229,14 +228,6 @@ function closeDialog() { dialog.value = false; } -// function clearForm() { -// changeNameData.status = ""; -// changeNameData.prefix = ""; -// changeNameData.firstName = ""; -// changeNameData.lastName = ""; -// alertUpload.value = false; -// } - async function onSubmit() { if (!!fileUpload.value) { await dialogConfirm( @@ -381,22 +372,22 @@ function editData(idData: string) { }); } -function deleteData(idData: string) { - dialogRemove($q, () => - http - .delete(config.API.profileNewChangeNameByChangeNameId(idData)) - .then(() => { - fetchData(profileId.value); - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }) - ); -} +// function deleteData(idData: string) { +// dialogRemove($q, () => +// http +// .delete(config.API.profileNewChangeNameByChangeNameId(idData)) +// .then(() => { +// fetchData(profileId.value); +// success($q, "ลบข้อมูลสำเร็จ"); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }) +// ); +// } function deleteFileData(idData: string) { http @@ -588,7 +579,9 @@ function filterSelector(val: string, update: Function, refData: string) { size="14px" icon="mdi-file-document-outline" @click="fetchProfile(props.row.id)" - /> + > + ดาวน์โหลด + - + ดูประวัติการเปลี่ยนชื่อ-นามสกุล + + - @@ -701,6 +676,17 @@ function filterSelector(val: string, update: Function, refData: string) { :options="store.Ops.prefixOps" label="คำนำหน้าชื่อ" dense + :class=" + !changeNameData.status || + (changeNameData.status !== 'เปลี่ยนคำนำหน้าชื่อ' && + changeNameData.status !== 'เปลี่ยนคำนำหน้าชื่อ และชื่อ' && + changeNameData.status !== + 'เปลี่ยนคำนำหน้าชื่อ และนามสกุล' && + changeNameData.status !== + 'เปลี่ยนคำนำหน้าชื่อ และชื่อ-นามสกุล') + ? '' + : 'inputgreen' + " outlined use-input lazy-rules @@ -731,6 +717,16 @@ function filterSelector(val: string, update: Function, refData: string) { label="ชื่อ" bg-color="white" dense + :class=" + !changeNameData.status || + (changeNameData.status !== 'เปลี่ยนชื่อ' && + changeNameData.status !== 'เปลี่ยนคำนำหน้าชื่อ และชื่อ' && + changeNameData.status !== 'เปลี่ยนชื่อ-นามสกุล' && + changeNameData.status !== + 'เปลี่ยนคำนำหน้าชื่อ และชื่อ-นามสกุล') + ? '' + : 'inputgreen' + " :rules="[(val) => !!val || `${'กรุณากรอกชื่อ'}`]" hide-bottom-space /> @@ -751,6 +747,17 @@ function filterSelector(val: string, update: Function, refData: string) { label="นามสกุล" bg-color="white" dense + :class=" + !changeNameData.status || + (changeNameData.status !== 'เปลี่ยนนามสกุล' && + changeNameData.status !== 'เปลี่ยนชื่อ-นามสกุล' && + changeNameData.status !== + 'เปลี่ยนคำนำหน้าชื่อ และนามสกุล' && + changeNameData.status !== + 'เปลี่ยนคำนำหน้าชื่อ และชื่อ-นามสกุล') + ? '' + : 'inputgreen' + " :rules="[(val) => !!val || `${'กรุณากรอกนามสกุล'}`]" hide-bottom-space /> @@ -869,7 +876,7 @@ function filterSelector(val: string, update: Function, refData: string) { @@ -939,26 +946,6 @@ function filterSelector(val: string, update: Function, refData: string) { - 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 b7a6fa44d..cf822c7c2 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue @@ -662,7 +662,6 @@ onMounted(async () => { outlined lazy-rules hide-bottom-space - class="inputgreen" v-model="formData.registrationZipCode" :label="dataLabel.registrationZipCode" /> @@ -784,7 +783,6 @@ onMounted(async () => { outlined lazy-rules hide-bottom-space - class="inputgreen" v-model="formData.currentZipCode" :label="dataLabel.registrationZipCode" /> @@ -903,26 +901,6 @@ onMounted(async () => { direction-links > - 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 7bd548b97..96b2b6b48 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -505,6 +505,10 @@ onMounted(async () => { v-model="fatherData.citizenId" :label="`${'เลขประจำตัวประชาชน'}`" maxlength="13" + :rules="[ + (val) => val.length === 13 || 'กรุณากรอกเลขบัตรประชาชน', + ]" + class="inputgreen" mask="#############" />
@@ -516,11 +520,11 @@ onMounted(async () => { lazy-rules hidden-space dense + class="inputgreen" :rules="[(val) => !!val || 'กรุณาเลือกคำนำหน้าชื่อ']" label="คำนำหน้าชื่อ" v-model="fatherData.prefix" use-input - clearable input-debounce="0" emit-value map-options @@ -538,6 +542,7 @@ onMounted(async () => { outlined dense bg-color="white" + class="inputgreen" lazy-rules v-model="fatherData.firstName" :rules="[(val) => !!val || 'กรุณากรอกชื่อ']" @@ -550,6 +555,7 @@ onMounted(async () => { :disable="!fatherData.isHaveInfo" outlined dense + class="inputgreen" bg-color="white" lazy-rules v-model="fatherData.lastName" @@ -562,6 +568,7 @@ onMounted(async () => { :disable="!fatherData.isHaveInfo" outlined dense + class="inputgreen" bg-color="white" v-model="fatherData.job" label="อาชีพ" @@ -634,6 +641,10 @@ onMounted(async () => { v-model="motherData.citizenId" :label="`${'เลขประจำตัวประชาชน'}`" maxlength="13" + :rules="[ + (val) => val.length === 13 || 'กรุณากรอกเลขบัตรประชาชน', + ]" + class="inputgreen" mask="#############" /> @@ -648,8 +659,8 @@ onMounted(async () => { :rules="[(val) => !!val || 'กรุณาเลือกคำนำหน้าชื่อ']" label="คำนำหน้าชื่อ" hidden-space + class="inputgreen" use-input - clearable input-debounce="0" emit-value map-options @@ -666,6 +677,7 @@ onMounted(async () => { :disable="!motherData.isHaveInfo" outlined dense + class="inputgreen" bg-color="white" lazy-rules v-model="motherData.firstName" @@ -678,6 +690,7 @@ onMounted(async () => { { { hide-bottom-space bg-color="white" dense + class="inputgreen" v-model="spouseData.citizenId" :label="`${'เลขประจำตัวประชาชน'}`" maxlength="13" + :rules="[ + (val) => val.length === 13 || 'กรุณากรอกเลขบัตรประชาชน', + ]" mask="#############" /> @@ -770,6 +788,7 @@ onMounted(async () => { { label="คำนำหน้าชื่อ" hidden-space use-input - clearable input-debounce="0" emit-value map-options @@ -794,6 +812,7 @@ onMounted(async () => { { :disable="!spouseData.isHave" outlined dense + class="inputgreen" bg-color="white" lazy-rules v-model="spouseData.lastName" @@ -820,6 +840,7 @@ onMounted(async () => { :disable="!spouseData.isHave" outlined dense + class="inputgreen" bg-color="white" v-model="spouseData.job" label="อาชีพ" @@ -885,6 +906,10 @@ onMounted(async () => { v-model="items.childrenCitizenId" :label="`${'เลขประจำตัวประชาชน'}`" bg-color="white" + class="inputgreen" + :rules="[ + (val) => val.length === 13 || 'กรุณากรอกเลขบัตรประชาชน', + ]" maxlength="13" mask="#############" /> @@ -899,7 +924,7 @@ onMounted(async () => { :rules="[(val) => !!val || 'กรุณาเลือกคำนำหน้าชื่อ']" label="คำนำหน้าชื่อ" use-input - clearable + class="inputgreen" input-debounce="0" emit-value map-options @@ -916,6 +941,7 @@ onMounted(async () => { outlined dense lazy-rules + class="inputgreen" bg-color="white" v-model="items.childrenFirstName" :rules="[(val) => !!val || 'กรุณากรอกชื่อ']" @@ -926,6 +952,7 @@ onMounted(async () => { { outlined bg-color="white" dense + class="inputgreen" v-model="items.childrenCareer" label="อาชีพ" /> 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 829696289..1238e5941 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -661,22 +661,22 @@ function editData(idData: string) { }); } -function deleteData(idData: string) { - dialogRemove($q, () => - http - .delete(config.API.profileNewEducationByEducationId(idData)) - .then(() => { - fetchData(id.value); - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }) - ); -} +// function deleteData(idData: string) { +// dialogRemove($q, () => +// http +// .delete(config.API.profileNewEducationByEducationId(idData)) +// .then(() => { +// fetchData(id.value); +// success($q, "ลบข้อมูลสำเร็จ"); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }) +// ); +// } onMounted(async () => { await fetchData(id.value); @@ -819,7 +819,7 @@ onMounted(async () => { > ประวัติแก้ไขประวัติการศึกษา - { v-close-popup > ลบข้อมูล - + --> @@ -945,26 +945,6 @@ onMounted(async () => { - @@ -997,7 +977,7 @@ onMounted(async () => { ) " :rules="[(val) => !!val || `${'กรุณาเลือกระดับการศึกษา'}`]" label="ระดับการศึกษา" - clearable + class="inputgreen" />
@@ -1007,6 +987,7 @@ onMounted(async () => { label="สถานศึกษา" bg-color="white" dense + class="inputgreen" :rules="[(val) => !!val || `${'กรุณากรอกสถานศึกษา'}`]" hide-bottom-space /> @@ -1024,6 +1005,7 @@ onMounted(async () => { unchecked-icon="panorama_fish_eye" val="false" label="ปี" + class="inputgreen" dense /> { checked-icon="task_alt" unchecked-icon="panorama_fish_eye" val="true" + class="inputgreen" label="วัน/เดือน/ปี" dense /> @@ -1060,6 +1043,7 @@ onMounted(async () => { dense lazy-rules outlined + class="inputgreen" hide-bottom-space :model-value="educationData.startYear + 543" :rules="[ @@ -1101,6 +1085,7 @@ onMounted(async () => { - @@ -538,6 +518,7 @@ onMounted(async () => {
{ {
{ label="หมายเหตุ" /> { - diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue index 891148418..ba19133c2 100644 --- a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue +++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue @@ -533,26 +533,6 @@ onMounted(() => { direction-links > - @@ -624,6 +604,7 @@ onMounted(() => { dense lazy-rules borderless + clearable v-model="formDataSalary.templatePos" :label="`${'ต้นแบบ (template) ตำแหน่ง'}`" option-label="name" @@ -822,6 +803,7 @@ onMounted(() => { dense lazy-rules borderless + clearable v-model="formDataSalary.templateDoc" :label="`${'ต้นแบบ (template) เอกสารอ้างอิง'}`" option-label="name" diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue index ead04e503..06c4f0719 100644 --- a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue +++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue @@ -321,26 +321,6 @@ watch( - diff --git a/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue b/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue index 7fbf4750d..4c3621982 100644 --- a/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue +++ b/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue @@ -426,26 +426,6 @@ onMounted(() => { direction-links > - @@ -561,6 +541,7 @@ onMounted(() => { }}