From 088ac6f46e60c8e56c7abd80e9cc0a8077298dbd Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Thu, 24 Nov 2022 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000793):=E6=96=B0?= =?UTF-8?q?=E7=89=88=E5=86=85=E9=83=A8=E5=95=86=E5=9F=8E=EF=BC=8C=E5=A4=A7?= =?UTF-8?q?=E8=B4=A7=E3=80=81=E6=95=A3=E5=89=AA=E6=9C=AA=E9=85=8D=E5=B8=83?= =?UTF-8?q?=E5=89=8D=E7=9A=84=E9=87=91=E9=A2=9D=E5=8F=AB=E2=80=9C=E9=A2=84?= =?UTF-8?q?=E4=BC=B0=E9=87=91=E9=A2=9D=E2=80=9D=EF=BC=9B=E9=85=8D=E5=B8=83?= =?UTF-8?q?=E5=90=8E=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/orderDetails/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/orderDetails/index.tsx b/src/pages/orderDetails/index.tsx index 5c15666..c46923d 100644 --- a/src/pages/orderDetails/index.tsx +++ b/src/pages/orderDetails/index.tsx @@ -615,6 +615,14 @@ export default () => { } }) }, [infoObj]) + //待接单、配布中、已配布状态时,叫预估金额,其他状态叫合计金额。 + const payFont = useMemo(() => { + if (infoObj?.status === 0 || infoObj?.status === 1 || infoObj?.status === 2) { + return "预估金额" + } else { + return "合计金额" + } + }, [infoObj]) return ( @@ -644,7 +652,7 @@ export default () => { - 合计金额 + {payFont} {/* */} ¥{formatPriceDiv(infoObj.bill_total_sale_price)}