Commit 218ff2ac authored by Damon's avatar Damon

refactor: 服务质量数据调整

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