แก้บัค บันทึกข้อมูลประวัติ

This commit is contained in:
Kittapath 2023-04-07 17:59:48 +07:00
parent 9691b52a62
commit fd1b08461a
3 changed files with 10 additions and 9 deletions

View file

@ -65,7 +65,7 @@
</div> -->
<div>
<span class="text-weight-medium">ยอดสทธ (บาท) :</span>
<span class="text-blue q-pl-sm text-bold">200.00</span>
<span class="text-blue q-pl-sm text-bold">{{ fee }}</span>
</div>
</div>
<div class="col-12 text-grey-6 q-mt-xl">
@ -154,7 +154,7 @@
</div>
<div>
<span class="text-weight-medium">ยอดสทธ (บาท) :</span>
<span class="text-blue q-pl-sm text-bold">200.00</span>
<span class="text-blue q-pl-sm text-bold">{{ fee }}</span>
</div>
<q-btn
color="blue"
@ -266,16 +266,16 @@ const props = defineProps({
const $q = useQuasar()
const mixin = useCounterMixin() //
const { success } = mixin
const { success, modalError } = mixin
const rejectMessage = ref<string>('กรุณาจ่ายเงินให้ครบตามจำนวน')
const img = ref<string>('@/assets/krungthai.png')
const fileData = ref<any>()
const loader = ref<boolean>(false)
const pay = ref(null)
const route = useRoute()
const examId = ref<string>(route.params.id.toString())
const positionId = ref<string>(route.params.positionId.toString())
const bank = ref<any>([])
const fee = ref<number>()
const filePayment = ref<File[]>([])
const fileDataUpload = ref<File>()
@ -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 () => {

View file

@ -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,

View file

@ -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,