企业管理:企业认证
今天我们来学习企业的创建和认证功能首先就是要准备的企业表企业认证表一般一张表字段数量 15左右外建: 物理关联。mysqlint: 逻辑关联。企业表id企业名称企业Code城市ID外建账号状态int正常, 待审核, 封禁创建时间日期时间认证时间日期时间认证类型int0:无认证1:企业认证 2:营业执照认证3:企业认证 营业执照认证风险等级int低风险, 中风险,高风险黑名单状态int封禁,未封禁投诉次数int公司网站字符串电子邮箱字符串审核类型int新企业认证,资质更新,信息变更提交时间日期时间资质材料表ID联系人姓名字符串联系电话字符串联系邮箱字符串营业执照图片url字符串法人身份证正面图片url字符串法人身份证反面 图片url字符串组织机构代码证字符串企业表int企业信息表from tortoise import fields, models class Enterprise(models.Model): id fields.IntField(pkTrue) name fields.CharField(max_length255, description企业名称) registration_number fields.CharField(max_length50, uniqueTrue, description注册号) legal_representative fields.CharField(max_length100, description法定代表人) registered_capital fields.DecimalField(max_digits20, decimal_places2, description注册资本) establishment_date fields.DateField(description成立日期) business_scope fields.TextField(description经营范围) address fields.CharField(max_length255, description注册地址) contact_phone fields.CharField(max_length20, description联系电话) email fields.CharField(max_length100, description邮箱) status fields.CharField(max_length50, description企业状态存续、注销等) industry fields.CharField(max_length100, description所属行业) created_at fields.DatetimeField(auto_now_addTrue) updated_at fields.DatetimeField(auto_nowTrue) class Meta: table enterprise table_description 企业信息表python boss-company-ui/src/pages/company/Certification.vue:592-602 点击确认提交, 调用后端接口:curl -X POST \ http://localhost:8000/enterprise/save \ -H accept: application/json \ -H Content-Type: multipart/form-data \ -F legal_representative2121 \ -F company_scale1 \ -F enterprise_namestring2121 \ -F contact_name1 \ -F registered_capital2121 \ -F register_status1 \ -F unified_social_credit_code21212 \ -F contact_phone1 \ -F legal_id_front_file4月12日-封面.jpg;typeimage/jpeg \ -F establish_date2026-09-09 \ -F business_scope1 \ -F financing_stage1 \ -F legal_id_back_file4月12日-封面.jpg;typeimage/jpeg \ -F business_license_file4月12日-封面.jpg;typeimage/jpeg \ -F org_code_cert1 \ -F headquarters_address1 \ -F industry_id1 \ -F contact_email1 enterprise_name:企业名称 unified_social_credit_code:统一社会信用代码 legal_representative: str 法人代表 registered_capital: str 注册资本 establish_date: date 成立日期 register_status: int登记状态 登记状态 CONTINUE 1 # 存续 IN_BUSINESS 2 # 在业 OPEN 3 # 开业 SUSPENDED 4 # 停业 LIQUIDATION 5 # 清算 REVOKED 6 # 吊销 CANCELLED 7 # 注销 industry_id: int 所属行业 company_scale: int 公司规模 公司规模 SCALE_0_20 1 # 0-20人 SCALE_20_99 2 # 20-99人 SCALE_100_499 3 # 100-499人 SCALE_500_999 4 # 500-999人 SCALE_1000_9999 5 # 1000-9999人 SCALE_10000_PLUS 6 # 10000人以上 financing_stage: int 融资阶段(可为空) 融资阶段允许为空 ANGEL 1 # 天使轮 A_ROUND 2 # A轮 B_ROUND 3 # B轮 C_ROUND 4 # C轮 D_PLUS 5 # D轮及以上 LISTED 6 # 已上市 NO_NEED_FUND 7 # 不需要融资 headquarters_address: str 总部地址 business_scope: str经营范围 contact_name: str 联系人姓名 contact_phone: str 联系电话 contact_email: str 联系邮箱 org_code_cert: str 组织机构代码证