diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue index 721542aba..726ed821a 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue @@ -202,17 +202,6 @@ const pagination = ref({ const columnsHistory = ref(baseColumns.value); const visibleColumnsHistory = ref(baseVisibleColumns.value); -/** รายการประเภทการลาของ ลาไปศึกษา ฝึกอบรม ปฎิบัติการวิจัย หรือดูงาน*/ -const leaveSubTypeName = ref(""); -const optionSubTypeName = ref([ - "ศึกษาต่อ", - "ฝึกอบรม", - "ปฎิบัติการวิจัย", - "ดูงาน", -]); - -const coupleDayLevelCountry = ref(""); - /** function fetch ข้อมูลรายการลา*/ async function getData() { showLoader(); @@ -224,7 +213,6 @@ async function getData() { ...item, id: item.id, typeLeave: item.leaveType.name, - codeLeave: item.leaveType.code, code: item.leaveType.refCommandDate, dateStartLeave: item.dateLeaveStart, dateEndLeave: item.dateLeaveEnd, @@ -304,10 +292,8 @@ function openDialogEdit(props: DetailData) { typeLeave.value = { id: props.typeLeaveId, name: props.typeLeave, - code: props.codeLeave, + code: props.code, }; - leaveSubTypeName.value = props.leaveSubTypeName; - coupleDayLevelCountry.value = props.coupleDayLevelCountry; statLeave.value = props.status; reason.value = props.reason; dateRange.value = [ @@ -330,10 +316,6 @@ function onSubmit() { const body = { leaveTypeId: typeLeave.value?.id, - leaveSubTypeName: - typeLeave.value?.code === "LV-008" ? leaveSubTypeName.value : undefined, - coupleDayLevelCountry: - typeLeave.value?.code === "LV-010" ? coupleDayLevelCountry.value : undefined, dateLeaveStart: dateToISO(dateRange.value[0]), dateLeaveEnd: dateToISO(dateRange.value[1]), leaveDays: numLeave.value, @@ -469,8 +451,6 @@ function closeDialog() { dateRange.value = [new Date(), new Date()]; numLeave.value = 1; numUsedLeave.value = 0; - leaveSubTypeName.value = ""; - coupleDayLevelCountry.value = ""; } function statusLeave(val: string) { @@ -761,43 +741,6 @@ onMounted(() => { ) " /> - -
- - -