task#,添加师傅满意度接口更换

This commit is contained in:
2024-12-25 17:29:22 +08:00
parent 43c1f76f82
commit cd02c44fca
2 changed files with 38 additions and 10 deletions

View File

@ -27,6 +27,14 @@ export function getDriverStatisticsKpi(data){
data data
}) })
} }
export function querySupplierDriverStatisticsScore(data){
return request({
url: '/supplier/supplierKPI/querySupplierDriverStatisticsScore',
method:'POST',
// contentType: 'application/json',
data
})
}
// 各种详情数据 // 各种详情数据
export function getKpiDetailsData(data){ export function getKpiDetailsData(data){
return request({ return request({

View File

@ -274,7 +274,7 @@ import {
getDriverStatisticsKpi, getDriverStatisticsKpi,
getSupplierId, getSupplierId,
getDriverName, getDriverName,
getRecentSupplierKpi getRecentSupplierKpi, querySupplierDriverStatisticsScore
} from "@/api/kpi.js" } from "@/api/kpi.js"
import {myMixins} from "@/utils/myMixins" import {myMixins} from "@/utils/myMixins"
import CircleChar from "@/views/kpi/components/circleChar.vue"; import CircleChar from "@/views/kpi/components/circleChar.vue";
@ -1037,11 +1037,33 @@ export default {
// console.log(" this.xAxisArr", this.xAxisArr) // console.log(" this.xAxisArr", this.xAxisArr)
// this.xAxisArr[this.xAxisArr.length - 1] = '本月' // this.xAxisArr[this.xAxisArr.length - 1] = '本月'
await this.twoTabHanldeData() await this.twoTabHanldeData()
} else if ([3,4,5].includes(this.active)) { }else if (this.active === 3) {
let res = await querySupplierDriverStatisticsScore({
startTime: this.startTime ,
endTime: this.endTime,
statisticsType: 1,
supplierId: this.supplierId,
driverId: this.driverId,
driverName:this.driverName,
pageNum: this.pageNum,
pageSize: this.pageSize
})
this.total = res.total
this.detailList = res.data?.map(item => {
let formatVal = dayjs(item.statisticsDate).format('DD');
return {...item, date: formatVal};
});
this.labelList = [
{label: '师傅姓名', prop: 'driverName'},
{label: '案件总量', prop: 'orderCount'},
{label: '满意度得分 ', prop: 'driverSatisfaction'},
]
this.loading = false;
}else if ([4,5].includes(this.active)) {
let res = await getDriverStatisticsKpi({ let res = await getDriverStatisticsKpi({
startTime: this.startTime , startTime: this.startTime ,
endTime: this.endTime, endTime: this.endTime,
statisticsType: (this.active === 3 || this.active === 4) ? 1 : 2, statisticsType:this.active === 4 ? 1 : 2,
supplierId: this.supplierId, supplierId: this.supplierId,
driverId: this.driverId, driverId: this.driverId,
driverName:this.driverName, driverName:this.driverName,
@ -1406,13 +1428,11 @@ export default {
{label: '聚合成功到达时效(分)', prop: 'polymerizationSuccessArriving'}, {label: '聚合成功到达时效(分)', prop: 'polymerizationSuccessArriving'},
] ]
} }
} else if(this.active === 3){ }
this.labelList = [ /* else if(this.active === 3){
{label: '师傅姓名', prop: 'driverName'},
{label: '案件总量', prop: 'orderCount'}, } */
{label: '满意度得分 ', prop: 'driverSatisfaction'}, else if (this.active === 4) {
]
} else if (this.active === 4) {
if (this.activeIndex === 0) { if (this.activeIndex === 0) {
this.labelList = [ this.labelList = [
{label: '师傅姓名', prop: 'driverName'}, {label: '师傅姓名', prop: 'driverName'},