fix report ==>
This commit is contained in:
parent
ff3184881c
commit
5b944dc593
1 changed files with 8 additions and 7 deletions
|
|
@ -86,13 +86,6 @@ function onSelectedNode(id: string, level: number) {
|
|||
|
||||
/** function อัปเดทบัญชีแสดงวันลา */
|
||||
async function updateLeaveday() {
|
||||
if (!nodeId.value || !typeReport.value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
isReport.value = false;
|
||||
isLoadPDF.value = true;
|
||||
pdfSrc.value = undefined;
|
||||
switch (yearType.value) {
|
||||
case "FULL":
|
||||
dateStart.value = new Date(year.value - 1, 9, 1);
|
||||
|
|
@ -121,6 +114,14 @@ async function updateLeaveday() {
|
|||
break;
|
||||
}
|
||||
|
||||
if (!nodeId.value || !typeReport.value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
isReport.value = false;
|
||||
isLoadPDF.value = true;
|
||||
pdfSrc.value = undefined;
|
||||
|
||||
typeReport.value === "1"
|
||||
? fetchLeaveday(
|
||||
employeeClass.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue