From 0e28b43fbdca52844149550c6bf96810d9dac44e Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 16 Nov 2022 15:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E6=8E=A5=E7=A4=BE?= =?UTF-8?q?=E5=9B=A2=E7=B1=BB=E5=88=AB=E5=86=85=E5=AE=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/CustomerServices.js | 90 ++++++---------------------------- 1 file changed, 16 insertions(+), 74 deletions(-) diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 746b8e1..71de68a 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -124,6 +124,8 @@ class CustomerServices { fetchGroupListByAgentId(agentId) { this.selectedAgent = {VendorName: '...'}; + this.groupList = []; + this.groupListColumns = []; req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=' + agentId + '&DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString) .then(json => { if (json.errcode === 0) { @@ -163,6 +165,16 @@ class CustomerServices { } ] }, + { + title: '交易额', + dataIndex: 'totalcost', + sorter: (a, b) => a.totalcost - b.totalcost, + children: [{ + title: total1.totalcost, + dataIndex: 'totalcost' + } + ] + }, { title: '经过城市', dataIndex: 'PassCity', @@ -177,7 +189,7 @@ class CustomerServices { dataIndex: 'GuideName', children: [{ title: '-', - dataIndex: 'PassCity' + dataIndex: 'GuideName' } ] }, @@ -206,17 +218,7 @@ class CustomerServices { dataIndex: 'ECI_Content', children: [{ title: '-', - dataIndex: 'PassCity' - } - ] - }, - { - title: '交易额', - dataIndex: 'totalcost', - sorter: (a, b) => a.totalcost - b.totalcost, - children: [{ - title: total1.totalcost, - dataIndex: 'totalcost' + dataIndex: 'ECI_Content' } ] } @@ -249,69 +251,9 @@ class CustomerServices { dateType; selectedAgent; - groupList = [{ - EOI_ObjSN: 1, - GRI_SN: '---', - GRI_Name: 0, - COLI_PersonNum: 0, - COLI_Days: 0, - PassCity: 0, - VendorName: 0, - GuideName: '-', - Good: 0, - Bad: '-', - ECI_Content: '-', - totalcost: 0, - key: 1 - }]; + groupList = []; - groupListColumns = [ - { - title: '团名', - dataIndex: 'GRI_Name' - }, - { - title: '人数', - dataIndex: 'COLI_PersonNum', - sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum - }, - { - title: '天数', - dataIndex: 'COLI_Days', - sorter: (a, b) => a.COLI_Days - b.COLI_Days - }, - { - title: '经过城市', - dataIndex: 'PassCity' - }, - { - title: '地接社名称', - dataIndex: 'VendorName' - }, - { - title: '导游', - dataIndex: 'GuideName' - }, - { - title: '好评', - dataIndex: 'Good', - sorter: (a, b) => a.Good - b.Good - }, - { - title: '差评', - dataIndex: 'Bad', - sorter: (a, b) => a.Bad - b.Bad - }, - { - title: '评论内容', - dataIndex: 'ECI_Content' - }, - { - title: '交易额', - dataIndex: 'totalcost', - sorter: (a, b) => a.totalcost - b.totalcost - } - ]; + groupListColumns = []; agentList = [{ EOI_ObjSN: 1,