show swift code input in account when booking usd

This commit is contained in:
Omair Saleh
2022-09-28 11:52:05 +08:00
parent 5b88992ee5
commit 090636af7f
2 changed files with 9 additions and 4 deletions
@@ -56,14 +56,14 @@
</validation-wrapper-component>
</div>
</div>
<div class="row m-b-10 hide">
<div class="row m-b-10" v-if="currency === 'USD'">
<div class="col p-r-5">
<validation-wrapper-component :validator="$v.parameters.swift">
<label>Swift</label>
<input type="text" class="form-control" v-model="parameters.swift" :disabled="disabled">
</validation-wrapper-component>
</div>
<div class="col p-l-5">
<div class="col p-l-5 hide">
<validation-wrapper-component :validator="$v.parameters.snap">
<label>Snap</label>
<input type="text" class="form-control" v-model="parameters.snap" :disabled="disabled">
@@ -122,6 +122,11 @@
type: Object,
required: false,
default: null
},
currency: {
type: String,
required: false,
default: 'RMB'
}
},
data(){
@@ -181,4 +186,4 @@
mixins: [FormHandler]
}
</script>
</script>
@@ -148,7 +148,7 @@
</div>
<div class="row" v-show="createBank">
<div class="col">
<bank-account-form-component v-if="data.serviceType.id !== 4" section="customerProfileSection" :disabled="formDisabled" :data="Object.keys(parameters.bankAccount).length ? parameters.bankAccount : {account_no: account_no, company_id: data.company.id, country_id: 2, account_type: 2}" :company_id="data.company.id" :country_id="2" :type="2" v-on:createdBank="updateBank($event)" :serviceType="data.serviceType" :closable=false v-on:close="clearAccount()"></bank-account-form-component>
<bank-account-form-component v-if="data.serviceType.id !== 4" section="customerProfileSection" :disabled="formDisabled" :data="Object.keys(parameters.bankAccount).length ? parameters.bankAccount : {account_no: account_no, company_id: data.company.id, country_id: 2, account_type: 2}" :company_id="data.company.id" :country_id="2" :type="2" :currency="data.serviceType.selectedCurrency.short_code" v-on:createdBank="updateBank($event)" :serviceType="data.serviceType" :closable=false v-on:close="clearAccount()"></bank-account-form-component>
<phone-account-form-component v-if="data.serviceType.id === 4" section="customerProfileSection" :disabled="formDisabled" :data="Object.keys(parameters.bankAccount).length ? parameters.bankAccount : {account_no: account_no, company_id: data.company.id, country_id: 2, account_type: 2}" :company_id="data.company.id" :country_id="2" :type="2" v-on:createdBank="updateBank($event)" :serviceType="data.serviceType" :closable=false v-on:close="clearAccount()"></phone-account-form-component>
</div>
</div>