diff --git a/src/modules/05_placement/components/OrderPlacement/step/step02.vue b/src/modules/05_placement/components/OrderPlacement/step/step02.vue index 2fe4959fe..15087cc43 100644 --- a/src/modules/05_placement/components/OrderPlacement/step/step02.vue +++ b/src/modules/05_placement/components/OrderPlacement/step/step02.vue @@ -572,20 +572,30 @@ const putSalary = async (salary: any) => { positionSalaryAmount: Number(salary.positionSalaryAmount), mouthSalaryAmount: Number(salary.mouthSalaryAmount), }; - await http - .put(config.API.salaryOrder(personalId.value), modalData.value) - .then((res: any) => { - console.log(res); - success($q, "บันทึกข้อมูลสำเร็จ"); - }) - .catch((e) => { - console.log(e); - messageError($q, e); - }) - .finally(async () => { - await conditionData(); - modal.value = false; - }); + $q.dialog({ + title: "ยืนยันการบันทึกข้อมูล", + message: "ต้องการยืนยันการบันทึกข้อมูลนี้ใช่หรือไม่?", + cancel: { + flat: true, + color: "negative", + }, + persistent: true, + }).onOk(async () => { + await http + .put(config.API.salaryOrder(personalId.value), modalData.value) + .then((res: any) => { + console.log(res); + success($q, "บันทึกข้อมูลสำเร็จ"); + }) + .catch((e) => { + console.log(e); + messageError($q, e); + }) + .finally(async () => { + await conditionData(); + modal.value = false; + }); + }); }; const modalAddChange = async () => {