ระบบลาของข้าราชการแสดงเฉพาะที่ยื่นใบลาไปแล้วเท่านั้น ลูกจ้างไม่มี workflow

This commit is contained in:
Warunee Tamkoo 2024-11-14 16:37:31 +07:00
parent 38bef980bb
commit 7a3ffc432d
2 changed files with 16 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useLeaveStore } from "@/modules/05_leave/store";
import { useDataStore } from "@/stores/data";
/** import type*/
import type {
@ -32,6 +33,7 @@ import FormCancel from "@/modules/05_leave/components/formDetail/formCancel.vue"
const $q = useQuasar();
const dataStore = useLeaveStore();
const mainStore = useDataStore();
const { convertStatud } = dataStore;
const mixin = useCounterMixin();
const {
@ -495,7 +497,14 @@ watch(
:data="formData"
/>
<Workflow :id="props.leaveId" sys-name="SYS_LEAVE_LIST" />
<!-- าราชการแสดงเฉพาะทนใบลาไปแลวเทาน กจางไม workflow -->
<Workflow
v-if="
leaveStatus != 'DRAFT' && mainStore.officerType == 'OFFICER'
"
:id="props.leaveId"
sys-name="SYS_LEAVE_LIST"
/>
</div>
<div
@ -553,7 +562,11 @@ watch(
</q-card-section>
</q-card>
<q-card q-card v-if="props.leaveStatus === 'DELETE'">
<q-card
q-card
v-if="props.leaveStatus === 'DELETE'"
style="min-width: 40vw"
>
<DialogHeader
:tittle="`${titleMainCancle} ${titleName}`"
:close="props.onClickClose"