ทะเบียนประวัติ => ข้อมูลการพ้นจากราชการ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-30 17:07:04 +07:00
parent 6003547e78
commit 737fa3a5b6
4 changed files with 85 additions and 27 deletions

View file

@ -354,8 +354,7 @@ async function fetchDataPersonal() {
await http
.get(config.API.registryNewByProfileId(profileId.value, empType.value))
.then(async (res) => {
formDetail.value = res.data.result;
formDetail.value = await res.data.result;
storeRegistry.isLeave = res.data.result.isLeave;
if (res.data.result.leaveReason) {
@ -514,7 +513,13 @@ function outPost() {
await http
.post(config.API.retirementOut, formData)
.then(async () => {
await router.push(`${empType.value === "-employee" ? `/retirementEmployee`:`/retirement/dismiss-order`}`);
await router.push(
`${
empType.value === "-employee"
? `/retirementEmployee`
: `/retirement/dismiss-order`
}`
);
await success($q, "ดำเนินการสำเร็จ");
})
.catch((e) => {
@ -1186,7 +1191,7 @@ onMounted(async () => {
</q-dialog>
<!-- Dialog อมลการพนจากราชการ -->
<DialogRetired v-model:modal="modalDialogRetired" />
<DialogRetired v-model:modal="modalDialogRetired" :data="formDetail" />
</template>
<style scoped>