From 487eb0898c0dffccd9e73e4643bf00096c856bab Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 25 Oct 2024 15:52:54 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=82=E0=B8=AD=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 --- src/modules/03_retire/views/addRetire.vue | 94 ++++++++++++++++------- 1 file changed, 66 insertions(+), 28 deletions(-) diff --git a/src/modules/03_retire/views/addRetire.vue b/src/modules/03_retire/views/addRetire.vue index b0562d7..148cc86 100644 --- a/src/modules/03_retire/views/addRetire.vue +++ b/src/modules/03_retire/views/addRetire.vue @@ -9,6 +9,7 @@ import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import Dialog from "@/modules/03_retire/views/DialogRetire.vue"; +import Header from "@/components/DialogHeader.vue"; import Workflow from "@/components/Workflow/Main.vue"; const $q = useQuasar(); @@ -39,28 +40,9 @@ const noteReason = ref(""); //เหตุผลที่ลาออกจา const modal = ref(false); //ตัวแปร dialog /** ข้อมูล v-model ของฟอร์ม */ -const dataDetail = ref({ - datetext: "", - activeDate: new Date(), - createdAt: new Date(), - firstName: "", - id: "", - isActive: true, - lastName: "", - location: "", - organizationPositionOld: "", - positionLevelOld: "", - positionNumberOld: "", - positionTypeOld: "", - prefix: "", - profileId: "", - reason: "", - salary: 0, - sendDate: new Date(), - status: "", - statustext: "", - fullname: "", -}); +const dataDetail = ref({}); + +const modalWorkflow = ref(false); /** * ฟังก์ชั่นเปลี่ยนเป็น string ของ status @@ -97,9 +79,9 @@ async function onSubmit() { http .post(config.API.listResign(), formData) .then((res) => { - let data = res.data.result.id; + let id = res.data.result.id; + router.push(`/retire/result/${id}`); success($q, "บันทึกข้อมูลสำเร็จ"); - router.push(`/retire/result/${data}`); }) .catch((e) => { messageError($q, e); @@ -195,7 +177,23 @@ onMounted(() => { @validation-success="onSubmit" > - + + + {{ dataDetail.rejectReason }} + + + +
@@ -393,7 +404,7 @@ onMounted(() => {
-
+
@@ -594,11 +605,38 @@ onMounted(() => { -
+
+ + + +
+ + + + + + +