2024-02-15 11:46:25 +07:00
|
|
|
import env from "../index";
|
2024-04-05 17:54:56 +07:00
|
|
|
const KPI = `${env.API_URI}/kpi`;
|
|
|
|
|
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
2024-05-17 12:09:59 +07:00
|
|
|
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
2024-06-07 18:01:40 +07:00
|
|
|
const kpiEvaluationUser = `${env.API_URI}/kpi/user/evaluation`;
|
2024-05-17 14:58:27 +07:00
|
|
|
const kpiUserEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
2024-04-19 14:34:15 +07:00
|
|
|
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
2024-05-17 11:10:23 +07:00
|
|
|
const kpiRole = `${env.API_URI}/kpi/role`;
|
2024-05-09 13:52:08 +07:00
|
|
|
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
2024-05-17 12:09:59 +07:00
|
|
|
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
2024-04-29 13:24:07 +07:00
|
|
|
const KpiFile = `${env.API_URI}/salary/file`;
|
2024-05-17 11:10:23 +07:00
|
|
|
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
|
|
|
|
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
|
|
|
|
|
|
|
|
|
const KpiUser = `${env.API_URI}/kpi/user`;
|
|
|
|
|
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
|
|
|
|
const kpiReason = `${env.API_URI}/kpi/reason`;
|
|
|
|
|
|
|
|
|
|
const urlFile = `${env.API_URI}/salary`;
|
|
|
|
|
|
2024-05-17 12:09:59 +07:00
|
|
|
const kpiGroup = `${env.API_URI}/kpi/group`;
|
|
|
|
|
const kpiLink = `${env.API_URI}/kpi/link`;
|
|
|
|
|
|
2024-02-15 11:46:25 +07:00
|
|
|
export default {
|
|
|
|
|
KPI,
|
2024-05-17 14:58:27 +07:00
|
|
|
kpiUserEvaluation,
|
2024-04-05 17:54:56 +07:00
|
|
|
/** รอบการประเมินผล*/
|
2024-04-26 16:14:54 +07:00
|
|
|
kpiPeriod,
|
2024-04-05 17:54:56 +07:00
|
|
|
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
2024-05-17 12:09:59 +07:00
|
|
|
|
2024-04-19 14:15:08 +07:00
|
|
|
kpiEvaluation,
|
2024-06-07 18:01:40 +07:00
|
|
|
kpiEvaluationUser,
|
2024-04-19 14:34:15 +07:00
|
|
|
kpiPlan,
|
2024-05-17 12:09:59 +07:00
|
|
|
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
|
|
|
|
|
|
|
|
|
/** role */
|
2024-05-17 11:10:23 +07:00
|
|
|
kpiRole,
|
2024-05-17 12:09:59 +07:00
|
|
|
kpiRoleMainList: `${KPI}/role`,
|
|
|
|
|
|
2024-05-09 13:52:08 +07:00
|
|
|
kpiSpecial,
|
2024-05-17 12:09:59 +07:00
|
|
|
kpiCapacity,
|
2024-05-17 11:10:23 +07:00
|
|
|
KpiFile: KpiFile,
|
2024-04-19 14:38:05 +07:00
|
|
|
|
2024-04-26 16:14:54 +07:00
|
|
|
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
|
|
|
|
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
2024-05-17 11:10:23 +07:00
|
|
|
|
|
|
|
|
kpiScoreTotal: () => `${kpiEvaluation}/point`,
|
|
|
|
|
|
|
|
|
|
/** ผลสัมฤทธิ์ของงาน*/
|
|
|
|
|
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
|
|
|
|
`${urlFile}/file/${name}/${group}/${id}/${fileName}`,
|
2024-04-26 16:14:54 +07:00
|
|
|
kpiUserCapacity: `${KpiUser}/capacity`,
|
2024-05-17 11:10:23 +07:00
|
|
|
KpiEvaluationInfo,
|
|
|
|
|
Kpiorg,
|
|
|
|
|
kpiEvaluationCheck: `${kpiEvaluation}/check`,
|
|
|
|
|
kpiSendToStatus: (id: string) => `${kpiEvaluation}/status/${id}`,
|
|
|
|
|
kpiReqEdit: (id: string) => `${kpiEvaluation}/edit/${id}`,
|
|
|
|
|
/**ประเมิน*/
|
|
|
|
|
kpiAchievementDevelop: `${kpiAchievement}/development`,
|
|
|
|
|
|
|
|
|
|
kpiCommentP: (typP: string, type: string, role: string, id: string) =>
|
|
|
|
|
`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
2024-05-17 12:09:59 +07:00
|
|
|
|
|
|
|
|
kpiGroup,
|
|
|
|
|
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
|
|
|
|
|
|
|
|
|
/** สมรรถนะ */
|
|
|
|
|
|
|
|
|
|
kpiLink,
|
|
|
|
|
|
|
|
|
|
profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`,
|
2024-06-13 18:03:41 +07:00
|
|
|
|
|
|
|
|
/** Report*/
|
|
|
|
|
kpiReport: () => `${KPI}/report/announcement`,
|
2024-02-15 11:46:25 +07:00
|
|
|
};
|