ต่อ api ปฏิเสธจ่ายเงิน
This commit is contained in:
parent
f03c8a8f10
commit
c3688918bf
6 changed files with 126 additions and 97 deletions
|
|
@ -23,6 +23,14 @@
|
|||
:icon="stepRaw >= 2 ? (stepRaw == 2 ? 'mdi-pencil' : 'mdi-check-bold') : 'mdi-account'"
|
||||
>
|
||||
<q-card bordered class="q-pa-lg">
|
||||
<q-card-actions
|
||||
v-if="status === 'rejectRegister'"
|
||||
class="q-pa-md q-mb-md text-left row bg-red-2"
|
||||
>
|
||||
<div class="col-12 text-red-12">
|
||||
<li>{{ rejectMessage }}</li>
|
||||
</div>
|
||||
</q-card-actions>
|
||||
<ExamForm :fetchStep="fetchStep" :status="status" />
|
||||
</q-card>
|
||||
</q-step>
|
||||
|
|
@ -85,6 +93,7 @@ const loader = ref<boolean>(false)
|
|||
const status = ref<string>('register')
|
||||
const modalConsend = ref<boolean>(false)
|
||||
const stepPayment = ref<boolean>(true)
|
||||
const rejectMessage = ref<string>('')
|
||||
|
||||
onMounted(async () => {
|
||||
// stepRaw.value = 3
|
||||
|
|
@ -143,36 +152,41 @@ const fetchStep = async () => {
|
|||
.get(config.API.candidateStatus(examId.value, positionId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result
|
||||
status.value = data
|
||||
if (data == 'register') {
|
||||
rejectMessage.value = data.rejectDetail
|
||||
status.value = data.status
|
||||
if (status.value == 'register') {
|
||||
stepRaw.value = 2
|
||||
step.value = 2
|
||||
} else if (data == 'checkRegister') {
|
||||
} else if (status.value == 'checkRegister') {
|
||||
stepRaw.value = 3
|
||||
step.value = 3
|
||||
} else if (data == 'payment') {
|
||||
} else if (status.value == 'payment') {
|
||||
stepRaw.value = 3
|
||||
step.value = 3
|
||||
} else if (data == 'rejectRegister') {
|
||||
} else if (status.value == 'rejectRegister') {
|
||||
stepRaw.value = 2
|
||||
step.value = 2
|
||||
} else if (data == 'checkPayment') {
|
||||
} else if (status.value == 'checkPayment') {
|
||||
stepRaw.value = 4
|
||||
step.value = 4
|
||||
} else if (data == 'rejectPayment') {
|
||||
} else if (status.value == 'rejectPayment') {
|
||||
stepRaw.value = 3
|
||||
step.value = 3
|
||||
} else if (data == 'checkSeat') {
|
||||
} else if (status.value == 'checkSeat') {
|
||||
stepRaw.value = 4
|
||||
step.value = 4
|
||||
} else if (data == 'checkPoint') {
|
||||
} else if (status.value == 'checkPoint') {
|
||||
stepRaw.value = 4
|
||||
step.value = 4
|
||||
} else if (data == 'done') {
|
||||
} else if (status.value == 'done') {
|
||||
stepRaw.value = 4
|
||||
step.value = 4
|
||||
}
|
||||
if (stepPayment.value == false && data != 'register' && data != 'rejectRegister') {
|
||||
if (
|
||||
stepPayment.value == false &&
|
||||
status.value != 'register' &&
|
||||
status.value != 'rejectRegister'
|
||||
) {
|
||||
stepRaw.value = 4
|
||||
step.value = 4
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue