เงินเดือน => เลื่อนค่าจ้างลูกจ้างประจำ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-20 15:18:31 +07:00
parent d5b5eec3e8
commit d0bbf5f68e
10 changed files with 60 additions and 75 deletions

View file

@ -146,8 +146,8 @@ function saveReccommend(reason: string) {
titleRecommend: reason,
}
)
.then(() => {
props.getData?.();
.then(async () => {
await props.getData?.();
})
.catch((e) => {
messageError($q, e);

View file

@ -204,9 +204,9 @@ function onClickDelete(id: string) {
showLoader();
await http
.delete(config.API.salaryListPeriodProfileById(id))
.then(() => {
success($q, "ลบข้อมูลสำเร็จ");
props.fetchDataTable?.();
.then(async () => {
await props.fetchDataTable?.();
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((err) => {
messageError($q, err);