forked from yoone/WEB
feat(地址表单): 添加邮箱字段到地址表单和订单列表
在地址更新表单中新增邮箱字段,并在订单列表页面显示该字段
This commit is contained in:
parent
860b7970c8
commit
0abe06d9df
|
|
@ -393,6 +393,13 @@ const UpdateForm: React.FC<{
|
||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<ProFormText
|
||||||
|
name={['email']}
|
||||||
|
label="邮箱"
|
||||||
|
placeholder="请输入邮箱"
|
||||||
|
required
|
||||||
|
rules={[{ required: true, message: '请输入邮箱' }]}
|
||||||
|
/>
|
||||||
<ProForm.Group title="地址">
|
<ProForm.Group title="地址">
|
||||||
<ProFormText
|
<ProFormText
|
||||||
name={['address', 'country']}
|
name={['address', 'country']}
|
||||||
|
|
@ -431,6 +438,8 @@ const UpdateForm: React.FC<{
|
||||||
required
|
required
|
||||||
rules={[{ required: true, message: '请输入详细地址' }]}
|
rules={[{ required: true, message: '请输入详细地址' }]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
</ProForm.Group>
|
</ProForm.Group>
|
||||||
<ProFormItem
|
<ProFormItem
|
||||||
name="contact"
|
name="contact"
|
||||||
|
|
|
||||||
|
|
@ -1599,13 +1599,14 @@ const [shipmentPlatforms, setShipmentPlatforms] = useState([
|
||||||
phone_number,
|
phone_number,
|
||||||
phone_number_extension,
|
phone_number_extension,
|
||||||
stockPointId,
|
stockPointId,
|
||||||
|
email,
|
||||||
} = row;
|
} = row;
|
||||||
formRef?.current?.setFieldsValue({
|
formRef?.current?.setFieldsValue({
|
||||||
stockPointId,
|
stockPointId,
|
||||||
// address_id: row.id,
|
// address_id: row.id,
|
||||||
details: {
|
details: {
|
||||||
origin: {
|
origin: {
|
||||||
|
email_addresses:email,
|
||||||
address,
|
address,
|
||||||
phone_number: {
|
phone_number: {
|
||||||
phone: phone_number,
|
phone: phone_number,
|
||||||
|
|
@ -2490,6 +2491,11 @@ const AddressPicker: React.FC<{
|
||||||
`+${record.phone_number_extension} ${record.phone_number}`,
|
`+${record.phone_number_extension} ${record.phone_number}`,
|
||||||
hideInSearch: true,
|
hideInSearch: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '邮箱',
|
||||||
|
dataIndex: [ 'email'],
|
||||||
|
hideInSearch: true,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<ModalForm
|
<ModalForm
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue