ระบบลาของข้าราชการแสดงเฉพาะที่ยื่นใบลาไปแล้วเท่านั้น ลูกจ้างไม่มี workflow
This commit is contained in:
parent
38bef980bb
commit
7a3ffc432d
2 changed files with 16 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useLeaveStore } from "@/modules/05_leave/store";
|
import { useLeaveStore } from "@/modules/05_leave/store";
|
||||||
|
import { useDataStore } from "@/stores/data";
|
||||||
|
|
||||||
/** import type*/
|
/** import type*/
|
||||||
import type {
|
import type {
|
||||||
|
|
@ -32,6 +33,7 @@ import FormCancel from "@/modules/05_leave/components/formDetail/formCancel.vue"
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const dataStore = useLeaveStore();
|
const dataStore = useLeaveStore();
|
||||||
|
const mainStore = useDataStore();
|
||||||
const { convertStatud } = dataStore;
|
const { convertStatud } = dataStore;
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const {
|
const {
|
||||||
|
|
@ -495,7 +497,14 @@ watch(
|
||||||
:data="formData"
|
: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>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
@ -553,7 +562,11 @@ watch(
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</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
|
<DialogHeader
|
||||||
:tittle="`${titleMainCancle} ${titleName}`"
|
:tittle="`${titleMainCancle} ${titleName}`"
|
||||||
:close="props.onClickClose"
|
:close="props.onClickClose"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { useRegistryInFormationStore } from "@/modules/10_registry/store/registr
|
||||||
import { useCounterMixin } from "./mixin";
|
import { useCounterMixin } from "./mixin";
|
||||||
import type { ProfileData } from "@/interface/Main";
|
import type { ProfileData } from "@/interface/Main";
|
||||||
|
|
||||||
export const useDataStore = defineStore("data", () => {
|
export const useDataStore = defineStore("dataMain", () => {
|
||||||
const storeRegistry = useRegistryInFormationStore();
|
const storeRegistry = useRegistryInFormationStore();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue