Merge branch 'develop' into devTee
This commit is contained in:
commit
26123c1184
7 changed files with 102 additions and 36 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted, ref, reactive } from "vue";
|
||||
import { onMounted, ref, reactive, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
|
|
@ -53,6 +53,12 @@ const statusOptionMain = ref<DataOption[]>(
|
|||
);
|
||||
const statusOption = ref<DataOption[]>(statusOptionMain.value); //ตัวเลือกรายการสถานะ
|
||||
|
||||
const isCheckData = computed(() => {
|
||||
if (isReadOnly.value === true) {
|
||||
return true;
|
||||
} else return false;
|
||||
});
|
||||
|
||||
/** function fetch ข้อมูลคำร้องแก้ไข*/
|
||||
async function fetchDataRequest() {
|
||||
showLoader();
|
||||
|
|
@ -447,6 +453,7 @@ onMounted(async () => {
|
|||
|
||||
<div class="col-12">
|
||||
<Workflow
|
||||
v-model:is-check-data="isCheckData"
|
||||
ref="workflowRef"
|
||||
:id="requestId"
|
||||
sys-name="REGISTRY_PROFILE"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted, ref } from "vue";
|
||||
import { onMounted, ref, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
|
@ -136,10 +136,21 @@ const rowsFileDownload = ref<rowFile[]>([
|
|||
},
|
||||
]);
|
||||
|
||||
/**
|
||||
* ฟังก์ชันดึงข้อมูลรายละเอียดการขอโอนตาม ID ของรายการโอน(transferId)
|
||||
*
|
||||
*/
|
||||
const isCheckData = computed(() => {
|
||||
if (
|
||||
organizationPositionOld.value !== "" &&
|
||||
positionTypeOld.value !== "" &&
|
||||
positionLevelOld.value !== "" &&
|
||||
posNo.value !== "" &&
|
||||
salary.value !== 0 &&
|
||||
organization.value !== "" &&
|
||||
date.value !== null
|
||||
) {
|
||||
return true;
|
||||
} else return false;
|
||||
});
|
||||
|
||||
/** ฟังก์ชันดึงข้อมูลรายละเอียดการขอโอนตาม ID ของรายการโอน(transferId)*/
|
||||
async function getData() {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -215,9 +226,7 @@ async function fileDownload(no: number, type: string, fileName: string) {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันยืนยันการส่งคำร้องไปยัง สกจ.
|
||||
*/
|
||||
/** ฟังก์ชันยืนยันการส่งคำร้องไปยัง สกจ.*/
|
||||
function confirmMessage() {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
|
|
@ -241,9 +250,7 @@ function confirmMessage() {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันยืนยันการบันทึกการแก้ไขข้อมูล
|
||||
*/
|
||||
/** ฟังก์ชันยืนยันการบันทึกการแก้ไขข้อมูล*/
|
||||
function onSubmit() {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
|
|
@ -278,9 +285,7 @@ function onSubmit() {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันปิดการแก้ไขข้อมูล
|
||||
*/
|
||||
/** ฟังก์ชันปิดการแก้ไขข้อมูล*/
|
||||
async function cancel() {
|
||||
await getData();
|
||||
edit.value = false;
|
||||
|
|
@ -299,7 +304,6 @@ function getClass(val: boolean) {
|
|||
|
||||
/**
|
||||
* เมื่อ Componets ถูกเรียกใช้งาน
|
||||
*
|
||||
* เช็ต role ผู้ใช่งาน
|
||||
* เรียก getData ดึงข้อมูลรายละเอียดการขอโอน
|
||||
*/
|
||||
|
|
@ -690,6 +694,7 @@ onMounted(async () => {
|
|||
<!-- Workflow -->
|
||||
<WorkFlow
|
||||
ref="workflowRef"
|
||||
v-model:is-check-data="isCheckData"
|
||||
:id="transferId"
|
||||
:sys-name="'PLACEMENT_TRANSFER'"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -371,10 +371,15 @@ onMounted(() => {
|
|||
<div class="row q-col-gutter-sm items-center q-py-xs">
|
||||
<div>
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="ออกคำสั่ง"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
color="add"
|
||||
icon="mdi-account-arrow-right"
|
||||
@click.pervent="modalCommand = true"
|
||||
/>
|
||||
>
|
||||
<q-tooltip>ส่งไปออกคำสั่ง</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
<datepicker
|
||||
|
|
|
|||
|
|
@ -373,10 +373,15 @@ onMounted(() => {
|
|||
<div class="row q-col-gutter-sm items-center q-py-xs">
|
||||
<div>
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="ออกคำสั่ง"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
color="add"
|
||||
icon="mdi-account-arrow-right"
|
||||
@click.pervent="modalCommand = true"
|
||||
/>
|
||||
>
|
||||
<q-tooltip>ส่งไปออกคำสั่ง</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue