diff --git a/src/components/OrderProfile.jsx b/src/components/OrderProfile.jsx index 46835ec..34310d6 100644 --- a/src/components/OrderProfile.jsx +++ b/src/components/OrderProfile.jsx @@ -12,7 +12,8 @@ import { ReloadOutlined, } 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 { useOrderStore, fetchSetRemindStateAction, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions } from '@/stores/OrderStore' import { copy, isEmpty } from '@/utils/commons' @@ -20,6 +21,7 @@ import { useShallow } from 'zustand/react/shallow' import useConversationStore from '@/stores/ConversationStore' import useAuthStore from '@/stores/AuthStore' const OrderProfile = ({ coliSN, ...props }) => { + const navigate = useNavigate() const { notification, message } = App.useApp() const [formComment] = Form.useForm() const [loading, setLoading] = useState(false) @@ -83,22 +85,12 @@ const OrderProfile = ({ coliSN, ...props }) => { return customerDetail.name } + const getPlanStatus = () => { + return orderDetail.DidPlan === 0 ? '未做计划' : '已做计划' + } + return ( <> - {/* { - console.info(key) - }} - items={Array.from({ length: 3 }).map((_, i) => { - const id = String(i + 1) - return { - label: `Tab ${id}`, - key: id, - children: `Content of Tab ${id}`, - } - })} - /> */} @@ -111,7 +103,7 @@ const OrderProfile = ({ coliSN, ...props }) => { - Thailand + {orderDetail.MEI_Country} @@ -121,20 +113,22 @@ const OrderProfile = ({ coliSN, ...props }) => { {customerDetail.email} - + - {customerDetail.whatsapp_phone_number} - + + {customerDetail.whatsapp_phone_number} + + - 2025-09-18 + {orderDetail.COLI_OrderStartDate} - + - 已做计划 + {getPlanStatus()} @@ -230,7 +224,7 @@ const OrderProfile = ({ coliSN, ...props }) => { */} - 泰国马来水灯节 + {orderDetail.COLI_Introduction} setOpenOrderCommnet(false)} open={openOrderCommnet}>