马宇豪
2023-01-30 ac21ee42ab9f6206aebb7f69bf393c612ae0ea00
src/views/login/register.vue
@@ -656,7 +656,8 @@
        async submit(){
            this.$refs["ruleForm"].validate((valid) =>{
                if(valid){
                    if(this.registerForm.type === '烟花爆竹生产' && this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.operationQualification.length !== 0 && this.escortCompany.length !== 0 && this.insurance.length !==0){
                    // console.log(this.registerForm.type,'type',this.businessLicense, this.idCard,this.legalPerson,this.operationQualification,this.escortCompany,this.insurance)
                    if(this.registerForm.type === '烟花爆竹生产'){
                        this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                            return item.raw
                        },this.businessLicense)
@@ -733,7 +734,7 @@
                        }).catch(error => {
                            parseError({error: error, vm: this})
                        })
                    }else if(this.registerForm.type === '烟花爆竹批发经营'&&  this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.operationQualification.length !== 0 && this.escortCompany.length !== 0 && this.insurance.length !== 0 && this.safetyProduction.length !== 0){
                    }else if(this.registerForm.type === '烟花爆竹批发经营'){
                        this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                            return item.raw
                        },this.businessLicense)
@@ -810,7 +811,7 @@
                        }).catch(error => {
                            parseError({error: error, vm: this})
                        })
                    }else if(this.registerForm.type === '烟花爆竹零售经营(长期)' && this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.insurance.length !== 0){
                    }else if(this.registerForm.type === '烟花爆竹零售经营(长期)'){
                        this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                            return item.raw
                        },this.businessLicense)
@@ -887,7 +888,7 @@
                        }).catch(error => {
                            parseError({error: error, vm: this})
                        })
                    }else if(this.registerForm.type==='烟花爆竹零售经营(短期)' && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.insurance.length !== 0){
                    }else if(this.registerForm.type==='烟花爆竹零售经营(短期)'){
                        this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                            return item.raw
                        },this.businessLicense)