diff --git a/src/modules/11_discipline/components/1_Complaint/EditPage.vue b/src/modules/11_discipline/components/1_Complaint/EditPage.vue
index 4f67ceb6d..62ab55941 100644
--- a/src/modules/11_discipline/components/1_Complaint/EditPage.vue
+++ b/src/modules/11_discipline/components/1_Complaint/EditPage.vue
@@ -393,7 +393,7 @@ onMounted(() => {
@return-person="sendPersonToNext"
:rows="mainStore.rowsSend"
:columns="columns"
- :visibleColumns="visibleColumns"
+ :visible-columns="visibleColumns"
/>
diff --git a/src/modules/11_discipline/components/1_Complaint/MainPage.vue b/src/modules/11_discipline/components/1_Complaint/MainPage.vue
index 033e04e9f..ba40b5e61 100644
--- a/src/modules/11_discipline/components/1_Complaint/MainPage.vue
+++ b/src/modules/11_discipline/components/1_Complaint/MainPage.vue
@@ -197,10 +197,10 @@ onMounted(async () => {
diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue
index 31ece10f8..5f5c2ac9b 100644
--- a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue
+++ b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue
@@ -425,7 +425,7 @@ onMounted(() => {
title="ส่งไปสอบสวน"
:rows="mainStore.rowsSend.filter((item: ArrayPersonAdd)=> item.isSend == 'NEW')"
:columns="mainStore.columnsDirector"
- :visibleColumns="mainStore.visibleColumnsDirector"
+ :visible-columns="mainStore.visibleColumnsDirector"
@return-person="emitPerson"
/>
diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue
index edba86a1f..7839eedd1 100644
--- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue
+++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue
@@ -1744,14 +1744,14 @@ onMounted(async () => {
{
title="ส่งรายชื่อไปออกคำสั่งยุติเรื่อง"
:rows="mainStore.rowsCheck"
:columns="mainStore.columnsDirector"
- :visibleColumns="mainStore.visibleColumnsDirector"
+ :visible-columns="mainStore.visibleColumnsDirector"
@return-person="emitPerson"
:checked-val="false"
:fetch-data="fetchData"
diff --git a/src/modules/14_KPI/components/Tab/01_Assessment.vue b/src/modules/14_KPI/components/Tab/01_Assessment.vue
index 49a15155d..6aaaad1db 100644
--- a/src/modules/14_KPI/components/Tab/01_Assessment.vue
+++ b/src/modules/14_KPI/components/Tab/01_Assessment.vue
@@ -3,21 +3,19 @@ import { ref, onMounted, computed, watch } from "vue";
import { useQuasar } from "quasar";
import { useRoute } from "vue-router";
-import DialogListCriteria from "@/modules/14_KPI/components/Tab/Dialog/DialogListCriteria.vue";
-
import config from "@/app.config";
import http from "@/plugins/http";
+import { useCounterMixin } from "@/stores/mixin";
+import { useKpiDataStore } from "@/modules/14_KPI/store";
+import type { ListCriteria } from "@/modules/14_KPI/interface/request/Index";
+
+import DialogListCriteria from "@/modules/14_KPI/components/Tab/Dialog/DialogListCriteria.vue";
import Work from "@/modules/14_KPI/components/Tab/Topic/01_Indicator.vue";
import Competency from "@/modules/14_KPI/components/Tab/Topic/02_Competency.vue";
import Develop from "@/modules/14_KPI/components/Tab/Topic/03_Develop.vue";
-import { useCounterMixin } from "@/stores/mixin";
-import { useKpiDataStore } from "@/modules/14_KPI/store";
-
-import type { ListCriteria } from "@/modules/14_KPI/interface/request/index";
const dataListCriteria = ref([]);
-
const modalCriteria = ref(false);
const $q = useQuasar();
const route = useRoute();
@@ -33,7 +31,6 @@ const rows_03 = ref([]);
const totalResults1 = ref(0);
const totalResults2 = ref(0);
const totalResults3 = ref(0);
-// const resultWork = ref(0);
const weightPlanned = ref(0);
const weightRole = ref(0);
@@ -42,6 +39,11 @@ const resultPlanned = ref(0);
const resultRole = ref(0);
const resultAssigned = ref(0);
+const isShowScore = computed(() => {
+ return store.tabMain === "3";
+});
+
+/** ดึงข้อมูล งานตามแผนปฏิบัติราชการประจำปี */
async function fetchListPlanned() {
await http
.get(config.API.kpiAchievement("planned") + `?id=${evaluationId.value}`)
@@ -78,6 +80,7 @@ async function fetchListPlanned() {
});
}
+/** ดึงข้อมูล งานตามหน้าที่ความรับผิดชอบหลัก */
async function fetchListRole() {
await http
.get(config.API.kpiAchievement("role") + `?id=${evaluationId.value}`)
@@ -107,7 +110,7 @@ async function fetchListRole() {
messageError($q, err);
});
}
-
+/** ดึงข้อมูล งานอื่น ๆ ที่ได้รับมอบหมาย */
async function fetchAssigned() {
await http
.get(config.API.kpiAchievement("special") + `?id=${evaluationId.value}`)
@@ -146,6 +149,7 @@ async function fetchAssigned() {
});
}
+/** ข้อมูล เกณฑ์การประเมินสมรรถนะ */
async function getCriteria() {
await http
.get(config.API.KpiEvaluationInfo + `/criteria`)
@@ -158,10 +162,6 @@ async function getCriteria() {
});
}
-const isShowScore = computed(() => {
- return store.tabMain === "3";
-});
-
watch(
[weightPlanned, weightRole, weightAssigned],
([newA, newB, newC], [prevA, prevB, prevC]) => {
@@ -297,10 +297,6 @@ onMounted(async () => {
dense
bordered
:rows="[
- // {
- // name: 'รวมผลการประเมิน (ร้อยละ)',
- // value: store.excusiveIndicator2PercentVal.toFixed(2),
- // },
{
name: 'ผลการประเมินมิติที่ 2 (คะแนน)',
value: store.excusiveIndicator2ScoreVal.toFixed(2),
diff --git a/src/modules/14_KPI/components/Tab/02_Evaluator.vue b/src/modules/14_KPI/components/Tab/02_Evaluator.vue
deleted file mode 100644
index d9b9c3c45..000000000
--- a/src/modules/14_KPI/components/Tab/02_Evaluator.vue
+++ /dev/null
@@ -1,333 +0,0 @@
-
-
-
-
-
- เสนอความคิดเห็น
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ col.label }}
-
-
-
-
-
-
- {{ col.value ? col.value : "-" }}
-
-
-
-
- ทั้งหมด {{ rows.length }} รายการ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- บันทึกข้อมูล
-
-
-
-
-
-
-
diff --git a/src/modules/14_KPI/components/Tab/03_CommanderAbove.vue b/src/modules/14_KPI/components/Tab/03_CommanderAbove.vue
deleted file mode 100644
index d47994bbf..000000000
--- a/src/modules/14_KPI/components/Tab/03_CommanderAbove.vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
- ผู้บังคับบัญชา เหนือขึ้นไป
-
diff --git a/src/modules/14_KPI/components/Tab/04_CommanderAboveOneStep.vue b/src/modules/14_KPI/components/Tab/04_CommanderAboveOneStep.vue
deleted file mode 100644
index 4d5bde7de..000000000
--- a/src/modules/14_KPI/components/Tab/04_CommanderAboveOneStep.vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
- ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง
-
diff --git a/src/modules/14_KPI/components/Tab/04_Result.vue b/src/modules/14_KPI/components/Tab/04_Result.vue
index de5b6d351..3de13102d 100644
--- a/src/modules/14_KPI/components/Tab/04_Result.vue
+++ b/src/modules/14_KPI/components/Tab/04_Result.vue
@@ -44,6 +44,7 @@ const sumWeight = ref(0);
const sumResult = ref(0);
const result = ref("");
+/** บันทึกสรุปผล ผู้ประเมิน */
function onSubmit() {
dialogConfirm($q, () => {
showLoader();
@@ -67,6 +68,7 @@ function onSubmit() {
});
}
+/** บันทึกสรุปผล ผู้บังคับบัญชา */
function onSubmitCommander() {
if (superiorCommentCheck.value == "") {
dialogMessageNotify($q, "กรุณาเลือกความคิดเห็น");
@@ -92,6 +94,7 @@ function onSubmitCommander() {
}
}
+/** บันทึกสรุปผล ผู้บังคับบัญชาเหนือขึ้นไป */
function onSubmitCommanderHigh() {
if (additionalSuperiorCheck.value == "") {
dialogMessageNotify($q, "กรุณาเลือกความคิดเห็น");
@@ -117,11 +120,13 @@ function onSubmitCommanderHigh() {
}
}
+/** เมื่อเห็นด้วย ล้างค่าความคิดเห็น */
function resetCommander() {
superiorComment.value = "";
superiorCommentRef.value.resetValidation();
}
+/** เมื่อเห็นด้วย ล้างค่าความคิดเห็น */
function resetCommanderHigh() {
additionalSuperiorComment.value = "";
additionalSuperiorCommentRef.value.resetValidation();
@@ -158,6 +163,7 @@ function userOpen() {
http.get(config.API.openPoint(id.value)).then(async () => {});
}
+/** ดึงรายละเอียด ผลการประเมิน */
async function getData() {
showLoader();
await http
diff --git a/src/modules/14_KPI/components/Tab/05_File.vue b/src/modules/14_KPI/components/Tab/05_File.vue
index d4c309b69..735deee2e 100644
--- a/src/modules/14_KPI/components/Tab/05_File.vue
+++ b/src/modules/14_KPI/components/Tab/05_File.vue
@@ -1,8 +1,9 @@
diff --git a/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue b/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
index 24f34ee3a..0c2dae4a7 100644
--- a/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
+++ b/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
@@ -1,10 +1,11 @@
@@ -539,19 +552,6 @@ function filterOptionFn(val: string, update: Function) {
-
-
-import { useCounterMixin } from "@/stores/mixin";
+import { reactive, ref, watch } from "vue";
import { useQuasar } from "quasar";
import type { QTableProps } from "quasar";
+
import config from "@/app.config";
import http from "@/plugins/http";
-import { reactive, ref, onMounted, watch } from "vue";
-import DialogHeader from "@/components/DialogHeader.vue";
-import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
+import { useRouter } from "vue-router";
+import { useCounterMixin } from "@/stores/mixin";
+
import type {
DataOption,
typeOp,
NewPagination,
tableType,
- FormData,
} from "@/modules/14_KPI/interface/index/Main";
-import { useRouter } from "vue-router";
+import DialogHeader from "@/components/DialogHeader.vue";
+import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
+
+const $q = useQuasar();
+const router = useRouter();
+const mixin = useCounterMixin();
+const {
+ showLoader,
+ hideLoader,
+ messageError,
+ dialogConfirm,
+ dialogMessageNotify,
+ findOrgName,
+} = mixin;
+
+const total = ref(0);
+const maxPage = ref(1);
const searchRules = ref(false);
const selected = ref([]);
const personId = ref("");
@@ -29,20 +45,6 @@ const typeOps = ref([
{ id: "firstname", name: "ชื่อ" },
{ id: "lastname", name: "นามสกุล" },
]);
-const $q = useQuasar();
-const mixin = useCounterMixin();
-const {
- showLoader,
- hideLoader,
- messageError,
- date2Thai,
- dialogConfirm,
- dialogMessageNotify,
- findOrgName,
- findPosMasterNo,
-} = mixin;
-
-const router = useRouter();
const modalDialog = defineModel("modal", { required: true });
const yearDialog = ref(new Date().getFullYear());
@@ -72,32 +74,6 @@ const evaluatorIdMainOp = ref([]);
const commanderIdMainOp = ref([]);
const commanderHighMainOp = ref([]);
-/**
- * ข้อมูลทั้งก้อน form
- */
-const formData = reactive({
- personalId: "",
- prefix: "",
- firstname: "",
- lastname: "",
- position: "",
- phone: "",
- email: "",
- qualification: "",
-});
-
-function onCloseDialog() {
- modalDialog.value = false;
- formRound.kpiPeriodId = { id: "", name: "", isClosed: false };
- yearDialog.value = new Date().getFullYear();
- rows.value = [];
- formRound.evaluatorId = "";
- formRound.commanderId = "";
- formRound.commanderHighId = "";
- selected.value = [];
- search.value = "";
- type.value = "citizenId";
-}
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
const visibleColumnsRespondent = ref([
"no",
@@ -164,6 +140,21 @@ const columnsRespondent = ref([
},
]);
+/** ปิด popup และ clear ค่า */
+function onCloseDialog() {
+ modalDialog.value = false;
+ formRound.kpiPeriodId = { id: "", name: "", isClosed: false };
+ yearDialog.value = new Date().getFullYear();
+ rows.value = [];
+ formRound.evaluatorId = "";
+ formRound.commanderId = "";
+ formRound.commanderHighId = "";
+ selected.value = [];
+ search.value = "";
+ type.value = "citizenId";
+}
+
+/** ดึงข้อมูลตามรอบการประเมิน */
function fetchRoundOption() {
showLoader();
http
@@ -195,6 +186,12 @@ function fetchRoundOption() {
});
}
+/**
+ * ฟิลเตอร์ตาม input
+ * @param val ค่าจาก input
+ * @param update function Quasar
+ * @param refData เเยกประเภท
+ */
function filterOption(val: any, update: Function, refData: string) {
switch (refData) {
case "evaluatorIdOp":
@@ -223,13 +220,12 @@ function filterOption(val: any, update: Function, refData: string) {
}
}
+/** เช็ครอบการประเมินที่ปิดรอบ */
function checkClosed() {
isRoundClose.value = formRound.kpiPeriodId.isClosed;
}
-const total = ref(0);
-const maxPage = ref(1);
-
+/** ค้นหาตัวชี้วัดตาม ค่า input */
async function searchInput(check: boolean) {
if (check) {
searchRules.value = check;
@@ -271,6 +267,7 @@ function updateSelect() {
search.value = "";
}
+/** ดึงข้อมูล ผู้ประเมิน */
function getOrgOp(check: boolean, id: string) {
if (check == false) {
http
@@ -307,6 +304,7 @@ function getOrgOp(check: boolean, id: string) {
}
}
+/** บันทึกข้อมูล */
function onSubmit() {
if (selected.value.length == 0) {
dialogMessageNotify($q, "กรุณาเลือกรายชื่อผู้ประเมิน");
@@ -339,14 +337,25 @@ function onSubmit() {
}
}
+/** เปิด/ปิด popup */
function updatemodalPersonal(modal: boolean) {
modalPersonal.value = modal;
}
+/** route ไปหน้ารายละเอียด */
function redirectViewDetail(id: string) {
router.push(`/KPI-list/${id}`);
}
+/**
+ * function อัปเดท paging
+ * @param initialPagination ข้อมูล pagination
+ */
+async function updatePagination(initialPagination: NewPagination) {
+ query.page = 1;
+ query.pageSize = initialPagination.rowsPerPage;
+}
+
watch(
() => modalDialog.value,
(n) => {
@@ -356,15 +365,6 @@ watch(
}
);
-/**
- * function อัปเดท paging
- * @param initialPagination ข้อมูล pagination
- */
-async function updatePagination(initialPagination: NewPagination) {
- query.page = 1;
- query.pageSize = initialPagination.rowsPerPage;
-}
-
watch(
() => query.pageSize,
() => {
diff --git a/src/modules/14_KPI/components/Tab/Dialog/DialogGovernment.vue b/src/modules/14_KPI/components/Tab/Dialog/DialogGovernment.vue
index f9a23e82f..455bb5a4a 100644
--- a/src/modules/14_KPI/components/Tab/Dialog/DialogGovernment.vue
+++ b/src/modules/14_KPI/components/Tab/Dialog/DialogGovernment.vue
@@ -1,20 +1,19 @@
-
-
-
-
-
-
-
-
-
- {{
- isProbation ? `อยู่ระหว่างทดลองงาน` : "-"
- }}
-
-
-
-
-
-
diff --git a/src/modules/14_KPI/components/Tab/Dialog/DialogViewInfo.vue b/src/modules/14_KPI/components/Tab/Dialog/DialogViewInfo.vue
index 12c71e88b..b964cde4a 100644
--- a/src/modules/14_KPI/components/Tab/Dialog/DialogViewInfo.vue
+++ b/src/modules/14_KPI/components/Tab/Dialog/DialogViewInfo.vue
@@ -2,13 +2,13 @@ divdiv
@@ -416,96 +392,6 @@ const isEditStep3 = computed(() => {
-
@@ -513,42 +399,35 @@ const isEditStep3 = computed(() => {
-
-
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 73bb4f235..32aac1c71 100644
--- a/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue
+++ b/src/modules/14_KPI/components/Tab/Topic/02_Competency.vue
@@ -1,26 +1,26 @@