diff --git a/src/modules/01_exam/components/ExamPayment.vue b/src/modules/01_exam/components/ExamPayment.vue index 25d18d0..81d3eb5 100644 --- a/src/modules/01_exam/components/ExamPayment.vue +++ b/src/modules/01_exam/components/ExamPayment.vue @@ -65,7 +65,7 @@ -->
ยอดสุทธิ (บาท) : - 200.00 + {{ fee }}
@@ -154,7 +154,7 @@
ยอดสุทธิ (บาท) : - 200.00 + {{ fee }}
('กรุณาจ่ายเงินให้ครบตามจำนวน') const img = ref('@/assets/krungthai.png') const fileData = ref() const loader = ref(false) -const pay = ref(null) const route = useRoute() const examId = ref(route.params.id.toString()) const positionId = ref(route.params.positionId.toString()) const bank = ref([]) +const fee = ref() const filePayment = ref([]) const fileDataUpload = ref() @@ -297,7 +297,8 @@ const fetchPaymentExam = async () => { .get(config.API.periodExamPayment(examId.value)) .then((res) => { const data = res.data.result - bank.value = data + bank.value = data.bankExam + fee.value = data.fee }) .catch(() => {}) .finally(async () => { diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue index 44976ae..14183ce 100644 --- a/src/modules/01_exam/components/Form/Career.vue +++ b/src/modules/01_exam/components/Form/Career.vue @@ -384,7 +384,7 @@ const clickDeleteRow = async () => { if (rawItem.value != null) { loader.value = true await http - .delete(config.API.candidateCareer(rawItem.value.id)) + .delete(config.API.candidateCareer(rawItem.value.id,"")) .then(() => { success($q, 'ลบข้อมูลสำเร็จ') }) @@ -461,7 +461,7 @@ const saveData = async () => { const editData = async () => { loader.value = true await http - .put(config.API.candidateCareer(id.value), { + .put(config.API.candidateCareer(id.value,""), { name: location.value, position: position.value, salary: salary.value, diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue index 2ccd744..3320986 100644 --- a/src/modules/01_exam/components/Form/Education.vue +++ b/src/modules/01_exam/components/Form/Education.vue @@ -410,7 +410,7 @@ const clickDeleteRow = async () => { if (rawItem.value != null) { loader.value = true await http - .delete(config.API.candidateEducation(rawItem.value.id)) + .delete(config.API.candidateEducation(rawItem.value.id, '')) .then(() => { success($q, 'ลบข้อมูลสำเร็จ') }) @@ -487,7 +487,7 @@ const saveData = async () => { const editData = async () => { loader.value = true await http - .put(config.API.candidateEducation(id.value), { + .put(config.API.candidateEducation(id.value,""), { educationLevelId: educationLevelId.value, major: major.value, scores: scores.value,