|
|
@@ -32,7 +32,7 @@ |
|
|
|
</div> |
|
|
|
<!-- 卡片部分 --> |
|
|
|
<div class="page-container"> |
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', customtime.join(','))"> |
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')"> |
|
|
|
<div class="pageboxtitle1">平均接待时长(分钟)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.avgDuration || 0 }}</div> |
|
|
@@ -52,7 +52,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index')"> |
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')"> |
|
|
|
<div class="pageboxtitle1">平均执行率(%)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.fraction || 0 }}</div> |
|
|
@@ -60,7 +60,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ cardlist.sequential.fraction || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="cardlist.liftlist.fraction > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ cardlist.liftlist.fraction || 0 }}% |
|
|
@@ -73,7 +72,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="pagechen"> |
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')"> |
|
|
|
<div class="pageboxtitle1">接待量 (次)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.receptionCount || 0 }}</div> |
|
|
@@ -92,7 +91,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="pagechen"> |
|
|
|
<!-- validInvalid;//是否为有效接待 0:有效 1:无效 --> |
|
|
|
<div |
|
|
|
class="pagechen" |
|
|
|
@click="toDetail('/ReceivingRecords/index', 'validInvalid,0', '接待记录')" |
|
|
|
> |
|
|
|
<div class="pageboxtitle1">有效接待(次)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.activeCustomer || 0 }}</div> |
|
|
@@ -100,7 +103,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ cardlist.sequential.activeCustomer || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.activeCustomer || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="cardlist.liftlist.activeCustomer > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ cardlist.liftlist.activeCustomer || 0 }} |
|
|
@@ -123,7 +125,10 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="margin-top: 20px" class="page-container"> |
|
|
|
<div class="pagechen"> |
|
|
|
<div |
|
|
|
class="pagechen" |
|
|
|
@click="toDetail('/ReceivingRecords/index', 'taboo,1', '接待记录')" |
|
|
|
> |
|
|
|
<div class="pageboxtitle1">违禁接待次数(次)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1"> |
|
|
@@ -133,7 +138,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ cardlist.sequential.prohibitedCustomer || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> --> |
|
|
|
<span |
|
|
|
class="span2-2" |
|
|
|
v-if="cardlist.liftlist.prohibitedCustomer > 0" |
|
|
@@ -151,7 +155,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="pagechen"> |
|
|
|
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')"> |
|
|
|
<div class="pageboxtitle1">违禁接待占比(%)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.prohibitedZb || 0 }}</div> |
|
|
@@ -159,7 +163,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ cardlist.sequential.prohibitedZb || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="cardlist.liftlist.prohibitedZb > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ cardlist.liftlist.prohibitedZb || 0 }}% |
|
|
@@ -171,7 +174,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="pagechen"> |
|
|
|
<div class="pagechen" @click="toDetail('/Statistics/ConsultantBrand', '', '顾问排名')"> |
|
|
|
<div class="pageboxtitle1">顾问(人)</div> |
|
|
|
<div class="pageboxtitle2"> |
|
|
|
<div class="span1">{{ cardlist.datalist.accountNum || 0 }}</div> |
|
|
@@ -179,7 +182,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ cardlist.sequential.accountNum || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="cardlist.liftlist.accountNum > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ cardlist.liftlist.accountNum || 0 }} |
|
|
@@ -548,7 +550,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.equipmentQuantityWithSold || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.avgDuration || 0}}%</span> --> |
|
|
|
<span |
|
|
|
class="span2-2" |
|
|
|
v-if="orderBy.equipmentQuantityWithSold > 0" |
|
|
@@ -574,7 +575,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeEquipmentQuantity || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> --> |
|
|
|
<span |
|
|
|
class="span2-2" |
|
|
|
v-if="orderBy.activeEquipmentQuantity > 0" |
|
|
@@ -601,7 +601,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeUserQuantity || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.activeUserQuantity > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.activeUserQuantity || 0 }} |
|
|
@@ -623,7 +622,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionCount || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionCount > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionCount || 0 }} |
|
|
@@ -643,7 +641,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeCustomer || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.activeCustomer > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.activeCustomer || 0 }} |
|
|
@@ -663,7 +660,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.prohibitedCount || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.prohibitedCount > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.prohibitedCount || 0 }} |
|
|
@@ -683,7 +679,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionTimeWithAvg || 0 }} |
|
|
@@ -703,7 +698,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionTime || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionTime > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionTime || 0 }} |
|
|
@@ -728,7 +722,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionCount || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionCount > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionCount || 0 }} |
|
|
@@ -749,7 +742,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeCustomer || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.activeCustomer > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.activeCustomer || 0 }} |
|
|
@@ -789,7 +781,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionTime || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionTime > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionTime || 0 }} |
|
|
@@ -810,7 +801,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.receptionTimeWithAvg || 0 }} |
|
|
@@ -832,7 +822,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.avgFration || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.avgDuration || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.avgFration > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.avgFration || 0 }}% |
|
|
@@ -853,7 +842,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.prohibitedCount || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.prohibitedCount > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.prohibitedCount || 0 }} |
|
|
@@ -874,7 +862,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeEquipmentQuantity || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> --> |
|
|
|
<span |
|
|
|
class="span2-2" |
|
|
|
v-if="orderBy.activeEquipmentQuantity > 0" |
|
|
@@ -903,7 +890,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeEquipmentQuantityZB || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> --> |
|
|
|
<span |
|
|
|
class="span2-2" |
|
|
|
v-if="orderBy.activeEquipmentQuantityZB > 0" |
|
|
@@ -930,7 +916,6 @@ |
|
|
|
<span class="span2-1"> |
|
|
|
环比:{{ sysCompare.activeHouseQuantity || 0 }}</span |
|
|
|
> |
|
|
|
<!-- <span class="span2-2">{{cardlist.liftlist.activeCustomer || 0}}%</span> --> |
|
|
|
<span class="span2-2" v-if="orderBy.activeHouseQuantity > 0"> |
|
|
|
<i class="el-icon-top" style="color: red"></i> |
|
|
|
{{ orderBy.activeHouseQuantity || 0 }} |
|
|
@@ -1095,6 +1080,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getStore, setStore } from "@/util/store"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
export default { |
|
|
|
name: "Wel", |
|
|
|
data() { |
|
|
@@ -1135,8 +1121,12 @@ export default { |
|
|
|
info: {}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapGetters(["permissions"]), |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
// location.reload(); |
|
|
|
this.role = localStorage.getItem("orgType"); |
|
|
|
this.info = getStore({ name: "userInfo" }); |
|
|
|
if (this.role == 3) { |
|
|
@@ -1151,34 +1141,44 @@ export default { |
|
|
|
this.findProhibitedRecord(); |
|
|
|
// 获取设备 |
|
|
|
this.findAllZkEquipment(); |
|
|
|
} |
|
|
|
// else if(this.role==0){ |
|
|
|
// // 系统 |
|
|
|
// // this.zkhousePage() |
|
|
|
// this.waitingForOperation() |
|
|
|
// } |
|
|
|
// else if(this.role==1){ |
|
|
|
// // 代理商 |
|
|
|
// // this.zkhousePage() |
|
|
|
// } |
|
|
|
else { |
|
|
|
} else { |
|
|
|
// 公司 |
|
|
|
this.waitingForOperation(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 跳转详情 |
|
|
|
toDetail(path, params1 = '', params2 = '') { |
|
|
|
console.log(path); |
|
|
|
console.log(params1) |
|
|
|
if (path == '') return |
|
|
|
toDetail(path, params2 = "", name) { |
|
|
|
if (path == "") return; |
|
|
|
if (!this.hasRoute(name, this.$router.options.routes)) { |
|
|
|
this.$message.error('您没有此权限,请联系管理员添加该菜单权限') |
|
|
|
return |
|
|
|
} |
|
|
|
this.$router.push({ |
|
|
|
path: path, |
|
|
|
query: { |
|
|
|
date: params1, // 筛选时间 |
|
|
|
date: this.customtime.join(","), // 筛选时间 |
|
|
|
types: params2, // 类型 |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 是否存在此路由 |
|
|
|
hasRoute(name, routeList) { |
|
|
|
!routeList && |
|
|
|
((routeList = this.$router.options.routes), console.log("执行")); |
|
|
|
for (let i = 0; i < routeList.length; i++) { |
|
|
|
if (routeList[i].name === name) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
if (routeList[i].children) { |
|
|
|
let flag = this.hasRoute(name, routeList[i].children); |
|
|
|
if (flag) { |
|
|
|
return flag; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
return false; |
|
|
|
}, |
|
|
|
|
|
|
|
goinfo(row) { |
|
|
@@ -1201,8 +1201,6 @@ export default { |
|
|
|
let dang = this.getCurrentTime(); |
|
|
|
let timevt = this.timestampToTime(new Date(dang).getTime() + num); |
|
|
|
let newtime = [dang, timevt]; |
|
|
|
// console.log(newtime) |
|
|
|
// return |
|
|
|
if (ind == 1) { |
|
|
|
this.$router.push({ |
|
|
|
path: "/Customer/AgentManagement", |
|
|
@@ -1435,7 +1433,7 @@ export default { |
|
|
|
confirmtime() { |
|
|
|
this.statDateStart = this.customtime[0]; |
|
|
|
this.statDateEnd = this.customtime[1]; |
|
|
|
console.log(this.customtime) |
|
|
|
console.log(this.customtime); |
|
|
|
this.TimetoAhoose = 5; |
|
|
|
if (this.role == 3) { |
|
|
|
this.getgicd(); |
|
|
|