From 8272a2b29129cac27ae189706fcfb00c04c3d4d9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 13 Jul 2026 10:25:08 +0700 Subject: [PATCH] refactror(probation): add Check Box other_training --- .../FormEvaluation/FormEvaluateScore.vue | 17 +++++++++++++++-- .../FormEvaluation/FormEvaluateScoreAdd.vue | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue index 6017dcaa3..7cd5fdf42 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue @@ -97,6 +97,8 @@ const develop_result_option = ref([ const isCheckFile = ref(false); +const isSelectionPartfour = ref(false); + // score const score1 = computed(() => { if ( @@ -216,7 +218,7 @@ const score4 = computed(() => { Number(self_learning.value) + Number(training_seminar.value) + Number(other_training.value)) / - 4 + (isSelectionPartfour.value ? 4 : 3) ); }); const score5 = computed(() => { @@ -225,7 +227,7 @@ const score5 = computed(() => { Number(self_learning_percent.value) + Number(training_seminar_percent.value) + Number(other_training_percent.value)) / - 4; + (isSelectionPartfour.value ? 4 : 3); develop_result.value = total > 60 ? 1 : 0; @@ -1133,10 +1135,20 @@ onMounted(async () => {
+ 4. การอบรมอื่น ๆ ตามที่หน่วยงานกำหนด (ถ้ามี)
{
([ // footer const dateAutherise = ref(null); +const isSelectionPartfour = ref(false); + onMounted(() => { fecthAssign(assignId.value); }); @@ -243,7 +245,7 @@ const score4 = computed(() => { Number(self_learning.value) + Number(training_seminar.value) + Number(other_training.value)) / - 4 + (isSelectionPartfour.value ? 4 : 3) ); }); const score5 = computed(() => { @@ -252,7 +254,7 @@ const score5 = computed(() => { Number(self_learning_percent.value) + Number(training_seminar_percent.value) + Number(other_training_percent.value)) / - 4; + (isSelectionPartfour.value ? 4 : 3); develop_result.value = total > 60 ? 1 : 0; @@ -1214,10 +1216,20 @@ watch(lengthdiscipline_level, (newLength) => {
+ 4. การอบรมอื่น ๆ ตามที่หน่วยงานกำหนด (ถ้ามี)
{ outlined dense type="number" + :disable="!isSelectionPartfour" v-model="other_training_percent" :rules="[(val:number) => val <= 100 || 'ร้อยละต้องไม่เกิน 100']" hide-bottom-space