Commit 218ff2ac authored by Damon's avatar Damon

refactor: 服务质量数据调整

parent 03e074a4
......@@ -133,7 +133,7 @@
},
{
pathName: 'portrait/index',
title: '订单数据',
title: '服务质量',
value: '',
icon: 'dingdanshuju.png',
imageStyle: 'width:32rpx;height:32rpx'
......
......@@ -45,7 +45,7 @@
</view>
</view>
<view class="top_desc">
<!-- <view class="top_desc">
<view class="text-gray">综合评分</view>
<view class="remaining">{{ info.score }}</view>
<view class="u-flex head_block">
......@@ -62,7 +62,7 @@
<text class="income">{{ info.totalTodoCont }}</text>
</view>
</view>
</view>
</view> -->
<!-- 服务时效 -->
<view class="view_block">
......@@ -84,7 +84,7 @@ export default {
},
data() {
return {
title: '订单数据', //标题
title: '服务质量', //标题
showDataTime: 'today', //选中的时间
tabCur: 0, //标签头下标
topBar: 17, //导航高
......@@ -173,7 +173,7 @@ export default {
this.$u.api.getWorkerData().then(res => {
const data = res.data || {}
if (data) {
const score = (20 * data.takeRate) + (20 * data.auditRate) + (20 * data.checkRate) + (20 * data.takeRate) + (20 * (data.totalFinishCount / data.totalAllocateCount))
const score = (20 * data.takeRate) + (20 * data.auditRate) + (20 * data.checkRate) + (20 * data.appRate) + (20 * (data.totalFinishCount / data.totalAllocateCount))
const info = {
totalAllocateCount: data.totalAllocateCount,
totalFinishCount: data.totalFinishCount,
......@@ -182,7 +182,7 @@ export default {
auditRate: parseInt(data.auditRate * 100),
checkRate: parseInt(data.checkRate * 100),
takeRate: parseInt(data.takeRate * 100),
score: parseInt(score) || 0
score: score ? score.toFixed(2) : 0
}
// 基础数据
this.CircleData = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment