made changes

This commit is contained in:
hastichavda
2019-11-15 16:43:34 +05:30
parent 5515287120
commit 17abcdb67b
8 changed files with 181698 additions and 20 deletions

View File

@ -374,7 +374,7 @@ import MultiSelect from 'vue-multiselect'
import { validationMixin } from 'vuelidate'
import { mapActions, mapGetters } from 'vuex'
import AddressStub from '../../../stub/address'
const { required, minLength, email, numeric, alpha, url, maxLength } = require('vuelidate/lib/validators')
const { required, minLength, email, numeric, url, maxLength } = require('vuelidate/lib/validators')
export default {
components: {
@ -421,8 +421,7 @@ export default {
formData: {
name: {
required,
minLength: minLength(3),
alpha
minLength: minLength(3)
},
email: {
email

View File

@ -772,7 +772,7 @@ export default {
payment_greater_than_zero: 'Payment must be greater than zero.',
payment_greater_than_due_amount: 'Entered Payment is more than due amount of this invoice.',
quantity_maxlength: 'Quantity should not be greater than 10 digits.',
price_maxlength: 'Price should not be greater than 10 digits.',
price_maxlength: 'Price should not be greater than 20 digits.',
price_minvalue: 'Price should be greater than 0.',
amount_maxlength: 'Amount should not be greater than 10 digits.',
amount_minvalue: 'Amount should be greater than 0.',

View File

@ -38,6 +38,7 @@
v-model="price"
v-bind="defaultCurrencyForInput"
class="input-field"
/>
</div>
<div v-if="$v.formData.price.$error">
@ -92,7 +93,7 @@
<script>
import { validationMixin } from 'vuelidate'
import { mapActions, mapGetters } from 'vuex'
const { required, minLength, numeric, alpha, minValue, maxLength } = require('vuelidate/lib/validators')
const { required, minLength, numeric, minValue, maxLength } = require('vuelidate/lib/validators')
export default {
mixins: {
@ -163,7 +164,7 @@ export default {
price: {
required,
numeric,
maxLength: maxLength(10),
maxLength: maxLength(20),
minValue: minValue(0.1)
},
description: {