|
|
|
@ -33,10 +33,7 @@ const CustomerProfile = (({ customer }) => {
|
|
|
|
|
const { quotes, contact, last_contact, ...order } = orderInfo;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className=' divide-x-0 divide-y divide-dotted divide-slate-400/[.24]'>
|
|
|
|
|
<Flex vertical>
|
|
|
|
|
|
|
|
|
|
</Flex>
|
|
|
|
|
<div className=' divide-x-0 divide-y divide-slate-300 divide-dotted'>
|
|
|
|
|
<Card className='p-2'
|
|
|
|
|
bordered={false}
|
|
|
|
|
title={order?.order_no}
|
|
|
|
@ -46,11 +43,11 @@ const CustomerProfile = (({ customer }) => {
|
|
|
|
|
description={<Radio.Group size={'small'} options={orderStatus} value={'pending'} onChange={({ target: { value } }) => {}} optionType='button' buttonStyle={'solid'} />}
|
|
|
|
|
/>
|
|
|
|
|
<Flex gap={10}>
|
|
|
|
|
<Avatar src={`https://api.dicebear.com/7.x/avataaars/svg?seed=${contact?.name}`} />
|
|
|
|
|
{/* <Avatar src={`https://api.dicebear.com/7.x/avataaars/svg?seed=${contact?.name}`} /> */}
|
|
|
|
|
<Flex vertical={true} justify='space-between'>
|
|
|
|
|
<Typography.Text strong>{contact?.name}</Typography.Text>
|
|
|
|
|
<Typography.Text ><PhoneOutlined className=' pr-1' />{contact?.phone}</Typography.Text>
|
|
|
|
|
<Typography.Text ><MailOutlined className=' pr-1' />{contact?.email}</Typography.Text>
|
|
|
|
|
<Typography.Text strong>{contact?.[0]?.name}</Typography.Text>
|
|
|
|
|
<Typography.Text ><PhoneOutlined className=' pr-1' />{contact?.[0]?.phone}</Typography.Text>
|
|
|
|
|
<Typography.Text ><MailOutlined className=' pr-1' />{contact?.[0]?.email}</Typography.Text>
|
|
|
|
|
{/* <div>{order?.order_no}</div> */}
|
|
|
|
|
{/* <div>
|
|
|
|
|
{order?.location} <span>{order?.local_datetime}</span>
|
|
|
|
@ -61,13 +58,13 @@ const CustomerProfile = (({ customer }) => {
|
|
|
|
|
</Card>
|
|
|
|
|
<Flex vertical={true} className='p-2 '>
|
|
|
|
|
<div>最新报价</div>
|
|
|
|
|
<p className='m-0 py-2 '>{quotes?.[0]?.name}</p>
|
|
|
|
|
<p className='m-0 py-2 line-clamp-2 '>{quotes?.[0]?.lettertitle}</p>
|
|
|
|
|
<Flex justify={'space-between'} >
|
|
|
|
|
<CreatePayment />
|
|
|
|
|
<QuotesHistory />
|
|
|
|
|
</Flex>
|
|
|
|
|
</Flex>
|
|
|
|
|
<p className='p-2 overflow-auto h-32 '>{order?.order_detail}</p>
|
|
|
|
|
<pre className='p-2 overflow-auto h-32' dangerouslySetInnerHTML={{__html: order?.order_detail}}></pre>
|
|
|
|
|
<Flex vertical={true} className='p-2 '>
|
|
|
|
|
<div>沟通记录</div>
|
|
|
|
|
<Table size={'small'} columns={[{ title: '进程', dataIndex: 'title' }, { title: '状态', dataIndex: 'title2' },]} />
|
|
|
|
|