|
|
@@ -1,4 +1,4 @@
|
|
|
-import { Card } from 'antd'
|
|
|
+import { Descriptions } from 'antd'
|
|
|
import React, { useState } from 'react'
|
|
|
import { useModal } from '@/components/ModalStore'
|
|
|
import styles from './index.less'
|
|
|
@@ -6,41 +6,38 @@ import styles from './index.less'
|
|
|
const CardClientDetail = props => {
|
|
|
const { client } = props
|
|
|
const dispatchModal = useModal()
|
|
|
- const [state, setState] = useState({
|
|
|
- orderIds: []
|
|
|
- })
|
|
|
return (
|
|
|
- <div className="pt-3 border-t-1px border-hex-f3f3f3">
|
|
|
- <Card title="CLD客户" size="small" type="inner" className={styles.cardBoxBg}>
|
|
|
- <div className="py-3">
|
|
|
- 客户姓名:
|
|
|
- <span
|
|
|
- onClick={() =>
|
|
|
- dispatchModal('D_CLIENT_DETAIL', { dataId: client.id, orderIds: state.orderIds })
|
|
|
- }
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
- {client.clientName}
|
|
|
- </span>
|
|
|
+ <Descriptions title={<h2 className="font-medium">CLD客户</h2>} bordered size="small">
|
|
|
+ <Descriptions.Item label="客户姓名" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ <div
|
|
|
+ onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: client.id })}
|
|
|
+ className="text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
+ >
|
|
|
+ {client.clientName}
|
|
|
</div>
|
|
|
- <div className="py-3">
|
|
|
- 单位名称:
|
|
|
- <span
|
|
|
- onClick={() =>
|
|
|
- dispatchModal('D_COMPANY_DETAIL', {
|
|
|
- dataId: client.companyId,
|
|
|
- orderIds: state.orderIds
|
|
|
- })
|
|
|
- }
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
- {client.companyName}
|
|
|
- </span>
|
|
|
+ </Descriptions.Item>
|
|
|
+
|
|
|
+ <Descriptions.Item label="单位名称" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ <div
|
|
|
+ onClick={() => dispatchModal('D_COMPANY_DETAIL', { dataId: client.companyId })}
|
|
|
+ className="text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
+ >
|
|
|
+ {client.companyName}
|
|
|
</div>
|
|
|
- <div className="py-3">手机:{client.telephone}</div>
|
|
|
- <div className="py-3">QQ:{client.qq}</div>
|
|
|
- <div className="py-3">部门:{client.department}</div>
|
|
|
- <div className="py-3">职务:{client.position}</div>
|
|
|
- </Card>
|
|
|
- </div>
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="手机" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ {client.telephone}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="QQ" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ {client.qq}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="部门" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ {client.department}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="职务" span={3} labelStyle={{ width: '120px' }}>
|
|
|
+ {client.position}
|
|
|
+ </Descriptions.Item>
|
|
|
+ </Descriptions>
|
|
|
)
|
|
|
}
|
|
|
|