บรรจุ แต่งตั้ง ย้าย โอน => ปรับ code และ load
This commit is contained in:
parent
9f4aeec575
commit
34dc306288
30 changed files with 1154 additions and 1429 deletions
|
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue