From fbf9ba9f54c2294e667a82bbf11aa639476565a0 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 16 Jan 2025 16:59:52 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20kpi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tab/Dialog/01_FormIndicator.vue | 8 +++ .../Tab/Dialog/DialogCommentProgress.vue | 63 ++++++++++--------- .../components/Tab/Topic/01_Indicator.vue | 9 +-- .../components/Tab/Topic/02_Competency.vue | 2 +- .../components/Tab/Topic/03_Develop.vue | 2 +- src/modules/14_KPI/store.ts | 3 +- src/modules/14_KPI/views/mainDetail.vue | 12 +++- 7 files changed, 62 insertions(+), 37 deletions(-) diff --git a/src/modules/14_KPI/components/Tab/Dialog/01_FormIndicator.vue b/src/modules/14_KPI/components/Tab/Dialog/01_FormIndicator.vue index 1a24bb6c7..c015d51e3 100644 --- a/src/modules/14_KPI/components/Tab/Dialog/01_FormIndicator.vue +++ b/src/modules/14_KPI/components/Tab/Dialog/01_FormIndicator.vue @@ -146,6 +146,11 @@ function fetchListPlanByid(id: string) { formDetail.achievement5 = data.achievement5; formDetail.documentInfoEvidence = data.documentInfoEvidence; + formDetail.including = data.including; + formDetail.nodeName = data.nodeName; + formDetail.strategyName = data.strategyName; + formDetail.includingName = data.includingName; + formDetail.startDate = data.startDate; formDetail.endDate = data.endDate; @@ -363,6 +368,9 @@ function closeDialog() { formDetail.startDate = null; formDetail.endDate = null; + formDetail.nodeName = ""; + formDetail.strategyName = ""; + formFilter.isAll = false; formFilter.keyword = ""; formFilter.node = 0; diff --git a/src/modules/14_KPI/components/Tab/Dialog/DialogCommentProgress.vue b/src/modules/14_KPI/components/Tab/Dialog/DialogCommentProgress.vue index ae7a5c7e8..0d7e179c1 100644 --- a/src/modules/14_KPI/components/Tab/Dialog/DialogCommentProgress.vue +++ b/src/modules/14_KPI/components/Tab/Dialog/DialogCommentProgress.vue @@ -236,6 +236,9 @@ function onSubmitComment(role: string) { /** เก็บคะแนน ลง ตัวแปร */ function onCheckNumber(num: number) { numLevel.value = num.toString(); + if (num) { + formDataAdd.topic = store.mainRowData[`achievement${num}`]; + } } watch( @@ -253,7 +256,7 @@ watch( {{ type == "capacity" || type == "development" - ? "เพิ่มเหตุการณ์/พฤติกรรม" + ? `เพิ่มเหตุการณ์/พฤติกรรม${store.tabMain == '3' ? `/เหตุผล` : ''}` : "เพิ่มความก้าวหน้า" }} @@ -304,7 +308,7 @@ watch(
{{ type == "capacity" || type == "development" - ? "เหตุการณ์/พฤติกรรม" + ? `เหตุการณ์/พฤติกรรม${store.tabMain == '3' ? `/เหตุผล` : ''}` : "ความก้าวหน้า" }}
@@ -366,7 +370,7 @@ watch(
{{ type == "capacity" || type == "development" - ? "เหตุการณ์/พฤติกรรม" + ? `เหตุการณ์/พฤติกรรม${store.tabMain == '3' ? `/เหตุผล` : ''}` : "หัวข้อความก้าวหน้า" }}
@@ -574,7 +578,7 @@ watch(
-
- -
- {{ i }} +
+
+ +
+
รายงานความก้าวหน้า @@ -356,7 +357,7 @@ watch( size="12px" dense main="problem" - @click="openPopupProblem(props.row.id)" + @click="openPopupProblem(props.row)" > รายงานปัญหา diff --git a/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue b/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue index cbcf8cd8f..95fdccf40 100644 --- a/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue +++ b/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue @@ -470,7 +470,7 @@ onMounted(() => { dense @click="openPopupProgress(props.row.id)" > - บันทึกเหตุการณ์/พฤติกรรม + {{store.tabMain == '3' ? 'บันทึกเหตุการณ์/พฤติกรรม/เหตุผล':'บันทึกเหตุการณ์/พฤติกรรม'}}
diff --git a/src/modules/14_KPI/components/Tab/Topic/03_Develop.vue b/src/modules/14_KPI/components/Tab/Topic/03_Develop.vue index c0fd5d10e..d75965d53 100644 --- a/src/modules/14_KPI/components/Tab/Topic/03_Develop.vue +++ b/src/modules/14_KPI/components/Tab/Topic/03_Develop.vue @@ -329,7 +329,7 @@ onMounted(() => { dense @click="openPopupProgress(props.row.id)" > - บันทึกเหตุการณ์/พฤติกรรม + {{store.tabMain == '3' ? 'บันทึกเหตุการณ์/พฤติกรรม/เหตุผล':'บันทึกเหตุการณ์/พฤติกรรม'}}
diff --git a/src/modules/14_KPI/store.ts b/src/modules/14_KPI/store.ts index e139f4050..c1bc94aea 100644 --- a/src/modules/14_KPI/store.ts +++ b/src/modules/14_KPI/store.ts @@ -4,6 +4,7 @@ import type { DataOption } from "@/modules/14_KPI/interface/index/Main"; import type { FormQuery } from "@/modules/14_KPI/interface/request/index"; export const useKpiDataStore = defineStore("KPIDataAdmin", () => { + const mainRowData = ref() const tabMainevaluator = ref("1"); const yearRound = ref(new Date().getFullYear()); const formQuery = reactive({ @@ -434,7 +435,7 @@ export const useKpiDataStore = defineStore("KPIDataAdmin", () => { excusiveIndicator2PercentVal, excusiveIndicator2ScoreVal, excusiveIndicatorScore, - + mainRowData, //รายการการประเมินผลการปฏิบัติราชการระดับบุคคล tabMainevaluator, formQuery, diff --git a/src/modules/14_KPI/views/mainDetail.vue b/src/modules/14_KPI/views/mainDetail.vue index 2177cd727..2692a83b6 100644 --- a/src/modules/14_KPI/views/mainDetail.vue +++ b/src/modules/14_KPI/views/mainDetail.vue @@ -128,6 +128,7 @@ async function getMain() { formData.posTypeName = data.posTypeName; formData.posExecutiveName = data.posExecutiveName; formData.posLevelName = data.posLevelName; + formData.isProbation = data.isProbation; formData.org = findOrgName(data); profileId.value = data.profileId; const promises = []; @@ -277,8 +278,15 @@ onMounted(async () => {
สังกัด
-
- {{ formData.position ? formData.position : "-" }} +
+ + {{ formData.position ? formData.position : "-" }} + + + {{ + formData.isProbation ? `(ทดลองปฏิบัติหน้าที่ราชการฯ)` : "" + }} +
{{