diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index aa758679f..185ebf009 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -4,7 +4,15 @@ const registryNew = `${env.API_URI}/org/profile/`; export default { registryNew, - registryNewByProfileId: (profileId : string) => `${registryNew}${profileId}`, + registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`, + + // บันทึกวันที่ไม่ได้รับเงินเดือนฯ + profileNewNoPaid: `${registryNew}nopaid`, + profileNewNoPaidByProfileId: (profileId: string) => + `${registryNew}nopaid/${profileId}`, + profileNewNoPaidById: (dataId: string) => `${registryNew}nopaid/${dataId}`, + profileNewNoPaidHisById: (dataId: string) => + `${registryNew}nopaid/history/${dataId}`, // เครื่องราชฯ profileNewInsign: `${registryNew}insignia`, @@ -19,14 +27,17 @@ export default { profileNewHonorByProfileId: (profileId: string) => `${registryNew}honor/${profileId}`, profileNewHonorById: (dataId: string) => `${registryNew}honor/${dataId}`, - profileNewHonorHisById: (dataId: string) => `${registryNew}honor/history/${dataId}`, + profileNewHonorHisById: (dataId: string) => + `${registryNew}honor/history/${dataId}`, // ผลการประเมินการปฏิบัติราชการ profileNewAssessments: `${registryNew}assessments`, profileNewAssessmentsByProfileId: (profileId: string) => `${registryNew}assessments/${profileId}`, - profileNewAssessmentsById: (dataId: string) => `${registryNew}assessments/${dataId}`, - profileNewAssessmentsHisById: (dataId: string) => `${registryNew}assessments/history/${dataId}`, + profileNewAssessmentsById: (dataId: string) => + `${registryNew}assessments/${dataId}`, + profileNewAssessmentsHisById: (dataId: string) => + `${registryNew}assessments/history/${dataId}`, // การฝึกอบรม profileNewTraining: `${registryNew}training`, @@ -37,40 +48,40 @@ export default { profileNewTrainingHisByTrainingId: (trainingId: string) => `${registryNew}training/history/${trainingId}`, -// ประวัติการศึกษา -profileNewEducation: `${registryNew}educations`, -profileNewEducationByProfileId: (profileId: string) => - `${registryNew}educations/${profileId}`, -profileNewEducationByEducationId: (educationId: string) => - `${registryNew}educations/${educationId}`, -profileNewEducationHisByEducationId: (educationsId: string) => - `${registryNew}educations/history/${educationsId}`, + // ประวัติการศึกษา + profileNewEducation: `${registryNew}educations`, + profileNewEducationByProfileId: (profileId: string) => + `${registryNew}educations/${profileId}`, + profileNewEducationByEducationId: (educationId: string) => + `${registryNew}educations/${educationId}`, + profileNewEducationHisByEducationId: (educationsId: string) => + `${registryNew}educations/history/${educationsId}`, -// ความสามารถพิเศษ -profileNewAbility: `${registryNew}ability`, -profileNewAbilityByProfileId: (profileId: string) => - `${registryNew}ability/${profileId}`, -profileNewAbilityByAbilityId: (abilityId: string) => - `${registryNew}ability/${abilityId}`, -profileNewAbilityHisByAbilityId: (abilityId: string) => - `${registryNew}ability/history/${abilityId}`, + // ความสามารถพิเศษ + profileNewAbility: `${registryNew}ability`, + profileNewAbilityByProfileId: (profileId: string) => + `${registryNew}ability/${profileId}`, + profileNewAbilityByAbilityId: (abilityId: string) => + `${registryNew}ability/${abilityId}`, + profileNewAbilityHisByAbilityId: (abilityId: string) => + `${registryNew}ability/history/${abilityId}`, // ใบอนุญาตประกอบวิชาชีพ -profileNewCertificate: `${registryNew}certificate`, -profileNewCertificateByProfileId: (profileId: string) => - `${registryNew}certificate/${profileId}`, -profileNewCertificateByCertificateId: (certificateId: string) => - `${registryNew}certificate/${certificateId}`, -profileNewCertificateHisByCertificateId: (certificateId: string) => - `${registryNew}certificate/history/${certificateId}`, + profileNewCertificate: `${registryNew}certificate`, + profileNewCertificateByProfileId: (profileId: string) => + `${registryNew}certificate/${profileId}`, + profileNewCertificateByCertificateId: (certificateId: string) => + `${registryNew}certificate/${certificateId}`, + profileNewCertificateHisByCertificateId: (certificateId: string) => + `${registryNew}certificate/history/${certificateId}`, -// ข้อมูลอื่นๆ -profileNewOther: `${registryNew}other`, -profileNewOtherByProfileId: (profileId: string) => -`${registryNew}other/${profileId}`, -profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`, -profileNewOtherHisById: (dataId: string) => -`${registryNew}other/history/${dataId}`, + // ข้อมูลอื่นๆ + profileNewOther: `${registryNew}other`, + profileNewOtherByProfileId: (profileId: string) => + `${registryNew}other/${profileId}`, + profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`, + profileNewOtherHisById: (dataId: string) => + `${registryNew}other/history/${dataId}`, // ข้อมูลครอบครัว profileNewFamily: `${registryNew}family`, 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 0ec4710b7..7012b3064 100644 --- a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue @@ -55,7 +55,6 @@ const modal = ref(false); const edit = ref(false); const modalHistory = ref(false); -const isActive = ref(true); const date = ref(null); const detail = ref(); @@ -159,7 +158,6 @@ async function saveData() { await http .post(config.API.profileNewOther, { profileId: profileId.value, - isActive: isActive.value, date: date.value, detail: detail.value, }) @@ -183,7 +181,6 @@ async function editData() { showLoader(); await http .patch(config.API.profileNewOtherById(id.value), { - isActive: isActive.value, date: date.value, detail: detail.value, }) @@ -215,21 +212,21 @@ async function getData() { }); } -async function deleteData(id: string) { - showLoader(); - await http - .delete(config.API.profileNewOtherById(id)) - .then((res) => { - success($q, "ลบข้อมูลสำเร็จ"); - getData(); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); -} +// async function deleteData(id: string) { +// showLoader(); +// await http +// .delete(config.API.profileNewOtherById(id)) +// .then((res) => { +// success($q, "ลบข้อมูลสำเร็จ"); +// getData(); +// }) +// .catch((e) => { +// messageError($q, e); +// }) +// .finally(() => { +// hideLoader(); +// }); +// } const infoRows = [ { title: "รายละเอียด", value: "" }, @@ -402,7 +399,7 @@ onMounted(() => { >แก้ไข ([ field: "date", headerStyle: "font-size: 14px", style: "font-size: 14px; width: 50px;", + format: (v) => date2Thai(v), }, { name: "detail", @@ -85,6 +86,7 @@ const columns = ref([ field: "createdAt", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (v) => date2Thai(v), sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, 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 7e1367f8f..13df498b3 100644 --- a/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue +++ b/src/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue @@ -1,19 +1,39 @@