diff --git a/src/api/kpi.js b/src/api/kpi.js index 93229db1..0a00c35f 100644 --- a/src/api/kpi.js +++ b/src/api/kpi.js @@ -36,6 +36,24 @@ export function getKpiDetailsData(data){ data }) } +// 获取近12个月的服务商数据 +export function queryRecentSupplierStatisticsKpi(data){ + return request({ + url: '/supplier/supplierKPI/queryRecentSupplierStatisticsKpi', + method:'POST', + // contentType: 'application/json', + data + }) +} +// 司机分数详情 +export function driverScoreDetail(data){ + return request({ + url: '/supplier/supplierKPI/querySupplierDriverStatisticsScore', + method:'POST', + // contentType: 'application/json', + data + }) +} // 关键词搜索服务商名称 export function getSupplierId(key) { return request({ diff --git a/src/views/kpi/kpiIndex.vue b/src/views/kpi/kpiIndex.vue index 767292f1..663b6b57 100644 --- a/src/views/kpi/kpiIndex.vue +++ b/src/views/kpi/kpiIndex.vue @@ -27,7 +27,6 @@ :value="item.id"> - @@ -141,6 +140,17 @@
+
、 +
+ + + +
+
@@ -335,20 +345,16 @@ export default { showScoreChart:true } }, - async mounted() { - await this.checkMobile(); - await this.initDate(); - await this.getData(); - }, created() { this.checkMobile(); const urlParams = new URLSearchParams(window.location.search); this.isZd = urlParams?.get('isZd') || '' - /* if(!this.isMobile && this.isZd && this.isZd==1){ - this.supplierId='1127' - }*/ + this.supplierId = urlParams?.get('supplierId') || '' }, - async activated() { + async mounted() { + await this.checkMobile(); + await this.initDate(); + await this.getData(); }, methods: { async selectSupplierNameHanldle(){ @@ -394,9 +400,6 @@ export default { this.driverselectOption = []; } }, - async searchHandle() {//web端服务商搜索操作 - console.log("搜索按钮") - }, async changeHandle() { this.v1=[] this.v2=[] @@ -855,6 +858,9 @@ export default { statisticsType: 1, supplierId: this.supplierId, }); + if(!res.data){ + return + } this.indexData = res.data; this.supplierName=res.data?.supplierName this.indexData.refuseOrderRate=this.indexData.refuseOrderRate*100 @@ -1010,7 +1016,6 @@ export default { {label: '投诉类型', prop: 'complainTypeString'}, ] } else if (this.active === 8) {//不使用App案件明细 - // console.log("不使用App案件明细") this.labelList = [ {label: '案件编号', prop: 'orderCode'}, {label: '服务内容', prop: 'serviceName'}, @@ -1052,7 +1057,6 @@ export default { this.startTime = dayjs(new Date()).format('YYYY-MM') + '-01 00:00:00' this.endTime = dayjs(new Date()).format('YYYY-MM') + '-' + this.getDayLen()+' 23:59:59' this.startMonthTime=this.getStartTimeFromEndTime(this.endTime) - console.log(this.startTime,this.endTime,this.startMonthTime) }, // 获取当月天数 getDayLen() { @@ -1200,13 +1204,11 @@ export default { this.v2.push(item.threeMinutesReceivingRate.replace('%', '')) }) } else { - console.log(" this.detailList师傅接单时效", this.detailList) this.detailList?.map(item => { this.v1.push(item.arriving) this.v2.push(item.polymerizationSuccessArriving) this.v3.push(item.fortyMinutesArrivalRate.replace('%', '')) }) - console.log("this.v1",this.v1,this.v2,this.v3) } this.detailList?.map((item,index) => { const columnObj = {}