Skip to content

Commit 24abfdf

Browse files
AgAnglefit2-zhao
authored andcommitted
fix: disable required business field
1 parent 8879e12 commit 24abfdf

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

backend/crm/src/main/java/cn/cordys/common/constants/BusinessModuleField.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ public enum BusinessModuleField {
2121
/**
2222
* 客户名称
2323
*/
24-
CUSTOMER_NAME("customerName", "name", Set.of("rules.required", "mobile"), FormKey.CUSTOMER.getKey()),
24+
CUSTOMER_NAME("customerName", "name", Set.of("rules.required", "mobile", "readable"), FormKey.CUSTOMER.getKey()),
2525
/**
2626
* 负责人
2727
*/
28-
CUSTOMER_OWNER("customerOwner", "owner", Set.of("rules.required", "mobile"), FormKey.CUSTOMER.getKey()),
28+
CUSTOMER_OWNER("customerOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.CUSTOMER.getKey()),
2929
/*------ end: CUSTOMER ------*/
3030

3131
/*------ start: CLUE ------*/
3232
/**
3333
* 线索名称
3434
*/
35-
CLUE_NAME("clueName", "name", Set.of("rules.required", "mobile"), FormKey.CLUE.getKey()),
35+
CLUE_NAME("clueName", "name", Set.of("rules.required", "mobile", "readable"), FormKey.CLUE.getKey()),
3636
/**
3737
* 负责人
3838
*/
39-
CLUE_OWNER("clueOwner", "owner", Set.of("rules.required", "mobile"), FormKey.CLUE.getKey()),
39+
CLUE_OWNER("clueOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.CLUE.getKey()),
4040
/**
4141
* 联系人
4242
*/
@@ -59,11 +59,11 @@ public enum BusinessModuleField {
5959
/**
6060
* 联系人责任人
6161
*/
62-
CUSTOMER_CONTACT_OWNER("contactOwner", "owner", Set.of("rules.required", "mobile"), FormKey.CONTACT.getKey()),
62+
CUSTOMER_CONTACT_OWNER("contactOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.CONTACT.getKey()),
6363
/**
6464
* 联系人名称
6565
*/
66-
CUSTOMER_CONTACT_NAME("contactName", "name", Set.of("rules.required", "mobile"), FormKey.CONTACT.getKey()),
66+
CUSTOMER_CONTACT_NAME("contactName", "name", Set.of("rules.required", "mobile", "readable"), FormKey.CONTACT.getKey()),
6767
/**
6868
* 联系人电话
6969
*/
@@ -75,7 +75,7 @@ public enum BusinessModuleField {
7575
/**
7676
* 商机名称
7777
*/
78-
OPPORTUNITY_NAME("opportunityName", "name", Set.of("rules.required", "mobile"), FormKey.OPPORTUNITY.getKey()),
78+
OPPORTUNITY_NAME("opportunityName", "name", Set.of("rules.required", "mobile", "readable"), FormKey.OPPORTUNITY.getKey()),
7979
/**
8080
* 客户名称
8181
*/
@@ -104,7 +104,7 @@ public enum BusinessModuleField {
104104
/**
105105
* 负责人
106106
*/
107-
OPPORTUNITY_OWNER("opportunityOwner", "owner", Set.of("rules.required", "mobile"), FormKey.OPPORTUNITY.getKey()),
107+
OPPORTUNITY_OWNER("opportunityOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.OPPORTUNITY.getKey()),
108108
/*------ end: OPPORTUNITY ------*/
109109

110110

@@ -113,23 +113,23 @@ public enum BusinessModuleField {
113113
/**
114114
* 跟进类型
115115
*/
116-
FOLLOW_RECORD_TYPE("recordType", "type", Set.of("options", "rules.required", "mobile"), FormKey.FOLLOW_RECORD.getKey()),
116+
FOLLOW_RECORD_TYPE("recordType", "type", Set.of("options", "rules.required", "mobile", "readable"), FormKey.FOLLOW_RECORD.getKey()),
117117
/**
118118
* 客户id
119119
*/
120-
FOLLOW_RECORD_CUSTOMER("recordCustomer", "customerId", Set.of("rules.required", "mobile"), FormKey.FOLLOW_RECORD.getKey()),
120+
FOLLOW_RECORD_CUSTOMER("recordCustomer", "customerId", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_RECORD.getKey()),
121121
/**
122122
* 商机id
123123
*/
124124
FOLLOW_RECORD_OPPORTUNITY("recordOpportunity", "opportunityId", Set.of(), FormKey.FOLLOW_RECORD.getKey()),
125125
/**
126126
* 线索id
127127
*/
128-
FOLLOW_RECORD_CLUE("recordClue", "clueId", Set.of("rules.required", "mobile"), FormKey.FOLLOW_RECORD.getKey()),
128+
FOLLOW_RECORD_CLUE("recordClue", "clueId", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_RECORD.getKey()),
129129
/**
130130
* 责任人id
131131
*/
132-
FOLLOW_RECORD_OWNER("recordOwner", "owner", Set.of("rules.required", "mobile"), FormKey.FOLLOW_RECORD.getKey()),
132+
FOLLOW_RECORD_OWNER("recordOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_RECORD.getKey()),
133133
/**
134134
* 联系人id
135135
*/
@@ -153,23 +153,23 @@ public enum BusinessModuleField {
153153
/**
154154
* 跟进类型
155155
*/
156-
FOLLOW_PLAN_TYPE("planType", "type", Set.of("options", "rules.required", "mobile"), FormKey.FOLLOW_PLAN.getKey()),
156+
FOLLOW_PLAN_TYPE("planType", "type", Set.of("options", "rules.required", "mobile", "readable"), FormKey.FOLLOW_PLAN.getKey()),
157157
/**
158158
* 客户id
159159
*/
160-
FOLLOW_PLAN_CUSTOMER("planCustomer", "customerId", Set.of("rules.required", "mobile"), FormKey.FOLLOW_PLAN.getKey()),
160+
FOLLOW_PLAN_CUSTOMER("planCustomer", "customerId", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_PLAN.getKey()),
161161
/**
162162
* 商机id
163163
*/
164164
FOLLOW_PLAN_OPPORTUNITY("planOpportunity", "opportunityId", Set.of(), FormKey.FOLLOW_PLAN.getKey()),
165165
/**
166166
* 线索id
167167
*/
168-
FOLLOW_PLAN_CLUE("planClue", "clueId", Set.of("rules.required", "mobile"), FormKey.FOLLOW_PLAN.getKey()),
168+
FOLLOW_PLAN_CLUE("planClue", "clueId", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_PLAN.getKey()),
169169
/**
170170
* 责任人id
171171
*/
172-
FOLLOW_PLAN_OWNER("planOwner", "owner", Set.of("rules.required", "mobile"), FormKey.FOLLOW_PLAN.getKey()),
172+
FOLLOW_PLAN_OWNER("planOwner", "owner", Set.of("rules.required", "mobile", "readable"), FormKey.FOLLOW_PLAN.getKey()),
173173
/**
174174
* 联系人id
175175
*/
@@ -191,9 +191,9 @@ public enum BusinessModuleField {
191191
/*------ end: FOLLOW_UP_PLAN ------*/
192192

193193
/*------ start: PRODUCT ------*/
194-
PRODUCT_NAME("productName", "name", Set.of("rules.required", "mobile"), FormKey.PRODUCT.getKey()),
194+
PRODUCT_NAME("productName", "name", Set.of("rules.required", "mobile", "readable"), FormKey.PRODUCT.getKey()),
195195
PRODUCT_PRICE("productPrice", "price", Set.of(), FormKey.PRODUCT.getKey()),
196-
PRODUCT_STATUS("productStatus", "status", Set.of("rules.required", "mobile"), FormKey.PRODUCT.getKey());
196+
PRODUCT_STATUS("productStatus", "status", Set.of("rules.required", "mobile", "readable"), FormKey.PRODUCT.getKey());
197197
/*------ end: PRODUCT ------*/
198198
/**
199199
* 业务字段缓存

0 commit comments

Comments
 (0)