อัตรากำลังลูกจ้างประจำ ฯ => fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-16 11:12:06 +07:00
parent df481043b1
commit 722794a27e
5 changed files with 49 additions and 29 deletions

View file

@ -193,10 +193,14 @@ function onClickDelete(id: string) {
showLoader();
await http
.delete(config.API.orgPosMasterByIdEmp(id))
.then(() => {
.then(async () => {
await props.fetchDataTable?.(
reqMaster.value.id,
reqMaster.value.type,
false
);
await getSummary();
success($q, "ลบข้อมูลสำเร็จ");
props.fetchDataTable?.(reqMaster.value.id, reqMaster.value.type, false);
getSummary();
})
.catch((err) => {
messageError($q, err);
@ -262,14 +266,14 @@ function removePerson(id: string) {
showLoader();
await http
.post(config.API.orgDeleteProfileEmp(id))
.then(() => {
success($q, "ลบข้อมูลสำเร็จ");
props.fetchDataTable?.(
.then(async () => {
await props.fetchDataTable?.(
reqMaster.value.id,
reqMaster.value.type,
false
);
getSummary();
await getSummary();
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((err) => {
messageError($q, err);