From ee00a696c8a97cc6aa31dbcf46c16500626e9472 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 19 Dec 2021 19:50:39 +0800 Subject: [PATCH] fix purchase order input bug --- .../bookings/forms/EditBookingAmountFormComponent.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue b/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue index e3d546a6..0fa5e1ee 100644 --- a/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue @@ -41,7 +41,10 @@ export default { data(){ return { - error: '' + error: '', + parameters: { + fix_amount: this.data.amount + } } }, validations: { @@ -49,6 +52,11 @@ fix_amount: { required } }, }, + watch: { + 'data': function() { + this.parameters.fix_amount = this.data.amount; + } + }, methods: { submitForm(){ this.submit(this.route('api.booking.booking_amount.update', this.data.id), 'put', this.section, true, true)