formdetail
This commit is contained in:
parent
0f0e1439da
commit
e27c26ba0a
1 changed files with 6 additions and 9 deletions
|
|
@ -269,7 +269,7 @@ async function fetchDataDetail(id: string) {
|
||||||
formData.dear = data.dear ?? "-";
|
formData.dear = data.dear ?? "-";
|
||||||
checkLeaveType(
|
checkLeaveType(
|
||||||
formData.leaveTypeId,
|
formData.leaveTypeId,
|
||||||
formData.ordainDayLocationName,
|
data.hajjDayStatus,
|
||||||
formData.studyDayTrainingSubject
|
formData.studyDayTrainingSubject
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|
@ -289,7 +289,7 @@ async function fetchDataDetail(id: string) {
|
||||||
*/
|
*/
|
||||||
function checkLeaveType(
|
function checkLeaveType(
|
||||||
leaveTypeId: string,
|
leaveTypeId: string,
|
||||||
ordainDayLocationName: string,
|
hajjDayStatus: boolean,
|
||||||
studyDayTrainingSubject: string
|
studyDayTrainingSubject: string
|
||||||
) {
|
) {
|
||||||
if (props.leaveType) {
|
if (props.leaveType) {
|
||||||
|
|
@ -301,9 +301,9 @@ function checkLeaveType(
|
||||||
checkForm.value = "FormChildbirth";
|
checkForm.value = "FormChildbirth";
|
||||||
} else if (type === "LV-005") {
|
} else if (type === "LV-005") {
|
||||||
checkForm.value = "FormHoliday";
|
checkForm.value = "FormHoliday";
|
||||||
} else if (type === "LV-006" && ordainDayLocationName === "") {
|
} else if (type === "LV-006" && hajjDayStatus === true) {
|
||||||
checkForm.value = "FormHajj";
|
checkForm.value = "FormHajj";
|
||||||
} else if (type === "LV-006") {
|
} else if (type === "LV-006" && hajjDayStatus === false) {
|
||||||
checkForm.value = "FormUpasom";
|
checkForm.value = "FormUpasom";
|
||||||
} else if (type === "LV-007") {
|
} else if (type === "LV-007") {
|
||||||
checkForm.value = "FormCheckSelect";
|
checkForm.value = "FormCheckSelect";
|
||||||
|
|
@ -432,7 +432,7 @@ watch(
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-section class="scroll" style="max-height: 60vh;">
|
<q-card-section class="scroll" style="max-height: 60vh">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div
|
<div
|
||||||
flat
|
flat
|
||||||
|
|
@ -564,10 +564,7 @@ watch(
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
<q-card
|
<q-card v-if="props.leaveStatus === 'DELETE'" style="min-width: 40vw">
|
||||||
v-if="props.leaveStatus === 'DELETE'"
|
|
||||||
style="min-width: 40vw"
|
|
||||||
>
|
|
||||||
<DialogHeader
|
<DialogHeader
|
||||||
:tittle="`${titleMainCancle} ${titleName}`"
|
:tittle="`${titleMainCancle} ${titleName}`"
|
||||||
:close="props.onClickClose"
|
:close="props.onClickClose"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue