|
|
|
@ -2,7 +2,7 @@ import { Conditional } from '@/components/Conditional'
|
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
|
import useFormStore from '@/stores/FormStore'
|
|
|
|
|
import { useOrderStore, OrderLabelDefaultOptions, OrderStatusDefaultOptions, RemindStateDefaultOptions } from '@/stores/OrderStore'
|
|
|
|
|
import { copy, isNotEmpty } from '@/utils/commons'
|
|
|
|
|
import { copy, isNotEmpty, isEmpty } from '@/utils/commons'
|
|
|
|
|
import { InfoCircleTwoTone, MailTwoTone, MessageTwoTone, PhoneTwoTone, WhatsAppOutlined } from '@ant-design/icons'
|
|
|
|
|
import {
|
|
|
|
|
App, Badge, Button,
|
|
|
|
@ -228,7 +228,13 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
title: '出发日期',
|
|
|
|
|
dataIndex: 'COLI_OrderStartDate',
|
|
|
|
|
width: 120,
|
|
|
|
|
hidden: false
|
|
|
|
|
hidden: false,
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
sorter: (a, b, sortOrder) => {
|
|
|
|
|
const datejsA = isEmpty(a.COLI_OrderStartDate) ? dayjs(0) : new dayjs(a.COLI_OrderStartDate)
|
|
|
|
|
const datejsB = isEmpty(b.COLI_OrderStartDate) ? dayjs(0) : new dayjs(b.COLI_OrderStartDate)
|
|
|
|
|
return datejsA.isAfter(datejsB)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客人最后一次回复时间',
|
|
|
|
@ -249,8 +255,9 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
|
const [loading, setLoading] = useState(false)
|
|
|
|
|
const { orderList, fetchOrderList } = useOrderStore()
|
|
|
|
|
const { loginUser } = useAuthStore()
|
|
|
|
|
const orderList = useOrderStore((state) => state.orderList)
|
|
|
|
|
const fetchOrderList = useOrderStore((state) => state.fetchOrderList)
|
|
|
|
|
const loginUser = useAuthStore((state) => state.loginUser)
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
let canSearch = true
|
|
|
|
@ -360,7 +367,7 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function OrderFollow() {
|
|
|
|
|
function Follow() {
|
|
|
|
|
|
|
|
|
|
const [formValues, setFormValues] = useFormStore(useShallow((state) => [state.orderFollowForm, state.setOrderFollowForm]))
|
|
|
|
|
const [advanceChecked, toggleAdvance] = useFormStore(useShallow((state) => [state.orderFollowAdvanceChecked, state.setOrderFollowAdvanceChecked]))
|
|
|
|
@ -405,4 +412,4 @@ function OrderFollow() {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default OrderFollow
|
|
|
|
|
export default Follow
|