update refund component

This commit is contained in:
edmondlang
2022-03-06 17:11:20 +08:00
parent ef9a046282
commit 06f5b49536
2 changed files with 1 additions and 7 deletions
@@ -33,7 +33,6 @@
</div>
</div>
</div>
<!-- {{data}} -->
<div class="row m-r-0 m-b-10">
<div class="col p-r-0">
<validation-wrapper-component :validator="$v.parameters.refundAmount">
@@ -74,12 +74,7 @@
},
methods: {
submitForm(){
if (this.defaultCharge == null) {
this.submit(this.route('api.segment_constant.create'), 'post', this.section, true, true);
}
else {
this.submit(this.route('api.segment_constant.update', this.service_charges.id), 'post', this.section, true, true);
}
this.submit(this.defaultCharge ? this.route('api.segment_constant.update', this.service_charges.id) : this.route('api.segment_constant.create'), 'post', this.section, true, true);
},
},
mixins: [ModalFormHandler]