fix ข้อความ ปิดการแก้ไข
This commit is contained in:
parent
50a8f9c5fe
commit
aa1270cb64
1 changed files with 30 additions and 25 deletions
|
|
@ -393,31 +393,36 @@ async function fetchCheckisOfficer() {
|
|||
}
|
||||
|
||||
function onClosePeriodSalalry() {
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.put(
|
||||
config.API.salaryChangeIsclose +
|
||||
`/${snapFilter.value}/${roundFilter.value.id}`,
|
||||
{
|
||||
isClose: true,
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await fetchSalalyPeriod(
|
||||
agencyFilter.value,
|
||||
roundFilter.value.id,
|
||||
snapFilter.value
|
||||
);
|
||||
success($q, "ปิดการแก้ไขสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.put(
|
||||
config.API.salaryChangeIsclose +
|
||||
`/${snapFilter.value}/${roundFilter.value.id}`,
|
||||
{
|
||||
isClose: true,
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await fetchSalalyPeriod(
|
||||
agencyFilter.value,
|
||||
roundFilter.value.id,
|
||||
snapFilter.value
|
||||
);
|
||||
success($q, "ปิดการแก้ไขสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
},
|
||||
"ปิดการแก้ไข",
|
||||
"ต้องการปิดการแก้ไขรอบการขึ้นเงินเดือนนี้ใข่หรือไม่"
|
||||
);
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue