From 488b33ae50264919b99bf2d290bb20c08efc218c Mon Sep 17 00:00:00 2001 From: ZJYHX Date: Wed, 28 May 2025 15:46:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E5=AE=A2=E8=BF=90-=E8=80=81=E5=AE=A2?= =?UTF-8?q?=E6=88=B7:=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E5=8D=A0=E6=AF=94=E3=80=81=E6=AF=9B=E5=88=A9=E5=8D=A0=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/Customer_care_regular.jsx | 12 ++++++++++++ src/stores/CustomerStore.js | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/src/charts/Customer_care_regular.jsx b/src/charts/Customer_care_regular.jsx index 4f79c9a..7ad9575 100644 --- a/src/charts/Customer_care_regular.jsx +++ b/src/charts/Customer_care_regular.jsx @@ -86,6 +86,12 @@ const Customer_care_regular = () => { ), }, + { + title: '订单数占比', + dataIndex: 'OrderRate', + key: 'OrderRate', + render: (text) => typeof text === 'number'?{Math.round(text * 100)}%:text, + }, { title: '成行数', dataIndex: 'SUCOrderNum', @@ -102,6 +108,12 @@ const Customer_care_regular = () => { dataIndex: 'ML', key: 'ML', }, + { + title: '毛利占比', + dataIndex: 'OrderMLRate', + key: 'OrderMLRate', + render: (text) => typeof text === 'number'?{Math.round(text * 100)}%:text, + }, { title: '人数(含成人+儿童)', dataIndex: 'PersonNum', diff --git a/src/stores/CustomerStore.js b/src/stores/CustomerStore.js index c6074c3..0165b2a 100644 --- a/src/stores/CustomerStore.js +++ b/src/stores/CustomerStore.js @@ -241,10 +241,14 @@ class CustomerStore { item1.OrderNum-item2.OrderNum,item1.OrderNum,item2.OrderNum), SUCOrderNum: show_vs_tag(formatPercent((item1.SUCOrderNum-item2.SUCOrderNum)/(item2.SUCOrderNum===0?1:item2.SUCOrderNum)), item1.SUCOrderNum-item2.SUCOrderNum,item1.SUCOrderNum,item2.SUCOrderNum), + OrderRate: show_vs_tag(formatPercent((item1.OrderRate-item2.OrderRate)/item2.OrderRate), + formatPercent(item1.OrderRate-item2.OrderRate),formatPercent(item1.OrderRate),formatPercent(item2.OrderRate)), SUCRate: show_vs_tag(formatPercent((item1.SUCRate-item2.SUCRate)/(item2.SUCRate===0?1:item2.SUCRate)), formatPercent(item1.SUCRate-item2.SUCRate),formatPercent(item1.SUCRate),formatPercent(item2.SUCRate)), ML: show_vs_tag(formatPercent((item1.ML-item2.ML)/(item2.ML===0?1:item2.ML)), (item1.ML-item2.ML).toFixed(2),item1.ML,item2.ML), + OrderMLRate: show_vs_tag(formatPercent((item1.OrderMLRate-item2.OrderMLRate)/item2.OrderMLRate), + formatPercent(item1.OrderMLRate-item2.OrderMLRate),formatPercent(item1.OrderMLRate),formatPercent(item2.OrderMLRate)), PersonNum: show_vs_tag(formatPercent((item1.PersonNum-item2.PersonNum)/(item2.PersonNum===0?1:item2.PersonNum)), item1.PersonNum-item2.PersonNum,item1.PersonNum,item2.PersonNum), });