From 08d22a59ceda26f1d4cb159886291866b2a82e60 Mon Sep 17 00:00:00 2001 From: azumiru Date: Thu, 10 Mar 2022 17:35:30 +0800 Subject: [PATCH] refund-ui-tab update refund component --- .../elements/RefundVerificationComponent.vue | 99 ++++++++++++++++++- .../views/pages/dashboards/admin.blade.php | 4 +- 2 files changed, 96 insertions(+), 7 deletions(-) diff --git a/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue b/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue index 11aa1ff5..b947f571 100644 --- a/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue +++ b/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue @@ -1,7 +1,93 @@ @@ -10,13 +96,16 @@ import componentHandler from '../../../general/mixins/componentHandler'; import staticFormHandler from '../../../general/mixins/staticFormHandler' export default { - props: { - no_action: Boolean + data() { + return { + status: '' + } }, methods: { - approvePayment(status){ + approveRefund(status){ this.isLoading = true; - this.submit(this.route('api.booking.payment', this.item.booking.id, this.item.id, status), 'put', 'identificationVerificationSection', true, true); + this.status = status; + this.submit(this.route('api.transaction.refund.status.update', this.data.id), 'put', 'listRefundTransactionSection', true, true); }, }, mixins: [componentHandler, staticFormHandler] diff --git a/resources/views/pages/dashboards/admin.blade.php b/resources/views/pages/dashboards/admin.blade.php index d3f92e42..256be0dd 100644 --- a/resources/views/pages/dashboards/admin.blade.php +++ b/resources/views/pages/dashboards/admin.blade.php @@ -83,9 +83,9 @@
- +