diff --git a/src/modules/09_scholarship/views/detail.vue b/src/modules/09_scholarship/views/detail.vue index a747f76..e0fe2a5 100644 --- a/src/modules/09_scholarship/views/detail.vue +++ b/src/modules/09_scholarship/views/detail.vue @@ -169,6 +169,40 @@ const fundTypeOp = ref([ { id: "FUND5", name: "ทุนส่วนตัว" }, ]); +const convertStudyPlace = () => { + switch (formBody.studyTopic) { + case "ศึกษา": + return "สถานที่ไปศึกษา (เมือง/ประเทศ)"; + case "ฝึกอบรม": + return "สถานที่เข้ารับการฝึกอบรม (เมือง/ประเทศ)"; + case "ดูงาน": + return "สถานที่ไปดูงาน"; + case "ประชุม": + return "สถานที่จัดประชุม (เมือง/ประเทศ)"; + case "ปฏิบัติการวิจัย": + return "สถานที่ไปปฏิบัติการวิจัย (เมือง/ประเทศ)"; + default: + return "สถานที่ (เมือง/ประเทศ)"; + } +}; + +const convertCourse = () => { + switch (formBody.studyTopic) { + case "ศึกษา": + return "หลักสูตรการศึกษา"; + case "ฝึกอบรม": + return "หลักสูตรการฝึกอบรม"; + case "ดูงาน": + return "หัวข้อการไปดูงาน"; + case "ประชุม": + return "ชื่อการประชุม"; + case "ปฏิบัติการวิจัย": + return "หลักสูตร"; + default: + return "หลักสูตร"; + } +}; + function updateTotalPeriod( startDate: any, endDate: any, @@ -468,6 +502,7 @@ onMounted(async () => { await getFile(); }); +