|
@@ -1,18 +1,17 @@
|
|
|
-import consts from '@/consts'
|
|
|
|
|
-import { apiContactDetail } from '@/services/contact'
|
|
|
|
|
import { Form, Row, Col, Input, Button, Cascader, Select, Tag } from 'antd'
|
|
import { Form, Row, Col, Input, Button, Cascader, Select, Tag } from 'antd'
|
|
|
import React, { useEffect } from 'react'
|
|
import React, { useEffect } from 'react'
|
|
|
// eslint-disable-next-line import/no-unresolved
|
|
// eslint-disable-next-line import/no-unresolved
|
|
|
// import '../Contacts/index.scss'
|
|
// import '../Contacts/index.scss'
|
|
|
|
|
|
|
|
const ContanctForm = props => {
|
|
const ContanctForm = props => {
|
|
|
- const { client } = props
|
|
|
|
|
const [form] = Form.useForm()
|
|
const [form] = Form.useForm()
|
|
|
|
|
+ const { client } = props
|
|
|
// 浏览器实际宽度
|
|
// 浏览器实际宽度
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
|
|
+ console.log(client)
|
|
|
form.setFieldsValue(client)
|
|
form.setFieldsValue(client)
|
|
|
- }, [])
|
|
|
|
|
|
|
+ }, [client])
|
|
|
const residences = [
|
|
const residences = [
|
|
|
{
|
|
{
|
|
|
value: '广东省',
|
|
value: '广东省',
|
|
@@ -62,9 +61,12 @@ const ContanctForm = props => {
|
|
|
<Form.Item label="姓名" name="staffName" rules={[{ required: false, message: '姓名' }]}>
|
|
<Form.Item label="姓名" name="staffName" rules={[{ required: false, message: '姓名' }]}>
|
|
|
<Input value="刘泽富" />
|
|
<Input value="刘泽富" />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item label="联系人地区" name="district" rules={[{ required: false, message: '地区' }]}>
|
|
|
|
|
|
|
+ {/* <Form.Item
|
|
|
|
|
+ label="联系人地区"
|
|
|
|
|
+ name="district"
|
|
|
|
|
+ rules={[{ required: false, message: '地区' }]}>
|
|
|
<Cascader options={residences} />
|
|
<Cascader options={residences} />
|
|
|
- </Form.Item>
|
|
|
|
|
|
|
+ </Form.Item> */}
|
|
|
<Form.Item
|
|
<Form.Item
|
|
|
label="客户名称"
|
|
label="客户名称"
|
|
|
name="companyname"
|
|
name="companyname"
|
|
@@ -82,71 +84,86 @@ const ContanctForm = props => {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="昵称" name="nicename" rules={[{ required: false, message: '昵称' }]}>
|
|
<Form.Item label="昵称" name="nicename" rules={[{ required: false, message: '昵称' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
<Row gutter={16}>
|
|
<Row gutter={16}>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="手机" name="telephone" rules={[{ required: false, message: '手机' }]}>
|
|
<Form.Item label="手机" name="telephone" rules={[{ required: false, message: '手机' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="QQ" name="qq" rules={[{ required: false, message: 'QQ' }]}>
|
|
<Form.Item label="QQ" name="qq" rules={[{ required: false, message: 'QQ' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
<Row gutter={16}>
|
|
<Row gutter={16}>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="电话" name="phone" rules={[{ required: false, message: '电话' }]}>
|
|
<Form.Item label="电话" name="phone" rules={[{ required: false, message: '电话' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="邮箱" name="email" rules={[{ required: false, message: '邮箱' }]}>
|
|
<Form.Item label="邮箱" name="email" rules={[{ required: false, message: '邮箱' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
<Row gutter={16}>
|
|
<Row gutter={16}>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="传真" name="fax" rules={[{ required: false, message: '传真' }]}>
|
|
<Form.Item label="传真" name="fax" rules={[{ required: false, message: '传真' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12} />
|
|
<Col span={12} />
|
|
|
</Row>
|
|
</Row>
|
|
|
<Row gutter={16}>
|
|
<Row gutter={16}>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
- <Form.Item label="部门" name="department" rules={[{ required: false, message: '部门' }]}>
|
|
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label="部门"
|
|
|
|
|
+ name="department"
|
|
|
|
|
+ rules={[{ required: false, message: '部门' }]}>
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<Form.Item label="职务" name="position" rules={[{ required: false, message: '职务' }]}>
|
|
<Form.Item label="职务" name="position" rules={[{ required: false, message: '职务' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
<Form.Item label="办公室" name="office" rules={[{ required: false, message: '办公室' }]}>
|
|
<Form.Item label="办公室" name="office" rules={[{ required: false, message: '办公室' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item label="联系人地址" name="address" rules={[{ required: false, message: '联系人地址' }]}>
|
|
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label="联系人地址"
|
|
|
|
|
+ name="address"
|
|
|
|
|
+ rules={[{ required: false, message: '联系人地址' }]}>
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item label="联系人乘车" name="ride" rules={[{ required: false, message: '联系人乘车' }]}>
|
|
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label="联系人乘车"
|
|
|
|
|
+ name="ride"
|
|
|
|
|
+ rules={[{ required: false, message: '联系人乘车' }]}>
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item label="联系人地标" name="landmarks" rules={[{ required: false, message: '联系人地标' }]}>
|
|
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label="联系人地标"
|
|
|
|
|
+ name="landmarks"
|
|
|
|
|
+ rules={[{ required: false, message: '联系人地标' }]}>
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item label="联系人住宿" name="stay" rules={[{ required: false, message: '联系人住宿' }]}>
|
|
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label="联系人住宿"
|
|
|
|
|
+ name="stay"
|
|
|
|
|
+ rules={[{ required: false, message: '联系人住宿' }]}>
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
<Form.Item label="备注" name="tag" rules={[{ required: false, message: '备注' }]}>
|
|
<Form.Item label="备注" name="tag" rules={[{ required: false, message: '备注' }]}>
|
|
|
- <Input value="" />
|
|
|
|
|
|
|
+ <Input />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
<Form.Item label="个人标签">
|
|
<Form.Item label="个人标签">
|
|
|
<span className="ant-form-text">
|
|
<span className="ant-form-text">
|
|
@@ -161,7 +178,7 @@ const ContanctForm = props => {
|
|
|
</span>
|
|
</span>
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</Form>
|
|
</Form>
|
|
|
- <Button
|
|
|
|
|
|
|
+ {/* <Button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
className="ant-btn ant-btn-primary"
|
|
className="ant-btn ant-btn-primary"
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -175,7 +192,7 @@ const ContanctForm = props => {
|
|
|
})
|
|
})
|
|
|
}}>
|
|
}}>
|
|
|
确定
|
|
确定
|
|
|
- </Button>
|
|
|
|
|
|
|
+ </Button> */}
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|