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 อัปเดทบัญชีแสดงวันลา */
|
/** function อัปเดทบัญชีแสดงวันลา */
|
||||||
async function updateLeaveday() {
|
async function updateLeaveday() {
|
||||||
if (!nodeId.value || !typeReport.value) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
isReport.value = false;
|
|
||||||
isLoadPDF.value = true;
|
|
||||||
pdfSrc.value = undefined;
|
|
||||||
switch (yearType.value) {
|
switch (yearType.value) {
|
||||||
case "FULL":
|
case "FULL":
|
||||||
dateStart.value = new Date(year.value - 1, 9, 1);
|
dateStart.value = new Date(year.value - 1, 9, 1);
|
||||||
|
|
@ -121,6 +114,14 @@ async function updateLeaveday() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!nodeId.value || !typeReport.value) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
isReport.value = false;
|
||||||
|
isLoadPDF.value = true;
|
||||||
|
pdfSrc.value = undefined;
|
||||||
|
|
||||||
typeReport.value === "1"
|
typeReport.value === "1"
|
||||||
? fetchLeaveday(
|
? fetchLeaveday(
|
||||||
employeeClass.value,
|
employeeClass.value,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue