|
@@ -35,6 +35,19 @@
|
|
</div>
|
|
</div>
|
|
<div class="total">
|
|
<div class="total">
|
|
<div class="total-item">
|
|
<div class="total-item">
|
|
|
|
+ <span class="name">代理公司</span>
|
|
|
|
+ <div class="num">
|
|
|
|
+ <span style="color: #7670D9;">{{ crown_join }}</span>
|
|
|
|
+ <span class="right">
|
|
|
|
+ <span>参赛率</span>
|
|
|
|
+ <span>{{ isNaN(Math.floor((crown_join / crown_total) * 100)) ? 0 : Math.floor((crown_join / crown_total) * 100) }}%</span>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="progress">
|
|
|
|
+ <div :style="{ background: '#7670D9', width: Math.floor((crown_join / crown_total) * 100) + '%' }" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="total-item">
|
|
<span class="name">销售主管</span>
|
|
<span class="name">销售主管</span>
|
|
<div class="num">
|
|
<div class="num">
|
|
<span style="color: #7670D9;">{{ super_join }}</span>
|
|
<span style="color: #7670D9;">{{ super_join }}</span>
|
|
@@ -63,14 +76,14 @@
|
|
<div class="total-item">
|
|
<div class="total-item">
|
|
<span class="name">参赛人数</span>
|
|
<span class="name">参赛人数</span>
|
|
<div class="num">
|
|
<div class="num">
|
|
- <span style="color: #5AC4B6;">{{ super_join + top_join }}</span>
|
|
|
|
|
|
+ <span style="color: #5AC4B6;">{{ super_join + top_join + crown_join }}</span>
|
|
<span class="right">
|
|
<span class="right">
|
|
<span>参赛率</span>
|
|
<span>参赛率</span>
|
|
- <span>{{ isNaN(Math.floor(((super_join + top_join) / (super_total + top_total)) * 100)) ? 0 : Math.floor(((super_join + top_join) / (super_total + top_total)) * 100) }}%</span>
|
|
|
|
|
|
+ <span>{{ isNaN(Math.floor(((super_join + top_join + crown_join) / (super_total + top_total + crown_total)) * 100)) ? 0 : Math.floor(((super_join + top_join + crown_join) / (super_total + top_total + crown_total)) * 100) }}%</span>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="progress">
|
|
<div class="progress">
|
|
- <div :style="{ background: '#5AC4B6', width: Math.floor(((super_join + top_join) / (super_total + top_total)) * 100) + '%' }" />
|
|
|
|
|
|
+ <div :style="{ background: '#5AC4B6', width: Math.floor(((super_join + top_join + crown_join) / (super_total + top_total + crown_total)) * 100) + '%' }" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="total-item">
|
|
<div class="total-item">
|
|
@@ -79,11 +92,11 @@
|
|
<span style="color: #D970D0;">{{ per_num }}</span>
|
|
<span style="color: #D970D0;">{{ per_num }}</span>
|
|
<span class="right">
|
|
<span class="right">
|
|
<span>卖货率</span>
|
|
<span>卖货率</span>
|
|
- <span>{{ isNaN(Math.floor(per_num / (super_join + top_join) * 100)) ? 0 : Math.floor(per_num / (super_join + top_join) * 100) }}%</span>
|
|
|
|
|
|
+ <span>{{ isNaN(Math.floor(per_num / (super_join + top_join + crown_join) * 100)) ? 0 : Math.floor(per_num / (super_join + top_join + crown_join) * 100) }}%</span>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="progress">
|
|
<div class="progress">
|
|
- <div :style="{ background: '#D970D0', width: isNaN(Math.floor(per_num / (super_join + top_join) * 100)) ? 0 : Math.floor(per_num / (super_join + top_join) * 100) + '%' }" />
|
|
|
|
|
|
+ <div :style="{ background: '#D970D0', width: isNaN(Math.floor(per_num / (super_join + top_join + crown_join) * 100)) ? 0 : Math.floor(per_num / (super_join + top_join + crown_join) * 100) + '%' }" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -152,6 +165,8 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ crown_join: 0,
|
|
|
|
+ crown_total: 0,
|
|
super_join: 0,
|
|
super_join: 0,
|
|
super_total: 0,
|
|
super_total: 0,
|
|
top_join: 0,
|
|
top_join: 0,
|
|
@@ -253,6 +268,8 @@ export default {
|
|
this.simple_order_total = res.data.simple_order_total
|
|
this.simple_order_total = res.data.simple_order_total
|
|
this.old_order_total = res.data.old_order_total
|
|
this.old_order_total = res.data.old_order_total
|
|
this.per_num = res.data.per_num
|
|
this.per_num = res.data.per_num
|
|
|
|
+ this.crown_total = res.data.crown_total
|
|
|
|
+ this.crown_join = res.data.crown_join
|
|
})
|
|
})
|
|
},
|
|
},
|
|
testChoosedDate(e) { // 检测所选时间范围是否处于合法范围
|
|
testChoosedDate(e) { // 检测所选时间范围是否处于合法范围
|