fix workflow

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-21 15:37:18 +07:00
parent aa987f839c
commit 32da0e7107
5 changed files with 86 additions and 30 deletions

View file

@ -1,8 +1,8 @@
<script setup lang="ts">
import { ref, onMounted, computed } from "vue";
import axios from "axios";
import { useRouter, useRoute } from "vue-router";
import { useQuasar, QForm } from "quasar";
import { ref, onMounted } from "vue";
import http from "@/plugins/http";
import config from "@/app.config";
@ -94,6 +94,19 @@ const actionPass = ref<boolean>(false);
const reasonReign = ref<string>("");
const dateBreak = ref<Date | null>(null);
const isCheckData = computed(() => {
if (
organizationPositionOld.value !== "" &&
positionTypeOld.value !== "" &&
positionLevelOld.value !== "" &&
posNo.value !== "" &&
salary.value !== 0 &&
date.value !== null
) {
return true;
} else return false;
});
/** คอลัมน์ */
const rows = ref<TypeFile[]>([]);
const columns = ref<QTableProps["columns"]>([
@ -1284,7 +1297,12 @@ onMounted(async () => {
</q-form>
</q-card>
<WorkFlow ref="workflowRef" :id="id" sys-name="RETIREMENT_RESIFNATION" />
<WorkFlow
ref="workflowRef"
v-model:is-check-data="isCheckData"
:id="id"
sys-name="RETIREMENT_RESIFNATION"
/>
</div>
<q-dialog v-model="modal" persistent>