mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
80 lines
3.0 KiB
Vue
80 lines
3.0 KiB
Vue
<template>
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row m-b-10">
|
|
<div class="col">
|
|
<h5 class="all-caps m-b-5 bold no-margin">Edit Transaction Group Fee</h5>
|
|
</div>
|
|
</div>
|
|
<div class="row m-b-5 animate__animated animate__fadeInUpBig animate__fast" v-if="error">
|
|
<div class="col">
|
|
<small class="bold fs-10 text-danger">{{error}}</small>
|
|
</div>
|
|
</div>
|
|
<div class="row m-b-10">
|
|
<div class="col p-r-0">
|
|
<validation-wrapper-component :validator="$v.parameters.fee">
|
|
<label class="all-caps">Transfer Fee</label>
|
|
<input type="text" class="form-control" v-model.lazy="parameters.fee" v-money="{decimal: '.',thousands: ',', precision: 2}">
|
|
</validation-wrapper-component>
|
|
</div>
|
|
<div class="col-auto b-r b-t b-b b-grey">
|
|
<div class="row h-100 align-items-center">
|
|
<div class="col">
|
|
<div class="font-heading fs-10 muted">CNY</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col p-r-5">
|
|
<div class="btn btn-sm btn-default bg-master-lightest btn-block b-rad-none" data-dismiss="modal">Cancel</div>
|
|
</div>
|
|
<div class="col p-l-5">
|
|
<div class="btn btn-sm btn-success btn-block b-rad-none" @click="submitForm()">Update</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { required } from "vuelidate/lib/validators";
|
|
import ModalFormHandler from '../../../general/mixins/modalFormHandler';
|
|
|
|
export default {
|
|
props: {
|
|
transfer_fee:{
|
|
type: Number,
|
|
required: true
|
|
},
|
|
id: {
|
|
type: Number,
|
|
required: true
|
|
}
|
|
},
|
|
data(){
|
|
return {
|
|
error: '',
|
|
parameters: {
|
|
fee: (Math.round((this.transfer_fee + Number.EPSILON) * 10000) / 10000).toFixed(5)
|
|
},
|
|
}
|
|
},
|
|
validations: {
|
|
parameters: {
|
|
fee: { },
|
|
},
|
|
},
|
|
methods: {
|
|
submitForm() {
|
|
this.submit(route('api.transaction.group.fee.update', this.id), 'put', this.section, true, true);
|
|
}
|
|
},
|
|
mixins: [ModalFormHandler]
|
|
}
|
|
</script>
|