diff --git a/src/views/standardsAssociation/MemberManagement.vue b/src/views/standardsAssociation/MemberManagement.vue index 71ed0ef..79b4656 100644 --- a/src/views/standardsAssociation/MemberManagement.vue +++ b/src/views/standardsAssociation/MemberManagement.vue @@ -255,11 +255,11 @@ export default { formData.realname = formData.companyName let encrypt = new JSEncrypt() encrypt.setPublicKey(that.encryptedString) - formData.standardPhone = encrypt.encrypt(values.standardPhone) + formData.standardPhone = values.standardPhone && encrypt.encrypt(values.standardPhone) || '' formData.standardMobile = encrypt.encrypt(values.standardMobile) formData.standardEmail = encrypt.encrypt(values.standardEmail) formData.mobile = encrypt.encrypt(values.mobile) - formData.phone = encrypt.encrypt(values.phone) + formData.phone = values.phone && encrypt.encrypt(values.phone) || '' formData.email = encrypt.encrypt(values.email) formData.rsapublickey = that.encryptedString console.log('表单提交数据', JSON.stringify(formData)) diff --git a/src/views/standardsAssociation/memberInfo/MemberInfo.vue b/src/views/standardsAssociation/memberInfo/MemberInfo.vue index 1f14871..7fc9f9b 100644 --- a/src/views/standardsAssociation/memberInfo/MemberInfo.vue +++ b/src/views/standardsAssociation/memberInfo/MemberInfo.vue @@ -36,6 +36,16 @@ + + + + + + + @@ -360,6 +370,7 @@ export default { sm: { span: 14 } }, validatorRules: { + legalRepresent: { rules: [{ required: true, message: '请输入法人代表' }], validateTrigger: 'blur' }, memberStatus: { rules: [{ required: true, message: '请选择会员状态' }] }, @@ -603,7 +614,7 @@ export default { initData(memberInfo) { this.model = { ...memberInfo } this.$nextTick(() => { - this.form.setFieldsValue(pick(this.model, 'invoiceInfo', 'taxNo', 'userName', 'registerTime', 'companyName', 'companyNature', 'companyDepartment', 'companyBusinessDesc', 'standardDepartment', 'standardLeadingMan', 'standardPhone', 'standardMobile', 'standardEmail', 'standardPost', 'standardSoleDutyCount', 'standardConcurrentCount', 'liaisonMan', 'email', 'phone', 'mobile', 'address', 'postcode', 'memberStatus', 'userId', 'validDate', 'memberType', 'createTime', 'businessLicenseFileId', 'recommendWordId', 'memberNature', 'industrialOrganization', 'applicationWordId', 'realname', 'invoiceAddress', 'invoicePhone', 'depositBank', 'bankAccount')) + this.form.setFieldsValue(pick(this.model, 'legalRepresent','invoiceInfo', 'taxNo', 'userName', 'registerTime', 'companyName', 'companyNature', 'companyDepartment', 'companyBusinessDesc', 'standardDepartment', 'standardLeadingMan', 'standardPhone', 'standardMobile', 'standardEmail', 'standardPost', 'standardSoleDutyCount', 'standardConcurrentCount', 'liaisonMan', 'email', 'phone', 'mobile', 'address', 'postcode', 'memberStatus', 'userId', 'validDate', 'memberType', 'createTime', 'businessLicenseFileId', 'recommendWordId', 'memberNature', 'industrialOrganization', 'applicationWordId', 'realname', 'invoiceAddress', 'invoicePhone', 'depositBank', 'bankAccount')) }) this.getApplyPdfFilesByIds() },