แก้ไข ui form การลา

This commit is contained in:
AnandaTon 2023-11-14 15:24:04 +07:00
parent b7919cbb40
commit e1058f5d81
6 changed files with 342 additions and 29 deletions

View file

@ -0,0 +1,27 @@
interface FormData {
leaveNo: string //เขียนที่***
startLeaveDate: Date | null //*วัน เดือน ปีเริ่มต้นลา
endLeaveDate: Date | null //*วัน เดือน ปีสิ้นสุดลา
leaveTotal: string //จำนวนวันลา
contractTel: string //หมายเลขโทรศัพท์ที่ติดต่อได้
leaveContactTel: string //หมายเลขที่ติดต่อขณะลา
leaveDetail: string //รายละเอียดการลา
leaveContactLocation: string //สถานที่ติดต่อขณะลา
file: File[] | null //เอกสารปะกอบ
[key: string]: any
}
interface FormRef {
leaveNo: object | null //เขียนที่***
startLeaveDate: object | null //*วัน เดือน ปีเริ่มต้นลา
endLeaveDate: object | null //*วัน เดือน ปีสิ้นสุดลา
leaveTotal: object | null //จำนวนวันลา
contractTel: object | null //หมายเลขโทรศัพท์ที่ติดต่อได้
leaveContactTel: object | null //หมายเลขที่ติดต่อขณะลา
leaveDetail: object | null //รายละเอียดการลา
leaveContactLocation: object | null //สถานที่ติดต่อขณะลา
file: object | null //เอกสารปะกอบ
[key: string]: any
}
export type { FormData, FormRef }

View file

@ -1,5 +1,6 @@
interface FormData {
leaveNo: string //เขียนที่***
halfDay: string
lastYearVacation: string //จำนวนวันลาพักผ่อนสะสม จากปีที่ผ่านมา
currentVacation: string //จำนวนวันลาพักผ่อนประจำปีปัจจุบัน
startLeaveDate: Date | null //*วัน เดือน ปีเริ่มต้นลา
@ -15,6 +16,7 @@ interface FormData {
interface FormRef {
leaveNo: object | null //เขียนที่***
halfDay: object | null
startLeaveDate: object | null //*วัน เดือน ปีเริ่มต้นลา
lastYearVacation: object | null //ชื่อภรรยา
currentVacation: object | null //วันที่คลอด