fix purchase order input bug

This commit is contained in:
omair saleh
2021-12-19 19:50:39 +08:00
parent ba526fbf47
commit ee00a696c8
@@ -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)