From 1180a3e9160f95294d1ce2e86ea3571371bc74ed Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Thu, 24 Nov 2022 16:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000805):=E2=80=9C?= =?UTF-8?q?=E5=BE=85=E4=BB=98=E6=AC=BE=E2=80=9D=E5=8F=8A=E4=BB=A5=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E7=8A=B6=E6=80=81=E5=88=97=E8=A1=A8=E7=9A=84=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E5=8F=AB=E2=80=9C=E5=90=88=E8=AE=A1=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/components/itemList/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/order/components/itemList/index.tsx b/src/pages/order/components/itemList/index.tsx index 2765736..ba8bd6a 100644 --- a/src/pages/order/components/itemList/index.tsx +++ b/src/pages/order/components/itemList/index.tsx @@ -21,14 +21,6 @@ export default memo((props: propsObj) => { }) } - const monyFont = useMemo(() => { - if (props?.obj.status == 0 || props?.obj.status == 1 || props?.obj.status == 2) { - return '预估金额:' - } else { - return '合计金额:' - } - }, [props?.obj]) - const totalMoney = useMemo(() => { if (props?.obj.status == 0 || props?.obj.status == 1 || props?.obj.status == 2) { return props?.obj?.estimate_amount @@ -37,6 +29,16 @@ export default memo((props: propsObj) => { } }, [props?.obj]) + //待接单、配布中、已配布状态时,叫预估金额,其他状态叫合计金额。 + const monyFont = useMemo(() => { + if (props?.obj?.status === 0 || props?.obj?.status === 1) { + return "预估金额" + } else { + return "合计金额" + } + }, [props?.obj]) + + return ( navTo(e)}>