From c411c0b49bd8ba033f573f5df1a7f1c7d381d49a Mon Sep 17 00:00:00 2001
From: Nakarin <nakarin.lua@myhr.co.th>
Date: Thu, 6 Mar 2025 15:43:45 +0700
Subject: [PATCH] UPDTAE จัดรอบการประเมิน แก้ช่องกรอกคะแนน ไม่ได้

---
 src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.html | 2 +-
 src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.ts   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.html b/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.html
index dc66158..43ca34e 100644
--- a/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.html
+++ b/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.html
@@ -275,7 +275,7 @@
                                         </td>
                                         <td >{{item.item.groupAssessment1.pmsTopic.tdesc}}</td>
                                         <td class="!text-center">{{item.item.groupAssessment1.pmsTopic.pmsType.tdesc}}</td>
-                                        <td class="!text-center"><input type="text" class="form-control" oninput="this.value = this.value.replace(/[^0-9]/g, '')" [(ngModel)]="item.item.groupAssessment1.pmsTopic.weight" style="width: 60px;"></td>
+                                        <td class="!text-center"><input type="text" class="form-control" oninput="this.value = this.value.replace(/[^0-9]/g, '')" [(ngModel)]="item.item.weight" style="width: 60px;"></td>
                                         <td class="flex justify-center">
                                             <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="deleteFormOne(item.item);"></i>
                                         </td>
diff --git a/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.ts b/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.ts
index 63c9478..e4ceeff 100644
--- a/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.ts
+++ b/src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component.ts
@@ -152,7 +152,7 @@ export class EditEvaluationFormComponent {
     if (this.empassessmentRoundListCheckbox.map(x => x.item).length > 0) {
       if (this.empassessmentList) {
         this.empassessmentList.masfromEvaluationAssessment1lList = this.empassessmentRoundListCheckbox.map(x => {
-          x.item.groupAssessment1.pmsTopic.weight = Number(x.item.groupAssessment1.pmsTopic.weight);
+          x.item.weight = Number(x.item.weight);
           return x.item as any;
         });
       }
--
libgit2 0.26.0