diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js
index af0d42d..ab00cef 100644
--- a/src/stores/CustomerServices.js
+++ b/src/stores/CustomerServices.js
@@ -20,10 +20,102 @@ class CustomerServices {
req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString)
.then(json => {
- console.info(json);
if (json.errcode === 0) {
runInAction(() => {
this.agentList = json.result1;
+ const total1 = json.total1;
+ this.agentListColumns = [
+ {
+ title: '地接社名称',
+ dataIndex: 'VendorName',
+ children: [{
+ // title: this.startDate.format(config.DATE_FORMAT) + '~' + this.endDate.format(config.DATE_FORMAT),
+ dataIndex: 'VendorName',
+ render: (text, record) => {text}
+ }
+ ]
+ },
+ {
+ title: '团数',
+ dataIndex: 'GroupCount',
+ sorter: (a, b) => a.GroupCount - b.GroupCount,
+ children: [{
+ title: total1.GroupCount,
+ dataIndex: 'GroupCount'
+ }
+ ]
+ },
+ {
+ title: '人数',
+ dataIndex: 'PersonNum',
+ sorter: (a, b) => a.PersonNum - b.PersonNum,
+ children: [{
+ title: total1.PersonNum,
+ dataIndex: 'PersonNum'
+ }
+ ]
+ },
+ {
+ title: '团天数',
+ dataIndex: 'GroupDays',
+ sorter: (a, b) => a.GroupDays - b.GroupDays,
+ children: [{
+ title: total1.GroupDays,
+ dataIndex: 'GroupDays'
+ }
+ ]
+ },
+ {
+ title: '交易额',
+ dataIndex: 'totalcost',
+ sorter: (a, b) => a.totalcost - b.totalcost,
+ children: [{
+ title: total1.totalcost,
+ dataIndex: 'totalcost'
+ }
+ ]
+ },
+ {
+ title: '好评数',
+ dataIndex: 'GoodCount',
+ sorter: (a, b) => a.GoodCount - b.GoodCount,
+ children: [{
+ title: total1.GoodCount,
+ dataIndex: 'GoodCount'
+ }
+ ]
+ },
+ {
+ title: '好评率',
+ dataIndex: 'GoodRate',
+ sorter: (a, b) => parseInt(a.GoodRate) - parseInt(b.GoodRate),
+ children: [{
+ title: total1.GoodRate,
+ dataIndex: 'GoodRate'
+ }
+ ]
+ },
+ {
+ title: '差评数',
+ dataIndex: 'BadCount',
+ sorter: (a, b) => a.BadCount - b.BadCount,
+ children: [{
+ title: total1.BadCount,
+ dataIndex: 'BadCount'
+ }
+ ]
+ },
+ {
+ title: '差评率',
+ dataIndex: 'BadRate',
+ sorter: (a, b) => parseInt(a.BadRate) - parseInt(b.BadRate),
+ children: [{
+ title: total1.BadRate,
+ dataIndex: 'BadRate'
+ }
+ ]
+ }
+ ];
});
}
});
@@ -33,7 +125,6 @@ class CustomerServices {
req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=' + this.selectedAgent.EOI_ObjSN + '&DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString)
.then(json => {
- console.info(json);
if (json.errcode === 0) {
runInAction(() => {
this.groupList = json.result1;
@@ -142,54 +233,52 @@ class CustomerServices {
{
title: '地接社名称',
dataIndex: 'VendorName',
- render: (text) => {text}
+ render: (text, record) => {
+ if (record.EOI_ObjSN === -1) {
+ return text;
+ } else {
+ return {text}
+ }
+ }
},
{
title: '团数',
dataIndex: 'GroupCount',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.GroupCount - b.GroupCount
},
{
title: '人数',
dataIndex: 'PersonNum',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.PersonNum - b.PersonNum
},
{
title: '团天数',
dataIndex: 'GroupDays',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.GroupDays - b.GroupDays
},
{
title: '交易额',
dataIndex: 'totalcost',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.totalcost - b.totalcost
},
{
title: '好评数',
dataIndex: 'GoodCount',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.GoodCount - b.GoodCount
},
{
title: '好评率',
dataIndex: 'GoodRate',
- defaultSortOrder: 'descend',
sorter: (a, b) => parseInt(a.GoodRate) - parseInt(b.GoodRate)
},
{
title: '差评数',
dataIndex: 'BadCount',
- defaultSortOrder: 'descend',
sorter: (a, b) => a.BadCount - b.BadCount
},
{
title: '差评率',
dataIndex: 'BadRate',
- defaultSortOrder: 'descend',
sorter: (a, b) => parseInt(a.BadRate) - parseInt(b.BadRate)
}
];