|
@@ -32,18 +32,21 @@
|
|
|
مشاهده سفارش
|
|
مشاهده سفارش
|
|
|
</q-btn>
|
|
</q-btn>
|
|
|
|
|
|
|
|
- <div v-if="payment.type === 'WITHDRAW_REQUEST'">
|
|
|
|
|
|
|
+ <div v-if="payment.receipt || payment.IBAN">
|
|
|
<div class="row q-col-gutter-md q-mt-lg">
|
|
<div class="row q-col-gutter-md q-mt-lg">
|
|
|
<div class="col-md-6 col-12">
|
|
<div class="col-md-6 col-12">
|
|
|
رسید پرداخت:
|
|
رسید پرداخت:
|
|
|
- {{ payment.receipt }}
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <q-img :src="payment.receipt" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6 col-12">
|
|
<div class="col-md-6 col-12">
|
|
|
شماره شبا:
|
|
شماره شبا:
|
|
|
{{ payment.IBAN }}
|
|
{{ payment.IBAN }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <form-builder ref="requestForm"
|
|
|
|
|
|
|
+ <form-builder v-if="payment.type === 'WITHDRAW_REQUEST'"
|
|
|
|
|
+ ref="requestForm"
|
|
|
v-model:value="requestInputs"
|
|
v-model:value="requestInputs"
|
|
|
:loading="requestLoading"
|
|
:loading="requestLoading"
|
|
|
class="q-mt-md" />
|
|
class="q-mt-md" />
|
|
@@ -154,21 +157,26 @@ export default {
|
|
|
this.entityLoading = true
|
|
this.entityLoading = true
|
|
|
this.$refs.entityEdit.editEntity(false)
|
|
this.$refs.entityEdit.editEntity(false)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- this.$refs.entityEdit.getData()
|
|
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.entityLoading = false
|
|
this.entityLoading = false
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
- this.$refs.entityEdit.getData()
|
|
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.entityLoading = false
|
|
this.entityLoading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ refreshPaymentData () {
|
|
|
|
|
+ this.$refs.entityEdit.getData()
|
|
|
|
|
+ },
|
|
|
confirmWithdraw () {
|
|
confirmWithdraw () {
|
|
|
this.requestLoading = true
|
|
this.requestLoading = true
|
|
|
APIGateway.payment.confirmWithdraw(this.payment.id, this.getRequestFormData())
|
|
APIGateway.payment.confirmWithdraw(this.payment.id, this.getRequestFormData())
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.requestLoading = false
|
|
this.requestLoading = false
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.requestLoading = false
|
|
this.requestLoading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -179,9 +187,11 @@ export default {
|
|
|
description: FormBuilderAssist.getInputsByName(this.requestInputs, 'description').value
|
|
description: FormBuilderAssist.getInputsByName(this.requestInputs, 'description').value
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.requestLoading = false
|
|
this.requestLoading = false
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
|
|
+ this.refreshPaymentData()
|
|
|
this.requestLoading = false
|
|
this.requestLoading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|