ทะเบียนประวัติ => ข้อมูลการพ้นจากราชการ
This commit is contained in:
parent
6003547e78
commit
737fa3a5b6
4 changed files with 85 additions and 27 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue