style: 订单跟踪: 显示WhatsApp状态

dev/chat
Lei OT 2 years ago
parent a1ef6b4c44
commit d9ce340780

@ -11,6 +11,7 @@ import useAuthStore from '@/stores/AuthStore'
import { copy } from '@/utils/commons'
import useFormStore from '@/stores/FormStore';
import { useShallow } from 'zustand/react/shallow';
import { WhatsAppOutlined } from '@ant-design/icons';
const { RangePicker } = DatePicker
@ -167,7 +168,10 @@ function OrderGroupTable({ formValues }) {
if (record.buytime > 0) regularText = '(R' + record.buytime + ')'
return (
<Space>
<Link to={`/order/chat/${record.COLI_SN}`} state={record} title={record.coli_guest_WhatsApp}>{text + regularText}</Link>
<Link to={`/order/chat/${record.COLI_SN}`} state={record} title={record.coli_guest_WhatsApp}>
{text + regularText}
{record.coli_guest_WhatsApp && <WhatsAppOutlined className={['pl-1', record.last_received_time ? 'text-whatsapp' : 'text-neutral-500']} />}
</Link>
<Badge
count={record.unread_msg}
style={{
@ -175,7 +179,7 @@ function OrderGroupTable({ formValues }) {
}}
/>
</Space>
)
);
}
},
{

Loading…
Cancel
Save