diff --git a/src/utils/validate.js b/src/utils/validate.js index be894f9..f700ff7 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -67,9 +67,11 @@ const data = parseInt(value) if (data > max || data < min) { return false + } else { + return true } } else { - return true + return false } } /** diff --git a/src/utils/validate.js b/src/utils/validate.js index be894f9..f700ff7 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -67,9 +67,11 @@ const data = parseInt(value) if (data > max || data < min) { return false + } else { + return true } } else { - return true + return false } } /** diff --git a/src/views/account/businessInfo.vue b/src/views/account/businessInfo.vue new file mode 100644 index 0000000..dd19f51 --- /dev/null +++ b/src/views/account/businessInfo.vue @@ -0,0 +1,366 @@ + + + + + diff --git a/src/utils/validate.js b/src/utils/validate.js index be894f9..f700ff7 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -67,9 +67,11 @@ const data = parseInt(value) if (data > max || data < min) { return false + } else { + return true } } else { - return true + return false } } /** diff --git a/src/views/account/businessInfo.vue b/src/views/account/businessInfo.vue new file mode 100644 index 0000000..dd19f51 --- /dev/null +++ b/src/views/account/businessInfo.vue @@ -0,0 +1,366 @@ + + + + + diff --git a/src/views/account/information.vue b/src/views/account/information.vue index 4585c13..66e4128 100644 --- a/src/views/account/information.vue +++ b/src/views/account/information.vue @@ -28,6 +28,7 @@
业务信息
+ @@ -36,122 +37,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -196,50 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -275,11 +117,12 @@ import BaseInfo from '@/views/account/baseInfo' import CertInfo from '@/views/account/certInfo' import PersonInfo from '@/views/account/personInfo' +import BusinessInfo from '@/views/account/businessInfo' import OperationInfo from '@/views/account/operationInfo' import LicenceInfo from '@/views/account/licenceInfo' import ManSystemInfo from '@/views/account/manSystemInfo' export default { - components: { BaseInfo, CertInfo, PersonInfo, OperationInfo, LicenceInfo, ManSystemInfo }, + components: { BaseInfo, CertInfo, PersonInfo, BusinessInfo, OperationInfo, LicenceInfo, ManSystemInfo }, data() { return { checked: false, @@ -306,48 +149,7 @@ busDetailBrands: [], busDetailBanks: [], busDetailQualifyCertificates: [] - }, - - businessTypeOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - mainCategoryOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - businessNatureOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - officeNatureOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ] + } } }, methods: { @@ -357,14 +159,16 @@ // this.$refs.supplierPersonInfo.validateForm() // this.$refs.supplierOperationInfo.validateForm() // this.$refs.supplierLicenceInfo.validateForm() - this.$refs.supplierManSystemInfo.validateForm() + // this.$refs.supplierManSystemInfo.validateForm() + this.$refs.supplierBusinussInfo.validateForm() // console.log('baseInfo object', this.$refs.supplierBaseInfo.baseInfo) // console.log('certInfo object', this.$refs.supplierCertInfo.certInfo) // console.log('personInfo object', this.$refs.supplierPersonInfo.personInfo) // console.log('operInfo object', this.$refs.supplierOperationInfo.operationInfo) // console.log(this.$refs.supplierLicenceInfo.licenceInfo) - console.log(this.$refs.supplierManSystemInfo.manSystemInfo) - this.$message.success(this.$refs.supplierManSystemInfo.manSystemInfoValid + '') + // console.log(this.$refs.supplierManSystemInfo.manSystemInfo) + console.log(this.$refs.supplierBusinussInfo.businessInfo) + this.$message.success(this.$refs.supplierBusinussInfo.businessInfoValid + '') } } } diff --git a/src/utils/validate.js b/src/utils/validate.js index be894f9..f700ff7 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -67,9 +67,11 @@ const data = parseInt(value) if (data > max || data < min) { return false + } else { + return true } } else { - return true + return false } } /** diff --git a/src/views/account/businessInfo.vue b/src/views/account/businessInfo.vue new file mode 100644 index 0000000..dd19f51 --- /dev/null +++ b/src/views/account/businessInfo.vue @@ -0,0 +1,366 @@ + + + + + diff --git a/src/views/account/information.vue b/src/views/account/information.vue index 4585c13..66e4128 100644 --- a/src/views/account/information.vue +++ b/src/views/account/information.vue @@ -28,6 +28,7 @@
业务信息
+ @@ -36,122 +37,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -196,50 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -275,11 +117,12 @@ import BaseInfo from '@/views/account/baseInfo' import CertInfo from '@/views/account/certInfo' import PersonInfo from '@/views/account/personInfo' +import BusinessInfo from '@/views/account/businessInfo' import OperationInfo from '@/views/account/operationInfo' import LicenceInfo from '@/views/account/licenceInfo' import ManSystemInfo from '@/views/account/manSystemInfo' export default { - components: { BaseInfo, CertInfo, PersonInfo, OperationInfo, LicenceInfo, ManSystemInfo }, + components: { BaseInfo, CertInfo, PersonInfo, BusinessInfo, OperationInfo, LicenceInfo, ManSystemInfo }, data() { return { checked: false, @@ -306,48 +149,7 @@ busDetailBrands: [], busDetailBanks: [], busDetailQualifyCertificates: [] - }, - - businessTypeOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - mainCategoryOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - businessNatureOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ], - officeNatureOptions: [ - { - label: '选项一', - value: 1 - }, - { - label: '选项二', - value: 2 - } - ] + } } }, methods: { @@ -357,14 +159,16 @@ // this.$refs.supplierPersonInfo.validateForm() // this.$refs.supplierOperationInfo.validateForm() // this.$refs.supplierLicenceInfo.validateForm() - this.$refs.supplierManSystemInfo.validateForm() + // this.$refs.supplierManSystemInfo.validateForm() + this.$refs.supplierBusinussInfo.validateForm() // console.log('baseInfo object', this.$refs.supplierBaseInfo.baseInfo) // console.log('certInfo object', this.$refs.supplierCertInfo.certInfo) // console.log('personInfo object', this.$refs.supplierPersonInfo.personInfo) // console.log('operInfo object', this.$refs.supplierOperationInfo.operationInfo) // console.log(this.$refs.supplierLicenceInfo.licenceInfo) - console.log(this.$refs.supplierManSystemInfo.manSystemInfo) - this.$message.success(this.$refs.supplierManSystemInfo.manSystemInfoValid + '') + // console.log(this.$refs.supplierManSystemInfo.manSystemInfo) + console.log(this.$refs.supplierBusinussInfo.businessInfo) + this.$message.success(this.$refs.supplierBusinussInfo.businessInfoValid + '') } } } diff --git a/src/views/account/operationInfo.vue b/src/views/account/operationInfo.vue index 8d44ea3..47c4f80 100644 --- a/src/views/account/operationInfo.vue +++ b/src/views/account/operationInfo.vue @@ -2,7 +2,7 @@ - +