task#14196,率*100保留两位小数

This commit is contained in:
2024-07-08 19:05:07 +08:00
parent f38e2ce614
commit b80a748dc9

View File

@ -742,14 +742,14 @@ export default {
});
this.indexData = res.data;
this.supplierName=res.data?.supplierName
this.indexData.refuseOrderRate=this.indexData.refuseOrderRate*100
this.indexData.timeoutOrderRate=this.indexData.timeoutOrderRate*100
this.indexData.complainOrderRate=this.indexData.complainOrderRate*100
this.indexData.customerSatisfaction=this.indexData.customerSatisfaction*100
this.indexData.threeMinutesContactRate=this.indexData.threeMinutesContactRate*100
this.indexData.urgeRate=this.indexData.urgeRate*100
this.indexData.appRate=this.indexData.appRate*100
this.indexData.polymerizationSuccessRate=this.indexData.polymerizationSuccessRate*100
this.indexData.refuseOrderRate=this.indexData.refuseOrderRate*100?.toFixed(2)
this.indexData.timeoutOrderRate=this.indexData.timeoutOrderRate*100?.toFixed(2)
this.indexData.complainOrderRate=this.indexData.complainOrderRate*100?.toFixed(2)
this.indexData.customerSatisfaction=this.indexData.customerSatisfaction*100?.toFixed(2)
this.indexData.threeMinutesContactRate=this.indexData.threeMinutesContactRate*100?.toFixed(2)
this.indexData.urgeRate=this.indexData.urgeRate*100?.toFixed(2)
this.indexData.appRate=this.indexData.appRate*100?.toFixed(2)
this.indexData.polymerizationSuccessRate=this.indexData.polymerizationSuccessRate*100?.toFixed(2)
} else if ([1, 2].includes(this.active)) {
let res = await getStatisticsKpi({
startTime: this.active === 1 ? this.startMonthTime : this.startTime,
@ -758,21 +758,21 @@ export default {
supplierId: this.supplierId,
})
this.detailList = res.data?.map(item => {
item.refuseOrderRate=item.refuseOrderRate*100+'%'
item.timeoutOrderRate=item.timeoutOrderRate*100+'%'
item.cancelRate=item.cancelRate*100+'%'
item.urgeRate=item.urgeRate*100+'%'
item.complainOrderRate=item.complainOrderRate*100+'%'
item.customerEvaluateRate=item.customerEvaluateRate*100+'%'
item.appRate=item.appRate*100+'%'
item.threeMinutesContactRate=item.threeMinutesContactRate*100+'%'
item.pinganPolymerizationSuccessRate=item.pinganPolymerizationSuccessRate*100+'%'
item.zhonghuaPolymerizationSuccessRate=item.zhonghuaPolymerizationSuccessRate*100+'%'
item.zdPolymerizationSuccessRate=item.zdPolymerizationSuccessRate*100+'%'
item.polymerizationSuccessRate=item.polymerizationSuccessRate*100+'%'
item.threeMinutesReceivingRate=item.threeMinutesReceivingRate*100+'%'
item.fortyMinutesArrivalRate=item.fortyMinutesArrivalRate*100+'%'
item.customerSatisfaction=item.customerSatisfaction*100+'%'
item.refuseOrderRate=item.refuseOrderRate*100?.toFixed(2)+'%'
item.timeoutOrderRate=item.timeoutOrderRate*100?.toFixed(2)+'%'
item.cancelRate=item.cancelRate*100?.toFixed(2)+'%'
item.urgeRate=item.urgeRate*100?.toFixed(2)+'%'
item.complainOrderRate=item.complainOrderRate*100?.toFixed(2)+'%'
item.customerEvaluateRate=item.customerEvaluateRate*100?.toFixed(2)+'%'
item.appRate=item.appRate*100?.toFixed(2)+'%'
item.threeMinutesContactRate=item.threeMinutesContactRate*100?.toFixed(2)+'%'
item.pinganPolymerizationSuccessRate=item.pinganPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.zhonghuaPolymerizationSuccessRate=item.zhonghuaPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.zdPolymerizationSuccessRate=item.zdPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.polymerizationSuccessRate=item.polymerizationSuccessRate*100?.toFixed(2)+'%'
item.threeMinutesReceivingRate=item.threeMinutesReceivingRate*100?.toFixed(2)+'%'
item.fortyMinutesArrivalRate=item.fortyMinutesArrivalRate*100?.toFixed(2)+'%'
item.customerSatisfaction=item.customerSatisfaction*100?.toFixed(2)+'%'
let formatVal = dayjs(item.statisticsDate).format('DD');
let formatVal1 = dayjs(item.statisticsDate).format('M');
return {...item, date: formatVal, month: (formatVal1 == this.current) ? '本月' : (formatVal1 + '月')};
@ -794,22 +794,22 @@ export default {
})
// this.detailList = res.data
this.detailList = res.data?.map(item => {
item.refuseOrderRate=item.refuseOrderRate*100+'%'
item.timeoutOrderRate=item.timeoutOrderRate*100+'%'
item.cancelRate=item.cancelRate*100+'%'
item.complainOrderRate=item.complainOrderRate*100+'%'
item.customerEvaluateRate=item.customerEvaluateRate*100+'%'
item.appRate=item.appRate*100+'%'
item.threeMinutesContactRate=item.threeMinutesContactRate*100+'%'
item.pinganPolymerizationSuccessRate=item.pinganPolymerizationSuccessRate*100+'%'
item.zhonghuaPolymerizationSuccessRate=item.zhonghuaPolymerizationSuccessRate*100+'%'
item.zdPolymerizationSuccessRate=item.zdPolymerizationSuccessRate*100+'%'
item.polymerizationSuccessRate=item.polymerizationSuccessRate*100+'%'
item.threeMinutesReceivingRate=item.threeMinutesReceivingRate*100+'%'
item.fortyMinutesArrivalRate=item.fortyMinutesArrivalRate*100+'%'
item.trailFortyMinutesArrivalRate=item.trailFortyMinutesArrivalRate*100+'%'
item.minorFortyMinutesArrivalRate=item.minorFortyMinutesArrivalRate*100+'%'
item.customerSatisfaction=item.customerSatisfaction*100+'%'
item.refuseOrderRate=item.refuseOrderRate*100?.toFixed(2)+'%'
item.timeoutOrderRate=item.timeoutOrderRate*100?.toFixed(2)+'%'
item.cancelRate=item.cancelRate*100?.toFixed(2)+'%'
item.complainOrderRate=item.complainOrderRate*100?.toFixed(2)+'%'
item.customerEvaluateRate=item.customerEvaluateRate*100?.toFixed(2)+'%'
item.appRate=item.appRate*100?.toFixed(2)+'%'
item.threeMinutesContactRate=item.threeMinutesContactRate*100?.toFixed(2)+'%'
item.pinganPolymerizationSuccessRate=item.pinganPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.zhonghuaPolymerizationSuccessRate=item.zhonghuaPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.zdPolymerizationSuccessRate=item.zdPolymerizationSuccessRate*100?.toFixed(2)+'%'
item.polymerizationSuccessRate=item.polymerizationSuccessRate*100?.toFixed(2)+'%'
item.threeMinutesReceivingRate=item.threeMinutesReceivingRate*100?.toFixed(2)+'%'
item.fortyMinutesArrivalRate=item.fortyMinutesArrivalRate*100?.toFixed(2)+'%'
item.trailFortyMinutesArrivalRate=item.trailFortyMinutesArrivalRate*100?.toFixed(2)+'%'
item.minorFortyMinutesArrivalRate=item.minorFortyMinutesArrivalRate*100?.toFixed(2)+'%'
item.customerSatisfaction=item.customerSatisfaction*100?.toFixed(2)+'%'
let formatVal = dayjs(item.statisticsDate).format('DD');
return {...item, date: formatVal};
});