From d74f2b047b1f59dcd5699e63d0f63f47d3ba8a73 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 15 Nov 2022 16:19:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=9C=B0=E6=8E=A5=E7=A4=BE?= =?UTF-8?q?=E5=9B=A2=E5=88=97=E8=A1=A8=E6=8E=92=E5=BA=8F=E7=9A=84=E5=B0=8F?= =?UTF-8?q?=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/CustomerServices.js | 88 ++++++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 5 deletions(-) diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index ab00cef..83ae1fb 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -128,6 +128,79 @@ class CustomerServices { if (json.errcode === 0) { runInAction(() => { this.groupList = json.result1; + const total1 = json.total1; + this.groupListColumns = [ + { + title: '团名', + dataIndex: 'GRI_Name' + }, + { + title: '人数', + dataIndex: 'COLI_PersonNum', + sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum, + children: [{ + title: total1.COLI_PersonNum, + dataIndex: 'COLI_PersonNum' + } + ] + }, + { + title: '天数', + dataIndex: 'COLI_Days', + sorter: (a, b) => a.COLI_Days - b.COLI_Days, + children: [{ + title: total1.COLI_Days, + dataIndex: 'COLI_Days' + } + ] + }, + { + title: '经过城市', + dataIndex: 'PassCity' + }, + { + title: '地接社名称', + dataIndex: 'VendorName' + }, + { + title: '导游', + dataIndex: 'GuideName' + }, + { + title: '好评', + dataIndex: 'Good', + sorter: (a, b) => a.Good - b.Good, + children: [{ + title: total1.Good, + dataIndex: 'Good' + } + ] + }, + { + title: '差评', + dataIndex: 'Bad', + sorter: (a, b) => a.Bad - b.Bad, + children: [{ + title: total1.Bad, + dataIndex: 'Bad' + } + ] + }, + { + title: '评论内容', + dataIndex: 'ECI_Content' + }, + { + title: '交易额', + dataIndex: 'totalcost', + sorter: (a, b) => a.totalcost - b.totalcost, + children: [{ + title: total1.totalcost, + dataIndex: 'totalcost' + } + ] + } + ]; }); } }); @@ -179,11 +252,13 @@ class CustomerServices { }, { title: '人数', - dataIndex: 'COLI_PersonNum' + dataIndex: 'COLI_PersonNum', + sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum }, { title: '天数', - dataIndex: 'COLI_Days' + dataIndex: 'COLI_Days', + sorter: (a, b) => a.COLI_Days - b.COLI_Days }, { title: '经过城市', @@ -199,11 +274,13 @@ class CustomerServices { }, { title: '好评', - dataIndex: 'Good' + dataIndex: 'Good', + sorter: (a, b) => a.Good - b.Good }, { title: '差评', - dataIndex: 'Bad' + dataIndex: 'Bad', + sorter: (a, b) => a.Bad - b.Bad }, { title: '评论内容', @@ -211,7 +288,8 @@ class CustomerServices { }, { title: '交易额', - dataIndex: 'totalcost' + dataIndex: 'totalcost', + sorter: (a, b) => a.totalcost - b.totalcost } ];