|
|
@ -13,12 +13,13 @@ class CustomerServices {
|
|
|
|
this.startDateString = this.startDate.format(config.DATE_FORMAT);
|
|
|
|
this.startDateString = this.startDate.format(config.DATE_FORMAT);
|
|
|
|
this.endDateString = this.endDate.format(config.DATE_FORMAT) + '%2023:59';
|
|
|
|
this.endDateString = this.endDate.format(config.DATE_FORMAT) + '%2023:59';
|
|
|
|
this.dateType = 'startDate';
|
|
|
|
this.dateType = 'startDate';
|
|
|
|
|
|
|
|
this.inProgress = false;
|
|
|
|
this.selectedAgent = {VendorName: '请选择地接社'};
|
|
|
|
this.selectedAgent = {VendorName: '请选择地接社'};
|
|
|
|
makeAutoObservable(this);
|
|
|
|
makeAutoObservable(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fetchAgentList() {
|
|
|
|
fetchAgentList() {
|
|
|
|
|
|
|
|
this.inProgress = true;
|
|
|
|
req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString)
|
|
|
|
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 => {
|
|
|
|
.then(json => {
|
|
|
|
if (json.errcode === 0) {
|
|
|
|
if (json.errcode === 0) {
|
|
|
@ -119,10 +120,14 @@ class CustomerServices {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.inProgress = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fetchGroupListByAgentId(agentId) {
|
|
|
|
fetchGroupListByAgentId(agentId) {
|
|
|
|
|
|
|
|
this.inProgress = true;
|
|
|
|
this.selectedAgent = {VendorName: '...'};
|
|
|
|
this.selectedAgent = {VendorName: '...'};
|
|
|
|
this.groupList = [];
|
|
|
|
this.groupList = [];
|
|
|
|
this.groupListColumns = [];
|
|
|
|
this.groupListColumns = [];
|
|
|
@ -225,6 +230,9 @@ class CustomerServices {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.inProgress = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -250,6 +258,7 @@ class CustomerServices {
|
|
|
|
endDateString;
|
|
|
|
endDateString;
|
|
|
|
dateType;
|
|
|
|
dateType;
|
|
|
|
selectedAgent;
|
|
|
|
selectedAgent;
|
|
|
|
|
|
|
|
inProgress;
|
|
|
|
|
|
|
|
|
|
|
|
groupList = [];
|
|
|
|
groupList = [];
|
|
|
|
|
|
|
|
|
|
|
|