Skip to content

Commit e87d743

Browse files
committed
feat: add fields to the business header form
1 parent e99ad33 commit e87d743

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

frontend/packages/lib-shared/models/contract.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ export interface BusinessTitleItem {
148148
name: string;
149149
type: 'THIRD_PARTY' | 'CUSTOM';
150150
identificationNumber: string;
151+
area: string; // 所属地区
152+
scale: string; // 企业规模
153+
industry: string; // 国标行业
151154
openingBank: string;
152155
bankAccount: string;
153156
registrationAddress: string;
@@ -178,6 +181,9 @@ export interface SaveBusinessTitleParams {
178181
companySize: string; // 公司规模
179182
registrationNumber: string; //工商注册号
180183
type: string; // 来源类型
184+
area: string; // 所属地区
185+
scale: string; // 企业规模
186+
industry: string; // 国标行业
181187
}
182188

183189
export interface BusinessTitleValidateConfig {

frontend/packages/web/src/config/contract.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ export const businessTitleFormConfigList: {
149149
label: t('contract.businessTitle.registrationAccount'),
150150
value: 'registrationNumber',
151151
},
152+
{
153+
label: t('contract.businessTitle.area'),
154+
value: 'area',
155+
},
156+
{
157+
label: t('contract.businessTitle.scale'),
158+
value: 'scale',
159+
},
160+
{
161+
label: t('contract.businessTitle.industry'),
162+
value: 'industry',
163+
},
152164
];
153165

154166
export const allBusinessTitleFormConfigList: {

frontend/packages/web/src/views/contract/businessTitle/components/businessTitleTable.vue

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,36 @@
343343
},
344344
width: 200,
345345
},
346+
{
347+
title: t('contract.businessTitle.area'),
348+
key: 'area',
349+
sortOrder: false,
350+
sorter: true,
351+
ellipsis: {
352+
tooltip: true,
353+
},
354+
width: 200,
355+
},
356+
{
357+
title: t('contract.businessTitle.scale'),
358+
key: 'scale',
359+
sortOrder: false,
360+
sorter: true,
361+
ellipsis: {
362+
tooltip: true,
363+
},
364+
width: 200,
365+
},
366+
{
367+
title: t('contract.businessTitle.industry'),
368+
key: 'industry',
369+
sortOrder: false,
370+
sorter: true,
371+
ellipsis: {
372+
tooltip: true,
373+
},
374+
width: 200,
375+
},
346376
{
347377
title: t('common.createTime'),
348378
key: 'createTime',
@@ -508,6 +538,21 @@
508538
dataIndex: 'registrationNumber',
509539
type: FieldTypeEnum.INPUT,
510540
},
541+
{
542+
title: t('contract.businessTitle.area'),
543+
dataIndex: 'area',
544+
type: FieldTypeEnum.INPUT,
545+
},
546+
{
547+
title: t('contract.businessTitle.scale'),
548+
dataIndex: 'scale',
549+
type: FieldTypeEnum.INPUT,
550+
},
551+
{
552+
title: t('contract.businessTitle.industry'),
553+
dataIndex: 'industry',
554+
type: FieldTypeEnum.INPUT,
555+
},
511556
...baseFilterConfigList,
512557
]);
513558

frontend/packages/web/src/views/contract/businessTitle/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const initBusinessTitleForm: SaveBusinessTitleParams = {
1515
companySize: '',
1616
registrationNumber: '',
1717
registrationAddress: '',
18+
area: '',
19+
scale: '',
20+
industry: '',
1821
};
1922

2023
export const businessTitleFieldList: FormCreateField[] = [

frontend/packages/web/src/views/contract/locale/en-US.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export default {
4646
'contract.businessTitle.addMethodThird': 'Third-party',
4747
'contract.businessTitle.addMethodCustom': 'Custom',
4848
'contract.businessTitle.taxpayerNumber': 'Identification number',
49+
'contract.businessTitle.area': 'Area',
50+
'contract.businessTitle.scale': 'Scale',
51+
'contract.businessTitle.industry': 'Industry',
4952
'contract.businessTitle.address': 'Registration address',
5053
'contract.businessTitle.bank': 'Opening bank',
5154
'contract.businessTitle.bankAccount': 'Bank account',

frontend/packages/web/src/views/contract/locale/zh-CN.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export default {
4545
'contract.businessTitle.addMethodThird': '第三方',
4646
'contract.businessTitle.addMethodCustom': '自定义',
4747
'contract.businessTitle.taxpayerNumber': '纳税人识别号',
48+
'contract.businessTitle.area': '所属地区',
49+
'contract.businessTitle.scale': '企业规模',
50+
'contract.businessTitle.industry': '国标行业',
4851
'contract.businessTitle.address': '注册地址',
4952
'contract.businessTitle.bank': '开户银行',
5053
'contract.businessTitle.bankAccount': '银行账户',

0 commit comments

Comments
 (0)