From 35d27315604a52d0b12c879ce17f1765162892a4 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 30 Apr 2024 14:15:34 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=94=80=E5=94=AE=E4=B8=9A=E7=BB=A9?= =?UTF-8?q?=E6=95=B0=E6=8D=AE:=20=E5=90=8D=E7=A7=B0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/SaleStore.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/stores/SaleStore.js b/src/stores/SaleStore.js index c643725..d38197f 100644 --- a/src/stores/SaleStore.js +++ b/src/stores/SaleStore.js @@ -82,6 +82,7 @@ class SaleStore { // 切换标签页 onChange_Tabs(active_key) { this.active_tab_key = active_key; + this.type_data = {}; } // 下单日期或者出发日期 @@ -167,13 +168,14 @@ class SaleStore { if (this.active_tab_key === 'All') { result.columns = [ { - title: '', + title: '账户名', children: [ { title: '', dataIndex: 'OPI_Name', }, ], + sorter: (a, b) => (a?.OPI_Name || '').localeCompare(b.OPI_Name, 'zh-CN'), }, { title: '毛利', @@ -223,6 +225,7 @@ class SaleStore { dataIndex: 'OPI_Name', }, ], + sorter: (a, b) => (a?.OPI_Name || '').localeCompare(b.OPI_Name, 'zh-CN'), }, { title: '报价次数', @@ -276,6 +279,7 @@ class SaleStore { dataIndex: 'OPI_Name', }, ], + sorter: (a, b) => (a?.OPI_Name || '').localeCompare(b.OPI_Name, 'zh-CN'), }, { title: '首次回复率', @@ -394,7 +398,9 @@ class SaleStore { totalDiff.diff = (totalDiff.val-totalDiff.diffVal); totalDiff.vs = comm.fixTo2Decimals(((totalDiff.val-totalDiff.diffVal)/totalDiff.diffVal)*100)+'%'; result.columns.push( - { title: '顾问', children: [{ title: '', dataIndex: 'T_name', render: (text, record) => {text} }] }, + { title: '顾问', children: [{ title: '', dataIndex: 'T_name', render: (text, record) => {text} }], + sorter: (a, b) => (a?.T_name || '').localeCompare(b.T_name, 'zh-CN'), + }, { title: '合计', children: [