fix จำนวนสิทธิ์และวันลาที่ใช้ไป
This commit is contained in:
parent
00a68cc9e0
commit
51e50ad321
3 changed files with 20 additions and 13 deletions
|
|
@ -10,7 +10,19 @@ export const useLeaveHistoryDataStore = defineStore("leaveHistory", () => {
|
|||
name: "ทั้งหมด",
|
||||
},
|
||||
]);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param date
|
||||
* @returns
|
||||
*/
|
||||
function findYear(date: Date) {
|
||||
const month = date.getMonth() + 1;
|
||||
return month >= 10 ? date.getFullYear() + 1 : date.getFullYear();
|
||||
}
|
||||
|
||||
return {
|
||||
leaveTypeData,
|
||||
findYear,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue