แก้ kpi

This commit is contained in:
setthawutttty 2025-01-30 11:36:43 +07:00
parent 4d29976a8c
commit dfa0ef32ef
7 changed files with 185 additions and 19 deletions

View file

@ -12,7 +12,7 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError } = mixin;
const mainRowData = ref<any>()
const mainRowData = ref<any>();
const isUpdate = ref<boolean>(false);
const tabMainevaluator = ref<string>("1");
const yearRound = ref<number>(new Date().getFullYear());
@ -392,6 +392,16 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
}
}
function roleText(val: string) {
switch (val) {
case "EVALUATOR":
return "ผู้ประเมิน";
case "COMMANDER":
return "ผู้บังคับบัญชาเหนือขึ้นไป";
case "COMMANDERHIGH":
return "ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง";
}
}
// SUMMARY GENERAL CASE
const indicatorWeightTotal = ref<number>(0); // น้ำหนักรวมกรณีทั่วไป
const indicatorWeight1Total = ref<number>(0); // น้ำหนักรวมมิติที่ 1 ต้องไม่เกิน 100%
@ -516,5 +526,6 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
mainRowData,
resultsOptions,
statusOptions,
roleText
};
});