kpi
This commit is contained in:
parent
b27a3cb20e
commit
9f5147b923
3 changed files with 371 additions and 157 deletions
|
|
@ -111,6 +111,57 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
return competency?.name;
|
||||
}
|
||||
|
||||
const statusOptions = ref<DataOptions[]>([
|
||||
{
|
||||
id: "",
|
||||
name: "ทั้งหมด",
|
||||
},
|
||||
{
|
||||
id: "NEW",
|
||||
name: "จัดทำข้อตกลง",
|
||||
},
|
||||
{
|
||||
id: "NEW_EVALUATOR",
|
||||
name: "รอผู้ประเมินตรวจสอบข้อตกลง",
|
||||
},
|
||||
{
|
||||
id: "NEW_COMMANDER",
|
||||
name: "รอผู้บังคับบัญชาเหนือขึ้นไปตรวจสอบข้อตกลง",
|
||||
},
|
||||
{
|
||||
id: "NEW_COMMANDER_HIGH",
|
||||
name: "รอผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่งตรวจสอบข้อตกลง",
|
||||
},
|
||||
{
|
||||
id: "APPROVE",
|
||||
name: "รายงานความก้าวหน้า",
|
||||
},
|
||||
{
|
||||
id: "EVALUATING",
|
||||
name: "รายงานผลสำเร็จของงาน",
|
||||
},
|
||||
{
|
||||
id: "EVALUATING_EVALUATOR",
|
||||
name: "รอผู้ประเมินตรวจสอบผล",
|
||||
},
|
||||
{
|
||||
id: "EVALUATING_COMMANDER",
|
||||
name: "รอผู้บังคับบัญชาเหนือขึ้นไปตรวจสอบผล",
|
||||
},
|
||||
{
|
||||
id: "EVALUATING_COMMANDER_HIGH",
|
||||
name: "รอผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่งตรวจสอบผล",
|
||||
},
|
||||
{
|
||||
id: "COMPLETE",
|
||||
name: "รอประกาศผลการประเมิน",
|
||||
},
|
||||
{
|
||||
id: "KP7",
|
||||
name: "ประกาศและลงทะเบียนประวัติแล้ว",
|
||||
},
|
||||
]);
|
||||
|
||||
function convertStatus(val: string) {
|
||||
switch (val) {
|
||||
case "NEW":
|
||||
|
|
@ -142,6 +193,45 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
}
|
||||
}
|
||||
|
||||
const resultsOptions = ref<DataOptions[]>([
|
||||
{
|
||||
id: "",
|
||||
name: "ทั้งหมด",
|
||||
},
|
||||
{
|
||||
id: "PENDING",
|
||||
name: "รอดำเนินการ",
|
||||
},
|
||||
{
|
||||
id: "PASSED",
|
||||
name: "ผ่านการประเมิน",
|
||||
},
|
||||
{
|
||||
id: "NOTPASSED",
|
||||
name: "ไม่ผ่านการประเมิน",
|
||||
},
|
||||
{
|
||||
id: "EXCELLENT",
|
||||
name: "ดีเด่น",
|
||||
},
|
||||
{
|
||||
id: "VERY_GOOD",
|
||||
name: "ดีมาก",
|
||||
},
|
||||
{
|
||||
id: "GOOD",
|
||||
name: "ดี",
|
||||
},
|
||||
{
|
||||
id: "FAIR",
|
||||
name: "พอใช้",
|
||||
},
|
||||
{
|
||||
id: "IMPROVEMENT",
|
||||
name: "ต้องปรับปรุง",
|
||||
},
|
||||
]);
|
||||
|
||||
function convertResults(val: string) {
|
||||
switch (val) {
|
||||
case "EXCELLENT":
|
||||
|
|
@ -159,7 +249,7 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
}
|
||||
}
|
||||
|
||||
const defaultCompetencyCoreLevel = ref<number|null>(null);
|
||||
const defaultCompetencyCoreLevel = ref<number | null>(null);
|
||||
const defaultCompetencyGroupLevel = ref<number | null>(null);
|
||||
function checkCompetencyDefaultCompetencyLevel() {
|
||||
const posTypeName = dataEvaluation.value.posTypeName;
|
||||
|
|
@ -422,5 +512,8 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
selected,
|
||||
work,
|
||||
isUpdate,
|
||||
|
||||
resultsOptions,
|
||||
statusOptions,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue