From beebb44d2fe38ccbc96bed6f1c2447c901c805a2 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 14 May 2024 09:50:52 +0700 Subject: [PATCH] updated kpi progress & problem --- .../08_KPI/components/Tab/01_Assessment.vue | 357 ++++++++++-------- src/modules/08_KPI/components/Tab/TabMain.vue | 10 + .../components/Tab/Topic/01_Indicator.vue | 56 +-- .../components/Tab/Topic/02_Competency.vue | 18 +- .../components/Tab/Topic/03_Develop.vue | 10 +- src/modules/08_KPI/store.ts | 25 +- src/modules/08_KPI/views/form.vue | 22 +- src/modules/08_KPI/views/mainEvaluator.vue | 6 +- 8 files changed, 291 insertions(+), 213 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index ef8acf0..b0f26b0 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -21,6 +21,14 @@ const indicatorWeightTotal = defineModel("indicatorWeightTotal", { type: Number, default: 0, }); +const indicatorWeight1Total = defineModel("indicatorWeight1Total", { + type: Number, + default: 0, +}); +const indicatorWeight2Total = defineModel("indicatorWeight2Total", { + type: Number, + default: 0, +}); const dataListCriteria = ref([]); const modalCriteria = ref(false); @@ -72,6 +80,8 @@ function fetchListPlanned() { ); weightPlanned.value = weight; + indicatorWeight1Total.value = Number(weight); + store.indicatorScoreVal = result; totalResults1.value = (result * store.dataEvaluation.plannedPoint) / weight; @@ -104,6 +114,7 @@ function fetchListRole() { ); weightRole.value = weight; + indicatorWeight1Total.value = Number(weight); totalResults2.value = (result * store.dataEvaluation.rolePoint) / weight; @@ -168,6 +179,13 @@ function getCriteria() { }); } +const isShowScore = computed(() => { + return ( + store.tabOpen === 3 && + store.dataEvaluation.evaluationStatus === "EVALUATING" + ); +}); + watch( [weightPlanned, weightRole, weightAssigned], ([newA, newB, newC], [prevA, prevB, prevC]) => { @@ -219,39 +237,43 @@ onMounted(() => { :total="totalResults1" /> - +
+ +
+ +
{ :total="totalResults3" /> - +
+ -
-
- สรุปผลการประเมินผลสัมฤทธิ์ของงาน (มิติที่ 1 + มิติที่ 2) - (คะแนนเต็ม - {{ store.excusiveIndicatorScore }} - คะแนน) -
- {{ store.indicatorScoreVal }} +
+
+ สรุปผลการประเมินผลสัมฤทธิ์ของงาน (มิติที่ 1 + มิติที่ 2) + (คะแนนเต็ม + {{ store.excusiveIndicatorScore }} + คะแนน) +
+ {{ store.indicatorScoreVal }} +
@@ -333,45 +357,47 @@ onMounted(() => { :total="totalResults3" /> - +
+ -
-
- สรุปผลการประเมินผลสัมฤทธิ์ของงาน (คะแนนเต็ม - {{ store.indicatorScore }} - คะแนน) -
- {{ store.indicatorScoreVal }} +
+
+ สรุปผลการประเมินผลสัมฤทธิ์ของงาน (คะแนนเต็ม + {{ store.indicatorScore }} + คะแนน) +
+ {{ store.indicatorScoreVal }} +
@@ -398,6 +424,7 @@ onMounted(() => { {
- -
+
+ +
-
-
- สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ+การพัฒนาตนเอง) - (คะแนนเต็ม {{ store.competencyDevScore }} คะแนน) -
- {{ store.competencyDevScoreVal }} +
+
+ สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ+การพัฒนาตนเอง) + (คะแนนเต็ม {{ store.competencyDevScore }} คะแนน) +
+ {{ store.competencyDevScoreVal }} +
-
-
-
- สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ) (คะแนนเต็ม - {{ store.competencyScore }} คะแนน) -
- {{ store.competencyScoreVal }} +
+
+ สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ) (คะแนนเต็ม + {{ store.competencyScore }} คะแนน) +
+ {{ store.competencyScoreVal }} +
diff --git a/src/modules/08_KPI/components/Tab/TabMain.vue b/src/modules/08_KPI/components/Tab/TabMain.vue index 9562ba3..eda9ce7 100644 --- a/src/modules/08_KPI/components/Tab/TabMain.vue +++ b/src/modules/08_KPI/components/Tab/TabMain.vue @@ -15,6 +15,14 @@ const indicatorWeightTotal = defineModel("indicatorWeightTotal", { type: Number, default: 0, }); +const indicatorWeight1Total = defineModel("indicatorWeight1Total", { + type: Number, + default: 0, +}); +const indicatorWeight2Total = defineModel("indicatorWeight2Total", { + type: Number, + default: 0, +}); const itemsTab = ref([ { @@ -102,6 +110,8 @@ const splitterModel = ref(12); diff --git a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue index a1d4c98..8a0b900 100644 --- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue +++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue @@ -357,36 +357,42 @@ watch(
- - - รายงานความก้าวหน้า - - - รายงานปัญหา - - + + รายงานความก้าวหน้า + + + รายงานปัญหา + +
{ {{ col.label }} - +