diff --git a/src/modules/08_registryEmployee/components/DialogAddEmployee.vue b/src/modules/08_registryEmployee/components/DialogAddEmployee.vue index 1da8f2be4..59ec45930 100644 --- a/src/modules/08_registryEmployee/components/DialogAddEmployee.vue +++ b/src/modules/08_registryEmployee/components/DialogAddEmployee.vue @@ -223,15 +223,20 @@ function filterSelector(val: string, update: Function, refData: string) { } } -/** - * ฟังก์ชันคำนวนอายุ - */ +/** ฟังก์ชันคำนวนอายุ*/ function calculateMaxDate() { const today = new Date(); today.setFullYear(today.getFullYear() - 18); return today; } +/** function เช็คอายุไม่เกิน 60 ปี*/ +function calculateMinDate() { + const today = new Date(); + today.setFullYear(today.getFullYear() - 60); // ลดปีลงไป 60 ปี + return today; +} + /** * ฟังก์ชันบันทึกข้อมูลลูกจ้างชั่วคราว */ @@ -390,6 +395,7 @@ watch(