|
@@ -53,7 +53,7 @@ const header = props => {
|
53
|
53
|
label: '性别',
|
54
|
54
|
name: 'sex',
|
55
|
55
|
type: FieldTypes.Select,
|
56
|
|
- value: data.sex,
|
|
56
|
+ value: data.sex === undefined || data.sex === null ? "" : data.sex + "",
|
57
|
57
|
dict: [{
|
58
|
58
|
name: '男',
|
59
|
59
|
value: '1',
|
|
@@ -61,7 +61,7 @@ const header = props => {
|
61
|
61
|
{
|
62
|
62
|
name: '女',
|
63
|
63
|
value: '2',
|
64
|
|
- }],
|
|
64
|
+ },],
|
65
|
65
|
rules: [
|
66
|
66
|
{ required: false, message: '请选择性别' }
|
67
|
67
|
]
|
|
@@ -74,7 +74,7 @@ const header = props => {
|
74
|
74
|
rules: [
|
75
|
75
|
{ required: false, message: '请选择头像' },
|
76
|
76
|
],
|
77
|
|
- help: '建议尺寸:100px*100px,比例:1:1,格式:jpg,大小:不超过300KB,用于样例列表封面',
|
|
77
|
+ help: '建议尺寸:66*66px,比例:1:1,格式:jpg,大小:不超过300KB,用于客户查看',
|
78
|
78
|
},
|
79
|
79
|
{
|
80
|
80
|
label: '对外头衔',
|
|
@@ -84,7 +84,8 @@ const header = props => {
|
84
|
84
|
rules: [
|
85
|
85
|
{ required: false, message: '请输入对外头衔' },
|
86
|
86
|
{ max: 20, message: '对外头衔不能超过20个字符' }
|
87
|
|
- ]
|
|
87
|
+ ],
|
|
88
|
+ placeholder:"外部平台如业务平台的用户看到此联系人的头衔"
|
88
|
89
|
},
|
89
|
90
|
{
|
90
|
91
|
label: '固话',
|
|
@@ -102,8 +103,8 @@ const header = props => {
|
102
|
103
|
type: FieldTypes.Text,
|
103
|
104
|
value: data.phone,
|
104
|
105
|
rules: [
|
105
|
|
- { required: true, message: '请输入手机号' },
|
106
|
|
- // { max: 20, message: '' }
|
|
106
|
+ { required: true,message: '请输入手机号' },
|
|
107
|
+ { pattern: new RegExp('^1[0-9]{10}$'), message: '请输入正确的手机号' }
|
107
|
108
|
]
|
108
|
109
|
},
|
109
|
110
|
{
|
|
@@ -127,24 +128,25 @@ const header = props => {
|
127
|
128
|
]
|
128
|
129
|
},
|
129
|
130
|
{
|
130
|
|
- label: '联系地址*',
|
|
131
|
+ label: '联系地址',
|
131
|
132
|
name: 'address',
|
132
|
133
|
type: FieldTypes.Text,
|
133
|
134
|
value: data.address,
|
134
|
135
|
rules: [
|
135
|
136
|
{ required: false, message: '请输入联系地址' },
|
136
|
|
- { max: 40, message: '联系地址不能超过40个字符' }
|
|
137
|
+ { max: 50, message: '联系地址不能超过50个字符' }
|
137
|
138
|
]
|
138
|
139
|
},
|
139
|
140
|
{
|
140
|
|
- label: '内部岗位*',
|
|
141
|
+ label: '内部岗位',
|
141
|
142
|
name: 'job',
|
142
|
143
|
type: FieldTypes.Text,
|
143
|
144
|
value: data.job,
|
144
|
145
|
rules: [
|
145
|
146
|
{ required: false, message: '请输入内部岗位' },
|
146
|
|
- { max: 20, message: '内部岗位不能超过20个字符' }
|
147
|
|
- ]
|
|
147
|
+ { max: 10, message: '内部岗位不能超过10个字符' }
|
|
148
|
+ ],
|
|
149
|
+ placeholder:"联系人的公司内部岗位,便于区分联系人"
|
148
|
150
|
},
|
149
|
151
|
{
|
150
|
152
|
label: '权重',
|
|
@@ -152,12 +154,11 @@ const header = props => {
|
152
|
154
|
type: FieldTypes.Number,
|
153
|
155
|
value: data.orderNo,
|
154
|
156
|
|
155
|
|
- help: '用于列表排序,越大越靠前'
|
|
157
|
+ placeholder: '用于列表排序,越大越靠前'
|
156
|
158
|
},
|
157
|
159
|
]
|
158
|
160
|
|
159
|
161
|
const handleSubmit = (values) => {
|
160
|
|
- console.log | ("开始提交 联系人")
|
161
|
162
|
let submitValues = values;
|
162
|
163
|
props.form.validateFields((err, values) => {
|
163
|
164
|
console.log(values)
|
|
@@ -168,7 +169,6 @@ const header = props => {
|
168
|
169
|
pathname: '/contact/contact/list',
|
169
|
170
|
query: {
|
170
|
171
|
// salesBatchId: data.salesBatchId,
|
171
|
|
- // buildingId: data.buildingId,
|
172
|
172
|
},
|
173
|
173
|
});
|
174
|
174
|
}).catch((err) => {
|
|
@@ -192,6 +192,11 @@ const header = props => {
|
192
|
192
|
});
|
193
|
193
|
}
|
194
|
194
|
|
|
195
|
+ const beforeUpload = file =>{
|
|
196
|
+ console.log("开始上传")
|
|
197
|
+ console.log(file)
|
|
198
|
+ }
|
|
199
|
+
|
195
|
200
|
return (
|
196
|
201
|
<>
|
197
|
202
|
<div>
|