|
|
|
|
@ -4,6 +4,7 @@ import dayjs from 'dayjs'
|
|
|
|
|
import { ReadIcon, DeliverIcon, SentIcon, WaitingIcon, FailedIcon } from '@/components/Icons'
|
|
|
|
|
import { MessageTwoTone } from '@ant-design/icons'
|
|
|
|
|
import useCustomerRelationStore from '@/stores/CustomerRelationStore'
|
|
|
|
|
import CountryInfo2 from '@/assets/CountryInfo2.json'
|
|
|
|
|
|
|
|
|
|
const { RangePicker } = DatePicker
|
|
|
|
|
const { Option } = Select
|
|
|
|
|
@ -18,6 +19,12 @@ const statusIconMap = {
|
|
|
|
|
default: <WaitingIcon title='waiting' />,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建国家ID到名称的映射
|
|
|
|
|
const countryMap = CountryInfo2.reduce((map, item) => {
|
|
|
|
|
map[item.COI2_COI_SN] = item.COI2_Country;
|
|
|
|
|
return map;
|
|
|
|
|
}, {});
|
|
|
|
|
|
|
|
|
|
const Index = () => {
|
|
|
|
|
const { loading, tasksList, fetchSearchTasks } = useCustomerRelationStore()
|
|
|
|
|
|
|
|
|
|
@ -143,8 +150,8 @@ const Index = () => {
|
|
|
|
|
{ title: '团号', dataIndex: 'crt_coli_id', key: 'crt_coli_id' },
|
|
|
|
|
{ title: '客人', dataIndex: 'crt_mei_firstname', key: 'crt_mei_firstname', render: (text, record) => record.crt_mei_firstname + ' ' + record.crt_mei_lastname },
|
|
|
|
|
{ title: '时区', dataIndex: 'crt_coi2_country', key: 'crt_coi2_country' },
|
|
|
|
|
{ title: '国籍', dataIndex: 'crt_mei_country', key: 'crt_mei_country' },
|
|
|
|
|
|
|
|
|
|
{ title: '国籍', dataIndex: 'crt_mei_country', key: 'crt_mei_country',render: (sn) => countryMap[sn] || sn },
|
|
|
|
|
{ title: '附加信息', dataIndex: 'crt_add_info', key: 'crt_add_info' },
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
dataIndex: 'crt_status',
|
|
|
|
|
@ -160,6 +167,7 @@ const Index = () => {
|
|
|
|
|
},
|
|
|
|
|
{ title: '发送时间', dataIndex: 'crt_send_datetime', key: 'crt_send_datetime', sorter: (a, b) => dayjs(a.crt_send_datetime).unix() - dayjs(b.crt_send_datetime).unix() },
|
|
|
|
|
{ title: '模板', dataIndex: 'crt_template', key: 'crt_template' },
|
|
|
|
|
|
|
|
|
|
{ title: 'WhatsApp', dataIndex: 'crt_whatsapp', key: 'crt_whatsapp' },
|
|
|
|
|
{
|
|
|
|
|
title: '会话',
|
|
|
|
|
|