From a778bc475f254957237257bfaaa446f1f6afb112 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 3 Jun 2025 16:58:03 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=95=B4=E5=90=88=E5=8E=9F=E6=9D=A5=20?= =?UTF-8?q?CustomerProfile=20=E7=95=8C=E9=9D=A2=EF=BC=9B=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OrderProfile.jsx | 78 ++++++++++++++++++------ src/views/orders/Follow.jsx | 52 ---------------- src/views/orders/components/MailBox.jsx | 80 +++++++++++++++++++++---- 3 files changed, 127 insertions(+), 83 deletions(-) diff --git a/src/components/OrderProfile.jsx b/src/components/OrderProfile.jsx index c5166a9..343ab23 100644 --- a/src/components/OrderProfile.jsx +++ b/src/components/OrderProfile.jsx @@ -10,17 +10,27 @@ import { DeleteOutlined, ClockCircleOutlined, FormOutlined } from '@ant-design/icons' + +import { useCallback, useEffect, useState } from 'react' import { - Flex, + Flex,Select,Tooltip, Button, Space, Divider, Typography, - Input + Input, Radio,Drawer,Checkbox, } from 'antd' import { InboxIcon, MailCheckIcon, MailUnreadIcon, SendPlaneFillIcon } from '@/components/Icons' - +import { useOrderStore, OrderLabelDefaultOptions, OrderStatusDefaultOptions, remindStatusOptions, fetchSetRemindStateAction, remindStatusOptionsMapped } from "@/stores/OrderStore"; +import { copy, isEmpty } from "@/utils/commons"; const OrderProfile = (props) => { + + const orderLabelOptions = copy(OrderLabelDefaultOptions); + orderLabelOptions.unshift({ value: 0, label: "未设置", disabled: true }); + + const orderStatusOptions = copy(OrderStatusDefaultOptions); + + const [openOrder, setOpenOrder] = useState(false) return ( <> - + LSS250501006 @@ -63,10 +73,46 @@ const OrderProfile = (props) => { 外联备注: 泰国马来水灯节 + + 订单状态 + + { + }} + value={1} + options={orderStatusOptions} + /> + + + 催信 + + + 表单信息 + +

{ __html: 'orderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detailorderDetail.order_detail', }}>

- - - -
+ + + 附加信息 + + + + + + 泰国马来水灯节 + ) } diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index b5b2a46..0733a0b 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -78,7 +78,6 @@ function Follow() { const orderList = useOrderStore((state) => state.orderList) const fetchOrderList = useOrderStore((state) => state.fetchOrderList) - const [openOrder, setOpenOrder] = useState(false) const [collapsed, setCollapsed] = useState(false) const [loginUser, isPermitted] = useAuthStore((state) => [state.loginUser, state.isPermitted]) @@ -263,57 +262,6 @@ function Follow() { - - setOpenOrder(false)}> - - 是否重要 - - - - - 状态 - - - - - 催信 - - - ) } diff --git a/src/views/orders/components/MailBox.jsx b/src/views/orders/components/MailBox.jsx index 4421d30..83d277d 100644 --- a/src/views/orders/components/MailBox.jsx +++ b/src/views/orders/components/MailBox.jsx @@ -1,3 +1,5 @@ + +import { useCallback, useEffect, useState } from 'react' import { ReloadOutlined, ReadOutlined, CheckSquareOutlined @@ -5,11 +7,12 @@ import { import { Flex, Button, Tooltip, - List, + List,Radio,Typography,Divider,Drawer, Dropdown, Input, Checkbox } from 'antd' const MailBox = (props) => { + const [openOrder, setOpenOrder] = useState(false) return ( <>
@@ -56,18 +59,8 @@ const MailBox = (props) => { }}> 新邮件 - {}} - onPressEnter={(e) => { - return false - }} - placeholder={`邮件主题`} - /> - - - + + @@ -80,6 +73,16 @@ const MailBox = (props) => {
@@ -214,6 +217,57 @@ const MailBox = (props) => { )} />
+ + setOpenOrder(false)}> + + 是否重要 + + + + + 状态 + + + + + 催信 + + + ) }