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),
});