diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index 21d0a4b0..a44dc1b7 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -156,6 +156,7 @@ minorCount: '', serviceAreaCode: [], linkEmail:'', + person:'', accountInfoDTO:{ dutyParagraph:'', accountNumber:'', @@ -264,6 +265,10 @@ this.$toast('营业执照未上传') return } + if(this.form.person != this.form.legalName){ + this.$toast('身份证法人姓名和营业执照法人不一致') + return + } if( !this.licensePhoto ) { this.$toast('开户许可证未上传') return @@ -398,6 +403,7 @@ imageUrl: this.idFrontPhoto, cardSide: 'FRONT' }) + // 身份证法人名称 this.form.legalName = res?.data?.name }, async companyPhotoHandler(file) { @@ -420,6 +426,8 @@ this.form.accountInfoDTO.dutyParagraph=res?.data?.regNum this.form.accountInfoDTO.unitName = res?.data?.name this.form.accountInfoDTO.companyType=res?.data?.type + // 营业执照法人名称 + this.form.person = res?.data?.person await this.QrCodeHandler(); }, async licensePhotoHandler(file){// 开户许可证