From 933269114427df886544c7673d5a1a6d27c71520 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 21 Mar 2024 16:07:15 +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(=E0=B9=83=E0=B8=AB=E0=B8=A1?= =?UTF-8?q?=E0=B9=88):=20=E0=B8=9C=E0=B8=B9=E0=B8=81=20API=20=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=84=E0=B8=94=E0=B9=89=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.registry.ts | 79 ++--- .../detail/Salary/02_NotReceiveSalary.vue | 288 +++++++++++------- .../Salary/02_NotReceiveSalaryHistory.vue | 53 +++- .../04_registryNew/interface/index/salary.ts | 27 +- .../interface/request/Salary.ts | 11 +- 5 files changed, 276 insertions(+), 182 deletions(-) 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/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 @@