|
|
@ -12,7 +12,8 @@ import {
|
|
|
|
ReloadOutlined,
|
|
|
|
ReloadOutlined,
|
|
|
|
} from '@ant-design/icons'
|
|
|
|
} from '@ant-design/icons'
|
|
|
|
|
|
|
|
|
|
|
|
import { useEffect, useState, useRef } from 'react'
|
|
|
|
import { useEffect, useState } from 'react'
|
|
|
|
|
|
|
|
import { Link, useNavigate } from 'react-router-dom'
|
|
|
|
import { App, Flex, Select, Tooltip, Divider, Typography, Skeleton, Checkbox, Drawer, Button, Form, Input } from 'antd'
|
|
|
|
import { App, Flex, Select, Tooltip, Divider, Typography, Skeleton, Checkbox, Drawer, Button, Form, Input } from 'antd'
|
|
|
|
import { useOrderStore, fetchSetRemindStateAction, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions } from '@/stores/OrderStore'
|
|
|
|
import { useOrderStore, fetchSetRemindStateAction, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions } from '@/stores/OrderStore'
|
|
|
|
import { copy, isEmpty } from '@/utils/commons'
|
|
|
|
import { copy, isEmpty } from '@/utils/commons'
|
|
|
@ -20,6 +21,7 @@ import { useShallow } from 'zustand/react/shallow'
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
|
|
|
|
const navigate = useNavigate()
|
|
|
|
const { notification, message } = App.useApp()
|
|
|
|
const { notification, message } = App.useApp()
|
|
|
|
const [formComment] = Form.useForm()
|
|
|
|
const [formComment] = Form.useForm()
|
|
|
|
const [loading, setLoading] = useState(false)
|
|
|
|
const [loading, setLoading] = useState(false)
|
|
|
@ -111,10 +113,12 @@ const OrderProfile = ({ coliSN, ...props }) => {
|
|
|
|
<MailOutlined className='pr-1' />
|
|
|
|
<MailOutlined className='pr-1' />
|
|
|
|
{customerDetail.email}
|
|
|
|
{customerDetail.email}
|
|
|
|
</Typography.Text>
|
|
|
|
</Typography.Text>
|
|
|
|
<Typography.Link href={`/order/chat/${coliSN}`}>
|
|
|
|
<Typography.Text>
|
|
|
|
<WhatsAppOutlined className=' pr-1' />
|
|
|
|
<WhatsAppOutlined className=' pr-1' />
|
|
|
|
{customerDetail.whatsapp_phone_number}
|
|
|
|
<Link to={`/order/chat/${coliSN}`} state={orderDetail}>
|
|
|
|
</Typography.Link>
|
|
|
|
{customerDetail.whatsapp_phone_number}
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
</Typography.Text>
|
|
|
|
<Typography.Text>
|
|
|
|
<Typography.Text>
|
|
|
|
<Tooltip title='出发日期'>
|
|
|
|
<Tooltip title='出发日期'>
|
|
|
|
<CalendarOutlined className='pr-1' />
|
|
|
|
<CalendarOutlined className='pr-1' />
|
|
|
|