import { useNavigate } from 'react-router-dom'
import { memo, useMemo, useCallback, useEffect, useState } from 'react'
import {
Row, Badge, Divider, Table, Card, Button, Input,
Space, Tag, Radio, Select, Flex, Spin, Form, Switch, DatePicker, List, Avatar
} from 'antd'
import {
StarFilled, ZoomInOutlined, StarOutlined, BarsOutlined, AppstoreOutlined, SearchOutlined
} from '@ant-design/icons'
import { Conditional } from '@/components/Conditional'
import { useGetJson } from '@/hooks/userFetch'
const { RangePicker } = DatePicker;
const dataSource = [
{
key: '1',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '2',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '3',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '4',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour 超级无敌长的报价标题',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '5',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '6',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
{
key: '7',
orderNumber: 'LU231218115(3)',
fullname: 'Giacomo Guilizzoni(R1)',
orderStatus: '新订单',
trip: 'Itinerary2: Tkyoto tour',
lastMessage: '2024-03-25 16:02',
comment: '吃素、蜜月',
},
];
const columns = [
{
title: '订单号',
dataIndex: 'orderNumber',
key: 'orderNumber',
width: 222,
render: (text, record, index) => {
if (index === 1) return