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 () => {