เหตุผลที่ขอยกเลิกการลาออก

This commit is contained in:
setthawutttty 2024-02-27 14:52:25 +07:00
parent 759a7c556d
commit 2f8d318a38
2 changed files with 86 additions and 18 deletions

View file

@ -6,6 +6,7 @@ import { useCounterMixin } from "@/stores/mixin"
import http from "@/plugins/http"
import config from "@/app.config"
import type { QForm } from "quasar"
import Dialog from '@/modules/03_retire/views/DialogRetire.vue'
const mixin = useCounterMixin()
const { date2Thai, dateToISO, success, messageError, showLoader, hideLoader, fails } = mixin
@ -23,7 +24,7 @@ const tranferOrg = ref("")
const dateCommand = ref<Date>(new Date())
const dateLeave = ref<Date>(new Date())
const noteReason = ref("")
const modal = ref<boolean>(false)
/** ข้อมูล v-model ของฟอร์ม */
const dataDetail = ref<any>({
datetext: "",
@ -129,23 +130,7 @@ const saveResing = () => {
//
const cancelResing = () => {
$q.dialog({
title: "ยืนยันการยกเลิกการลาออก",
message: "ต้องการยื่นข้อมูลยกเลิกการลาออกนี้ใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
},
persistent: true,
})
.onOk(async () => {
if (route.params.id !== undefined) {
id.value = route.params.id.toString()
deleteResting(id.value)
}
})
.onCancel(() => {})
.onDismiss(() => {})
modal.value = true
}
/**
@ -433,4 +418,8 @@ const fectDataresign = async (id: string) => {
</q-form>
</div>
</div>
<Dialog
v-model:modal="modal"
/>
</template>