small fix

This commit is contained in:
yogesh_gohil
2019-11-20 13:26:06 +05:30
parent 665fc76856
commit 41a543ea9c
8 changed files with 23 additions and 63 deletions

View File

@ -84,16 +84,11 @@
<div class="form-group">
<label class="form-label">{{ $t('customers.phone') }}</label>
<base-input
:invalid="$v.formData.phone.$error"
v-model.trim="formData.phone"
type="text"
name="phone"
tab-index="4"
@input="$v.formData.phone.$touch()"
/>
<div v-if="$v.formData.phone.$error">
<span v-if="!$v.formData.phone.numeric" class="text-danger">{{ $tc('validation.numbers_only') }}</span>
</div>
</div>
<div class="form-group">
<label class="form-label">{{ $t('customers.website') }}</label>
@ -196,16 +191,11 @@
<div class="form-group">
<label class="form-label">{{ $t('customers.phone') }}</label>
<base-input
:invalid="$v.billing.phone.$error"
v-model.trim="billing.phone"
type="text"
name="phone"
tab-index="13"
@input="$v.billing.phone.$touch()"
/>
<div v-if="$v.billing.phone.$error">
<span v-if="!$v.billing.phone.numberic" class="text-danger">{{ $tc('validation.numbers_only') }}</span>
</div>
</div>
<div class="form-group">
<label class="form-label">{{ $t('customers.zip_code') }}</label>
@ -315,16 +305,11 @@
<div class="form-group">
<label class="form-label">{{ $t('customers.phone') }}</label>
<base-input
:invalid="$v.shipping.phone.$error"
v-model.trim="shipping.phone"
type="text"
name="phone"
tab-index="21"
@input="$v.shipping.phone.$touch()"
/>
<div v-if="$v.shipping.phone.$error">
<span v-if="!$v.shipping.phone.numberic" class="text-danger">{{ $tc('validation.numbers_only') }}</span>
</div>
</div>
<div class="form-group">
<label class="form-label">{{ $t('customers.zip_code') }}</label>
@ -432,17 +417,11 @@ export default {
email: {
email
},
phone: {
numeric
},
website: {
url
}
},
billing: {
phone: {
numeric
},
address_street_1: {
maxLength: maxLength(255)
},
@ -451,9 +430,6 @@ export default {
}
},
shipping: {
phone: {
numeric
},
address_street_1: {
maxLength: maxLength(255)
},