|
|
@ -62,6 +62,47 @@ export const getEditFormSchema: ( |
|
|
|
}, |
|
|
|
rules: [{ required: true, type: 'array' }], |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'contacts', |
|
|
|
component: 'Input', |
|
|
|
label: '联系人', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [{ required: true, type: 'string' }], |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'contactsMobile', |
|
|
|
component: 'Input', |
|
|
|
label: '手机号', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入正确格式的电话号码', |
|
|
|
pattern: |
|
|
|
/^(1(3[0-9]|4[01456879]|5[0-3,5-9]|6[2567]|7[0-8]|8[0-9]|9[0-3,5-9])\d{8})$|^0\d{2,3}-?\d{7,8}$/, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
field: 'contactsEmail', |
|
|
|
component: 'Input', |
|
|
|
label: '邮箱', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入正确格式的邮箱', |
|
|
|
pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
field: 'customer', |
|
|
@ -138,47 +179,6 @@ export const getEditFormSchema: ( |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
field: 'contacts', |
|
|
|
component: 'Input', |
|
|
|
label: '联系人', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [{ required: true, type: 'string' }], |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'contactsEmail', |
|
|
|
component: 'Input', |
|
|
|
label: '邮箱', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入正确格式的邮箱', |
|
|
|
pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'contactsMobile', |
|
|
|
component: 'Input', |
|
|
|
label: '手机号', |
|
|
|
colProps: { |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入正确格式的电话号码', |
|
|
|
pattern: |
|
|
|
/^(1(3[0-9]|4[01456879]|5[0-3,5-9]|6[2567]|7[0-8]|8[0-9]|9[0-3,5-9])\d{8})$|^0\d{2,3}-?\d{7,8}$/, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
field: 'agent', |
|
|
|
component: 'Input', |
|
|
@ -195,7 +195,6 @@ export const getEditFormSchema: ( |
|
|
|
colProps: { |
|
|
|
span: 6, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'zentaoNos', |
|
|
@ -244,7 +243,7 @@ export const getEditFormSchema: ( |
|
|
|
rows: 4, |
|
|
|
placeholder: '请输入问题描述', |
|
|
|
showCount: true, |
|
|
|
maxlength: 150, |
|
|
|
maxlength: 200, |
|
|
|
}, |
|
|
|
label: '问题描述', |
|
|
|
colProps: { |
|
|
|