fix: ปรับคะแนน KPI กรณีที่ผู้ขอประเมินมีสถานะทดลองงานอยู่

This commit is contained in:
setthawutttty 2025-07-14 11:49:57 +07:00
parent 6164ff1e93
commit d7db31234f
2 changed files with 7 additions and 7 deletions

View file

@ -195,7 +195,7 @@ watch(
store.indicatorScoreVal = store.indicatorScoreVal =
store.indicatorPercentVal * store.indicatorPercentVal *
((store.dataProfile.isProbation ((store.dataEvaluation.isProbation
? store.indicatorProbationScore ? store.indicatorProbationScore
: store.indicatorScore) / : store.indicatorScore) /
100); 100);
@ -476,11 +476,11 @@ onMounted(() => {
/> />
<div class="row text-body2 text-weight-bold"> <div class="row text-body2 text-weight-bold">
<div class="col-12 text-center row justify-center"> <div class="col-12 text-center row justify-center">{{ store.dataProfile.isProbation }}
<span <span
>สรปผลการประเมนผลสมฤทธของงาน (คะแนนเต >สรปผลการประเมนผลสมฤทธของงาน (คะแนนเต
{{ {{
store.dataProfile.isProbation store.dataEvaluation.isProbation
? store.indicatorProbationScore ? store.indicatorProbationScore
: store.indicatorScore : store.indicatorScore
}} }}
@ -514,7 +514,7 @@ onMounted(() => {
name: `สรุปผลการประเมินสมรรถนะ (คะแนนเต็ม ${ name: `สรุปผลการประเมินสมรรถนะ (คะแนนเต็ม ${
store.dataEvaluation.posTypeName != 'อำนวยการ' && store.dataEvaluation.posTypeName != 'อำนวยการ' &&
store.dataEvaluation.posTypeName != 'บริหาร' store.dataEvaluation.posTypeName != 'บริหาร'
? store.dataProfile.isProbation ? store.dataEvaluation.isProbation
? store.competencyProbationScore ? store.competencyProbationScore
: store.competencyScore : store.competencyScore
: store.excusiveCompetencyScore : store.excusiveCompetencyScore
@ -558,7 +558,7 @@ onMounted(() => {
:rows="[ :rows="[
{ {
name: `ผลการประเมินการพัฒนาตนเอง (คะแนนเต็ม ${ name: `ผลการประเมินการพัฒนาตนเอง (คะแนนเต็ม ${
store.dataProfile.isProbation store.dataEvaluation.isProbation
? store.devProbationScore ? store.devProbationScore
: store.devScore : store.devScore
} คะแนน)`, } คะแนน)`,
@ -600,7 +600,7 @@ onMounted(() => {
สรปผลการประเมนพฤตกรรมการปฏราชการ (สมรรถนะ+การพฒนาตนเอง) สรปผลการประเมนพฤตกรรมการปฏราชการ (สมรรถนะ+การพฒนาตนเอง)
(คะแนนเต (คะแนนเต
{{ {{
store.dataProfile.isProbation store.dataEvaluation.isProbation
? store.competencyDevProbationScore ? store.competencyDevProbationScore
: store.competencyDevScore : store.competencyDevScore
}} }}

View file

@ -209,7 +209,7 @@ function getData(type: string) {
store.competencyScoreVal = store.competencyScoreVal =
weightAvg != 0 weightAvg != 0
? (resultAvg / weightAvg) * ? (resultAvg / weightAvg) *
(store.dataProfile.isProbation (store.dataEvaluation.isProbation
? store.competencyProbationScore ? store.competencyProbationScore
: store.competencyScore) : store.competencyScore)
: 0; : 0;