|
@@ -45,7 +45,7 @@ const AddClient = props => {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
const [lastName, ...firstName] = changedValues.clientName.split('')
|
|
const [lastName, ...firstName] = changedValues.clientName.split('')
|
|
|
- const newClientName = `${lastName}(${firstName.join('')})工`
|
|
|
|
|
|
|
+ const newClientName = `${lastName}(${firstName.join('')})工:`
|
|
|
formRef.current?.setFieldsValue({ niceName: newClientName })
|
|
formRef.current?.setFieldsValue({ niceName: newClientName })
|
|
|
}
|
|
}
|
|
|
if ('qq' in changedValues) {
|
|
if ('qq' in changedValues) {
|
|
@@ -101,8 +101,7 @@ const AddClient = props => {
|
|
|
}
|
|
}
|
|
|
formRef.current && formRef.current.setFieldsValue(values)
|
|
formRef.current && formRef.current.setFieldsValue(values)
|
|
|
submit()
|
|
submit()
|
|
|
- }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }}>
|
|
|
添加并关联
|
|
添加并关联
|
|
|
</Button>
|
|
</Button>
|
|
|
) : null
|
|
) : null
|
|
@@ -114,8 +113,7 @@ const AddClient = props => {
|
|
|
setValidStatusFtl('')
|
|
setValidStatusFtl('')
|
|
|
!isNullOrUnDef(reload) && reload()
|
|
!isNullOrUnDef(reload) && reload()
|
|
|
return true
|
|
return true
|
|
|
- }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }}>
|
|
|
{showDataItem ? <ProFormText name={`${dataType}Id`} hidden /> : null}
|
|
{showDataItem ? <ProFormText name={`${dataType}Id`} hidden /> : null}
|
|
|
<ProFormText
|
|
<ProFormText
|
|
|
name="clientName"
|
|
name="clientName"
|
|
@@ -126,8 +124,7 @@ const AddClient = props => {
|
|
|
<Form.Item
|
|
<Form.Item
|
|
|
label="客户地区"
|
|
label="客户地区"
|
|
|
name="districtIds"
|
|
name="districtIds"
|
|
|
- rules={[{ required: true, message: '请选择地区' }]}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ rules={[{ required: true, message: '请选择地区' }]}>
|
|
|
<LazyCascader showFooter={true} />
|
|
<LazyCascader showFooter={true} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
<Row>
|
|
<Row>
|
|
@@ -149,8 +146,7 @@ const AddClient = props => {
|
|
|
name="telephone"
|
|
name="telephone"
|
|
|
validateStatus={validStatusFtl}
|
|
validateStatus={validStatusFtl}
|
|
|
hasFeedback
|
|
hasFeedback
|
|
|
- rules={[{ required: true, message: '请输入手机号码' }]}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ rules={[{ required: true, message: '请输入手机号码' }]}>
|
|
|
<TelephoneFormItem validateFn={status => setValidStatusFtl(status)} />
|
|
<TelephoneFormItem validateFn={status => setValidStatusFtl(status)} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
<ProFormText
|
|
<ProFormText
|