บรรจุ แต่งตั้ง ย้าย โอน => ปรับ code และ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-19 16:14:43 +07:00
parent 9f4aeec575
commit 34dc306288
30 changed files with 1154 additions and 1429 deletions

View file

@ -152,15 +152,15 @@ const Ordersave = async () => {
showLoader();
await http
.post(config.API.transferReport, body)
.then((res: any) => {
success($q, "ส่งไปออกคำสั่งสำเร็จ");
.then(async () => {
await props.getData?.();
await success($q, "ส่งไปออกคำสั่งสำเร็จ");
props.closeModal?.();
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
props.getData?.();
.finally(() => {
hideLoader();
});
};

View file

@ -257,6 +257,7 @@ const conditionSave = async () => {
};
const saveData = async () => {
showLoader();
const body = {
organization: organization.value,
reason: reason.value,
@ -267,18 +268,17 @@ const saveData = async () => {
positionNumberOld: posNo.value,
amountOld: salary.value,
};
showLoader();
await http
.put(config.API.transferId(dataId.toString()), body)
.then((res: any) => {
success($q, "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้ายสำเร็จ");
.then(async () => {
await getData();
await success($q, "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้ายสำเร็จ");
edit.value = false;
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
await getData();
.finally(() => {
hideLoader();
});
};
@ -322,7 +322,7 @@ onMounted(async () => {
class="q-mr-sm"
@click="router.push(`/placement/transfer`)"
/>
รายละเอยดการขอโอนของ {{ responseData.fullname }}
รายละเอยดการขอโอนของ{{ responseData.fullname }}
</div>
<CardProfile :data="dataProfile as DataProfile" />
<!-- <q-card bordered class="row col-12 text-dark">