From f0ba8506ee79d1f5e23ed1f69a82b2060acee55e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 25 Oct 2024 10:41:12 +0700 Subject: [PATCH 1/7] =?UTF-8?q?workflow=20=3D>=20=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/resign/ResignByid.vue | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/modules/06_retirement/components/resign/ResignByid.vue b/src/modules/06_retirement/components/resign/ResignByid.vue index d027a768e..027f34aa9 100644 --- a/src/modules/06_retirement/components/resign/ResignByid.vue +++ b/src/modules/06_retirement/components/resign/ResignByid.vue @@ -101,12 +101,8 @@ const isCheckData = computed(() => { posNo.value !== "" && salary.value !== 0 && date.value !== null && - (workflowRef.value?.permission.isOperate - ? dataDetail.value.commanderReject !== null - : true) && - (workflowRef.value?.permission.isSign - ? dataDetail.value.oligarchReject !== null - : true) + dataDetail.value.commanderReject !== null && + dataDetail.value.oligarchReject !== null ) { return true; } else return false; @@ -181,6 +177,7 @@ function diffDate() { /** นำข้อมูลมาจาก API*/ async function fetchData(id: string) { + showLoader(); await http .get(config.API.resingByid(id)) .then(async (res) => { @@ -216,6 +213,8 @@ async function fetchData(id: string) { }) .catch((e) => { messageError($q, e); + }) + .finally(() => { hideLoader(); }); } @@ -766,11 +765,7 @@ onMounted(async () => {
{ v-model="isNoDebt" label="ไม่เป็นหนี้สหกรณ์" color="teal" - :disable="!conditions && !workflowRef?.permission.isUpdate" + :disable="!conditions" />
@@ -820,7 +815,7 @@ onMounted(async () => { v-model="isNoBurden" label="ไม่มีภาระผูกพันค้ำประกันทุนการศึกษา" color="teal" - :disable="!conditions && !workflowRef?.permission.isUpdate" + :disable="!conditions" />
@@ -828,7 +823,7 @@ onMounted(async () => { v-model="isDiscipline" label="ไม่มีพฤติการณ์ทางวินัย" color="teal" - :disable="!conditions && !workflowRef?.permission.isUpdate" + :disable="!conditions" />
@@ -845,9 +840,7 @@ onMounted(async () => {
{ ผลการพิจารณาของผู้บังคับบัญชา
-
+
{ ผลการพิจารณาของผู้มีอำนาจ
-
+
Date: Fri, 25 Oct 2024 10:41:32 +0700 Subject: [PATCH 2/7] =?UTF-8?q?workflow=20=3D>=20=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Workflow/Main.vue | 12 +- .../components/2_Leave/DetailLeave.vue | 185 +++++++++++------- 2 files changed, 122 insertions(+), 75 deletions(-) diff --git a/src/components/Workflow/Main.vue b/src/components/Workflow/Main.vue index 84d61708d..a4bb315e6 100644 --- a/src/components/Workflow/Main.vue +++ b/src/components/Workflow/Main.vue @@ -37,12 +37,12 @@ const dataUserComment = ref(); const isPermission = ref(true); //การเข้าถึง Workflow const permission = ref({ isChangeState: false, //ส่งไปยังผู้บังคับบัญชา/ผู้มีอำนาจ - isOperate: false, //เปลี่ยนสถานะ (state) เอกสารได้ + isOperate: false, //เปลี่ยนสถานะ (state) เอกสารได้ ผู้บังคับบัญชา isView: false, //ดูเอกสารได้ isUpdate: false, //แก้ไขเอกสารได้ isDelete: false, //ลบเอกสารได้ (ถ้ามี) isCancel: false, //ลบเอกสารได้ (ถ้ามี) - isSign: false, + isSign: false, //ผู้มีอำนาจ }); const itemState = ref([]); @@ -50,8 +50,12 @@ const modalSelectPerson = ref(false); const modalApprove = ref(false); const typeSelectPerson = ref(""); -//รายการระบบที่ต้องการ disable step 3 -const displayArray = ["REGISTRY_PROFILE"]; +//รายการระบบที่ต้องการ disable step 3 หรือรองสุดท้าย +const displayArray = [ + "REGISTRY_PROFILE", + "RETIREMENT_RESIFNATION", + "LEAVE_LIST", +]; async function fetchCheckState() { await http diff --git a/src/modules/09_leave/components/2_Leave/DetailLeave.vue b/src/modules/09_leave/components/2_Leave/DetailLeave.vue index 0de7cab2d..0119a7956 100644 --- a/src/modules/09_leave/components/2_Leave/DetailLeave.vue +++ b/src/modules/09_leave/components/2_Leave/DetailLeave.vue @@ -1,5 +1,5 @@ - diff --git a/src/modules/06_retirement/components/DialogHeader.vue b/src/modules/06_retirement/components/DialogHeader.vue deleted file mode 100644 index 7bc9b4207..000000000 --- a/src/modules/06_retirement/components/DialogHeader.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - diff --git a/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue b/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue index 26b77412b..4feac862e 100644 --- a/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue +++ b/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue @@ -9,7 +9,7 @@ import { useCounterMixin } from "@/stores/mixin"; import type { QTableProps } from "quasar"; import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main"; -import DialogHeader from "@/modules/06_retirement/components/DialogHeader.vue"; +import DialogHeader from "@/components/DialogHeader.vue"; /** use */ const $q = useQuasar(); @@ -151,7 +151,7 @@ watchEffect(() => {