upload เอกสารหลักฐาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-09 10:55:56 +07:00
parent 01fe8f97f4
commit 518884d548
10 changed files with 387 additions and 137 deletions

View file

@ -194,7 +194,7 @@ const dialogDeleteData = async (id: string) => {
const deleteData = async (id: string) => {
await http
.delete(config.API.personsOrder(id))
.then((res) => {
.then(() => {
success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
@ -271,8 +271,6 @@ const fetchSalary = async (personalId: string) => {
.get(config.API.salaryOrder(personalId))
.then((res: any) => {
const data = res.data.result;
console.log(data);
modalData.value = {
salaryAmount:
data.salaryAmount === 0 &&
@ -318,7 +316,7 @@ const putSalary = async (salary: any) => {
}
await http
.put(config.API.salaryOrder(personalId.value), modalData.value)
.then((any) => {
.then(() => {
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((e) => {