refactor: header can't edit status INACTIVE employee
This commit is contained in:
parent
7936fa0d96
commit
7bf30ab0a4
1 changed files with 16 additions and 4 deletions
|
|
@ -3194,7 +3194,10 @@ const emptyCreateDialog = ref(false);
|
|||
<div
|
||||
class="surface-1 rounded q-pt-sm row"
|
||||
style="position: absolute; z-index: 999; right: 4%"
|
||||
v-if="currentTab === 'employee'"
|
||||
v-if="
|
||||
currentTab === 'employee' &&
|
||||
currentFromDataEmployee.status !== 'INACTIVE'
|
||||
"
|
||||
>
|
||||
<UndoButton
|
||||
v-if="employeeFormState.isEmployeeEdit"
|
||||
|
|
@ -3501,7 +3504,10 @@ const emptyCreateDialog = ref(false);
|
|||
prefix-id="drawer-employee"
|
||||
dense
|
||||
outlined
|
||||
:hide-action="currentTab !== 'employee'"
|
||||
:hide-action="
|
||||
currentTab !== 'employee' ||
|
||||
currentFromDataEmployee.status === 'INACTIVE'
|
||||
"
|
||||
v-model:current-index="employeeFormState.currentIndex"
|
||||
v-model:employee-checkup="
|
||||
currentFromDataEmployee.employeeCheckup
|
||||
|
|
@ -3562,7 +3568,10 @@ const emptyCreateDialog = ref(false);
|
|||
id="drawer-work-history"
|
||||
prefix-id="drawer-employee"
|
||||
dense
|
||||
:hide-action="currentTab !== 'employee'"
|
||||
:hide-action="
|
||||
currentTab !== 'employee' ||
|
||||
currentFromDataEmployee.status === 'INACTIVE'
|
||||
"
|
||||
outlined
|
||||
v-model:current-index="employeeFormState.currentIndex"
|
||||
v-model:employee-work="currentFromDataEmployee.employeeWork"
|
||||
|
|
@ -3607,7 +3616,10 @@ const emptyCreateDialog = ref(false);
|
|||
</template>
|
||||
<template v-if="employeeFormState.currentTab === 'other'">
|
||||
<FormEmployeeOther
|
||||
:hide-action="currentTab !== 'employee'"
|
||||
:hide-action="
|
||||
currentTab !== 'employee' ||
|
||||
currentFromDataEmployee.status === 'INACTIVE'
|
||||
"
|
||||
v-if="employeeFormState.currentTab === 'other'"
|
||||
id="drawer-other"
|
||||
prefix-id="drawer-employee"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue