zhangwei
2025-08-18 35cf8d289a09a6a4a34cf3d73fb41d84969ae4ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import type { FormRules } from "element-plus";
 
interface EnterpriseInfo {
  /** 主键Id */
  id?: number | null;
  /** 企业类型(不可空) */
  enterpriseType: string;
  /** 主体角色代码(不可空,原字段TransactionCode) */
  exRoleCode: string;
  /** 交易主体代码(同角色代码,不可空) */
  transactionCode: string;
  /** 营业执照文件路径(不可空) */
  businessLicense: string;
  /** 企业名称(不可空) */
  enterpriseName: string;
  /** 统一社会信用代码(不可空) */
  unifiedSocialCreditCode: string;
  /** 注册资金(不可空) */
  registeredCapital: string;
  /** 法定代表人姓名(不可空) */
  legalRepresentativeName: string;
  /** 法定代表人身份证文件路径(不可空) */
  legalRepresentativeIdCard: string;
  /** 法定代表人身份证号码(不可空) */
  legalRepresentativeIdNumber: string;
  /** 法定代表人电话(不可空) */
  legalRepresentativePhone: string;
  /** 企业住所(不可空) */
  residence: string;
  /** 企业联系电话(不可空) */
  enterprisePhone: string;
  /** 企业成立时间(不可空,格式:yyyy-MM-dd HH:mm:ss) */
  establishmentTime: string;
  /** 企业主营业务(可为空) */
  mainBusiness?: string | null;
  /** 企业邮箱(不可空) */
  enterpriseEmail: string;
  /** 业务经办人姓名、管理员姓名(不可空) */
  operatorName: string;
  /** 业务经办人身份证文件路径或标识(不可空) */
  operatorIdCard: string;
  /** 业务经办人身份证号码(不可空) */
  operatorIdNumber: string;
  /** 业务经办人电话/管理员电话(可为空) */
  operatorPhone?: string | null;
  /** 开户行名称(不可空) */
  bankName: string;
  /** 开户行账号(不可空) */
  bankAccount: string;
  /** 电话号码校验码(不可空) */
  phoneVCode: string;
  bankAccountIMG: string;
}
interface RoleInfo {
  /** 角色编码 */
  code: string;
  /** 数据范围 */
  dataScope: number;
  /** 角色ID */
  id: number;
  /** 角色名称 */
  name: string;
  /** 排序号 */
  orderNo: number;
  /** 备注信息(可为空) */
  remark: string | null;
  /** 状态(1表示启用等,根据业务定义) */
  status: number;
}
// 行业分类子项类型
interface IndustryCategoryChild {
  child: IndustryCategoryChild[] | null;
  /** 子分类ID */
  id: number;
  /** 子分类名称 */
  name: string;
  /** 子分类编码 */
  code: string;
  /** 父分类ID */
  parentId: number;
  // 如需其他子项可能存在的字段,可在此补充
}
 
// 行业分类主项类型
interface IndustryCategory {
  /** 子分类列表 */
  child: IndustryCategoryChild[];
  /** 主分类编码 */
  code: string;
  /** 主分类ID */
  id: number;
  /** 主分类名称 */
  name: string;
  /** 父分类ID(0表示顶级分类) */
  parentId: number;
}
 
interface stateInfo {
  ruleForm: EnterpriseInfo;
  phoneSeconds: number;
  expirySeconds: number;
  captchaImage: string;
  headers: {
    Authorization: string;
  };
  roleList: Array<RoleInfo>;
  capsLockVisible: boolean;
  code: string | null;
  codeId: string | null;
  checkedAgree: boolean;
  rules: FormRules;
  enterpriseList: Array<IndustryCategory>;
}
 
export type { stateInfo };