removed bookingform account number validation, since it no longer accept only integer but also string

This commit is contained in:
Jack Goh
2018-07-31 15:10:50 +08:00
parent bcf36be79b
commit b868cffb33
+1 -9
View File
@@ -545,14 +545,6 @@ export default {
},
// Get calculation before submitting booking
getCalculationValue (formName) {
if ((this.bookingForm.account_num < 0) || isNaN(this.bookingForm.account_num)) {
this.$message({
message: 'Issue with Last input: Account number must be a valid China bank account number',
type: 'warning'
})
return
}
this.loading = true
this.$refs[formName].validate((valid) => {
if (valid) {
@@ -585,7 +577,7 @@ export default {
this.loading = false
this.$message({
showClose: true,
message: 'Please fill the booking form in full.',
message: 'Please fill the booking form.',
type: 'error',
duration: 10000
})