This commit is contained in:
Lingzi
2022-03-30 17:54:15 +08:00
81 changed files with 2568 additions and 244 deletions

View File

@ -23,10 +23,44 @@ export class DataService extends BaseService {
// 查询运营报表
$api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;
// 查询业绩报表
$api_listPerformanceReportPage = `/api/sdc/report/listPerformanceReportPage`;
// 运营报表运单状态分布
$api_operationalReportWaybillStatusDistribution = `/api/sdc/report/operationalReportWaybillStatusDistribution`;
// 获取网络货运人
$api_get_network_freight_forwarder_list = `/api/mdc/cuc/networkTransporter/findAll`;
// 业绩报表柱状图
$api_performanceReportHistogram = `/api/sdc/report/performanceReportHistogram`;
constructor(public injector: Injector) {
super(injector);
}
/**
* 获取网络货运人
* @returns
*/
getNetworkFreightForwarder(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
return [];
}
const list = res.map((item: any) => {
return {
label: item.enterpriseName,
value: item.id
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
getPerformanceReportHistogram(params = {}){
return this.request(this.$api_performanceReportHistogram, params)
}
}