disable อัพหลักฐานชำระถ้ายังไม่ถึงช่วงอัพ

This commit is contained in:
Kittapath 2023-03-29 21:13:45 +07:00
parent 3960b9d388
commit 85eede7a85

View file

@ -10,7 +10,13 @@
<li>{{ rejectMessage }}</li>
</div>
</q-card-actions>
<q-file borderless v-model="fileData" stack-label @update:model-value="uploadImg">
<q-file
borderless
v-model="fileData"
stack-label
@update:model-value="uploadImg"
:disable="status != 'payment' && status != 'rejectPayment'"
>
<q-img :src="img" fit="contain" style="max-height: 300px" class="col-12">
<div class="absolute-bottom text-center">หลกฐานชำระเง</div>
</q-img>
@ -98,8 +104,10 @@ const getClass = (val: string) => {
}
const message = (val: string) => {
switch (val) {
case 'checkRegister':
return 'รอการตรวจสอบข้อมูลสมัคร'
case 'checkPayment':
return 'รอการตรวจสอบ'
return 'รอการตรวจสอบหลักฐานการชำระเงิน'
case 'rejectPayment':
return 'หลักฐานการชำระเงินผิดพลาด'
case 'checkSeat':
@ -112,6 +120,8 @@ const message = (val: string) => {
}
const getFontColor = (val: string) => {
switch (val) {
case 'checkRegister':
return 'text-blue'
case 'checkPayment':
return 'text-orange'
case 'rejectPayment':