From 3b24aa1373c3b03693293250b2cf745514fef3a5 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 14 Jan 2026 14:48:02 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=86=E9=94=80=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1:=20=E8=A1=A8=E5=A4=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/toB/ToBOrder.jsx | 27 ++++++++++++++------------- src/views/toB/ToBOrderSub.jsx | 20 ++++++++++---------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/src/views/toB/ToBOrder.jsx b/src/views/toB/ToBOrder.jsx index 27fcaf4..ba08a63 100644 --- a/src/views/toB/ToBOrder.jsx +++ b/src/views/toB/ToBOrder.jsx @@ -15,13 +15,12 @@ import { stores_Context } from '../../config'; import { useShallow } from 'zustand/shallow'; import useToBOrderStore, { orderCountDataMapper, orderCountDataFieldMapper } from '../../zustand/ToBOrder'; - const ToBOrder = observer(() => { const { date_picker_store: searchFormStore } = useContext(stores_Context); const [searchValues, setSearchValues] = useToBOrderStore(useShallow((state) => [state.searchValues, state.setSearchValues])); const [activeTab, setActiveTab] = useToBOrderStore(useShallow((state) => [state.activeTab, state.setActiveTab])); - const [loading, typeLoading, onTabChange] = useToBOrderStore(useShallow((state) => [state.loading, state.typeLoading,state.onTabChange])); + const [loading, typeLoading, onTabChange] = useToBOrderStore(useShallow((state) => [state.loading, state.typeLoading, state.onTabChange])); const orderCountDataRaw = useToBOrderStore((state) => state.orderCountDataRaw); const [orderCountDataLines, avgLineValue] = useToBOrderStore(useShallow((state) => [state.orderCountDataLines, state.avgLineValue])); @@ -274,7 +273,7 @@ const ToBOrder = observer(() => { ...searchValues, }, // - shows: ['DateType', 'WebCode','IncludeTickets', 'DepartmentList', 'dates'], + shows: ['DateType', 'WebCode', 'IncludeTickets', 'DepartmentList', 'dates'], fieldProps: { DepartmentList: { show_all: false, mode: 'multiple' }, WebCode: { show_all: false, mode: 'multiple' }, @@ -347,17 +346,19 @@ const ToBOrder = observer(() => { */} - - - - - + + + + + - {showDiff && - - - } - + {showDiff && ( + + + + + )} + diff --git a/src/views/toB/ToBOrderSub.jsx b/src/views/toB/ToBOrderSub.jsx index 5a53590..82cbefa 100644 --- a/src/views/toB/ToBOrderSub.jsx +++ b/src/views/toB/ToBOrderSub.jsx @@ -38,16 +38,16 @@ const OrderDetailTable = ({ caption, dataSource, loading, ...props }) => { render: (text, record) => {text == 1 ? '是' : '否'}, sorter: (a, b) => b.COLI_Success - a.COLI_Success, }, - // { - // title: "人数(成/童/婴)", - // dataIndex: "COLI_PersonNum", - // key: "COLI_PersonNum", - // render: (text, record) => ( - // - // {record.COLI_PersonNum}/{record.COLI_ChildNum}/{record.COLI_BabyNum} - // - // ), - // }, + { + title: '人数(成/童/婴)', + dataIndex: 'COLI_PersonNum', + key: 'COLI_PersonNum', + render: (text, record) => ( + + {record.COLI_PersonNum}/{record.COLI_ChildNum}/{record.COLI_BabyNum} + + ), + }, { title: '预计利润', dataIndex: 'CGI_YJLY',