forked from yoone/WEB
Compare commits
2 Commits
67aa625785
...
0abe06d9df
| Author | SHA1 | Date |
|---|---|---|
|
|
0abe06d9df | |
|
|
860b7970c8 |
|
|
@ -393,6 +393,13 @@ const UpdateForm: React.FC<{
|
|||
}));
|
||||
}}
|
||||
/>
|
||||
<ProFormText
|
||||
name={['email']}
|
||||
label="邮箱"
|
||||
placeholder="请输入邮箱"
|
||||
required
|
||||
rules={[{ required: true, message: '请输入邮箱' }]}
|
||||
/>
|
||||
<ProForm.Group title="地址">
|
||||
<ProFormText
|
||||
name={['address', 'country']}
|
||||
|
|
@ -431,6 +438,8 @@ const UpdateForm: React.FC<{
|
|||
required
|
||||
rules={[{ required: true, message: '请输入详细地址' }]}
|
||||
/>
|
||||
|
||||
|
||||
</ProForm.Group>
|
||||
<ProFormItem
|
||||
name="contact"
|
||||
|
|
|
|||
|
|
@ -1599,13 +1599,14 @@ const [shipmentPlatforms, setShipmentPlatforms] = useState([
|
|||
phone_number,
|
||||
phone_number_extension,
|
||||
stockPointId,
|
||||
email,
|
||||
} = row;
|
||||
formRef?.current?.setFieldsValue({
|
||||
stockPointId,
|
||||
// address_id: row.id,
|
||||
details: {
|
||||
origin: {
|
||||
|
||||
email_addresses:email,
|
||||
address,
|
||||
phone_number: {
|
||||
phone: phone_number,
|
||||
|
|
@ -2490,6 +2491,11 @@ const AddressPicker: React.FC<{
|
|||
`+${record.phone_number_extension} ${record.phone_number}`,
|
||||
hideInSearch: true,
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
dataIndex: [ 'email'],
|
||||
hideInSearch: true,
|
||||
},
|
||||
];
|
||||
return (
|
||||
<ModalForm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useEffect, useState, useMemo } from 'react';
|
||||
import { PageContainer, ProFromSelect } from '@ant-design/pro-components';
|
||||
import { PageContainer, ProFormSelect } from '@ant-design/pro-components';
|
||||
import { Card, Collapse, Divider, Image, Select, Space, Typography, message } from 'antd';
|
||||
import { categorycontrollerGetall } from '@/servers/api/category';
|
||||
import { productcontrollerGetproductlistgrouped } from '@/servers/api/product';
|
||||
|
|
@ -272,7 +272,7 @@ const ProductGroupBy: React.FC = () => {
|
|||
{categoryAttributes.map(attr => (
|
||||
<div key={attr.id} style={{ display: 'flex', alignItems: 'center' }}>
|
||||
<Text style={{ width: '100px' }}>{attr.title}:</Text>
|
||||
<ProFromSelect
|
||||
<ProFormSelect
|
||||
placeholder={`请选择${attr.title}`}
|
||||
style={{ width: 300 }}
|
||||
value={attributeFilters[attr.name] || null}
|
||||
|
|
|
|||
Loading…
Reference in New Issue