เงินเดือน => รายการผังบัญชีเงินเดือน,ผังบัญชีค่าจ้างลูกจ้างประจำ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-20 11:44:42 +07:00
parent af56b950b1
commit a589162530
12 changed files with 337 additions and 308 deletions

View file

@ -63,13 +63,17 @@ const title = computed(() => {
return name;
});
/** function ปืด Dialog*/
/**
* function Dialog*
*/
function closeDialog() {
modal.value = !modal.value;
clearFormData();
}
/** function เคลียข้อมูล form*/
/**
* function เคลยขอม form
*/
function clearFormData() {
formData.salaryId = "";
formData.salary = null;
@ -139,13 +143,13 @@ function onSubmit() {
? config.API.salaryRateList
: config.API.salaryRateListByid(formData.salaryId);
await http[props.typeAction === "add" ? "post" : "put"](url, body);
success($q, "บันทีกข้อมูลสำเร็จ");
props.fetchData?.();
await props.fetchData?.();
await success($q, "บันทีกข้อมูลสำเร็จ");
closeDialog();
} catch (err) {
messageError($q, err);
} finally {
hideLoader();
closeDialog();
}
});
}