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] =?UTF-8?q?workflow=20=3D>=20=E0=B8=A5=E0=B8=B2=E0=B8=AD?= =?UTF-8?q?=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 () => {
{ ผลการพิจารณาของผู้บังคับบัญชา
-
+
{ ผลการพิจารณาของผู้มีอำนาจ
-
+