แก้ kpi

This commit is contained in:
setthawutttty 2025-01-29 14:49:48 +07:00
parent 374e43032a
commit f4d11d6686
2 changed files with 7 additions and 8 deletions

View file

@ -8,7 +8,7 @@ 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 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";
@ -233,7 +233,7 @@ onMounted(async () => {
<!-- องคประกอบท 1 -->
<div
v-if="
store.dataEvaluation.posTypeName == 'อำนวยการ' &&
store.dataEvaluation.posTypeName == 'อำนวยการ' ||
store.dataEvaluation.posTypeName == 'บริหาร'
"
>

View file

@ -514,13 +514,12 @@ onUnmounted(() => {
!checkRoutePermisson
"
:disabled="
(store.dataEvaluation.posTypeName != 'อำนวยการ' &&
store.dataEvaluation.posTypeName != 'บริหาร' &&
((store.dataEvaluation.posTypeName != 'อำนวยการ' ||
store.dataEvaluation.posTypeName != 'บริหาร') &&
store.indicatorWeightTotal != 100) ||
(store.dataEvaluation.posTypeName == 'อำนวยการ' &&
store.dataEvaluation.posTypeName == 'บริหาร' &&
(store.indicatorWeight1Total != 100 ||
store.indicatorWeight2Total != 20))
((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
store.dataEvaluation.posTypeName == 'บริหาร') &&
store.indicatorWeightTotal != 100)
"
unelevated
round