From 094d1cfa4b835ec651211f6a9189bcab060ab52d Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Mon, 4 Jul 2022 19:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Statistics/BuildingContrast.vue | 39 ++ src/views/Statistics/MentoringAbility.vue | 449 +++++++++++------- src/views/Statistics/ReceptionOverview.vue | 41 +- src/views/Statistics/TheTeamCompared.vue | 516 ++++++++++++++++----- src/views/Statistics/index.vue | 302 +++++++++--- 5 files changed, 987 insertions(+), 360 deletions(-) diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index 38ba5fa..2cd7d43 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -373,6 +373,20 @@ export default { this.houseId = localStorage.getItem("houseId"); this.orgCode = localStorage.getItem("orgCode"); this.gethouseData(); + + if (this.TimetoAhoose == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + }, methods: { getSummaries(param) { @@ -638,6 +652,31 @@ export default { //切换时间 tabtimetap(index) { this.TimetoAhoose = index; + if (index == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + + if (index == 6) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } this.statDateStart = ""; this.statDateEnd = ""; this.page = 1; diff --git a/src/views/Statistics/MentoringAbility.vue b/src/views/Statistics/MentoringAbility.vue index c04fc17..aef7f78 100644 --- a/src/views/Statistics/MentoringAbility.vue +++ b/src/views/Statistics/MentoringAbility.vue @@ -52,7 +52,7 @@ -->
筛选日期:
-
+
- +
@@ -114,22 +122,30 @@
-
+
-
接待量 - +
+ 接待量 +
-
+
{{ consultantname }}
{{ datalistobj1.avgA }}次
-
+
{{ Packname }}
{{ datalistobj1.avgB }}次
@@ -143,11 +159,11 @@
接待时长
-
+
{{ consultantname }}
{{ datalistobj2.avgA }}分钟
-
+
{{ Packname }}
{{ datalistobj2.avgB }}分钟
@@ -180,11 +196,11 @@
-
+
{{ consultantname }}
{{ datalistobj3.avgA }}%
-
+
{{ Packname }}
{{ datalistobj3.avgB }}%
@@ -198,26 +214,43 @@
销讲能力雷达图
-
+
 
 
-
+
-
- -
暂无数据
-
+
+ +
暂无数据
+
-
违禁接待次数 - +
+ 违禁接待次数 +
@@ -239,11 +272,11 @@
-
+
{{ consultantname }}
{{ datalistobj5.avgA }}次
-
+
{{ Packname }}
{{ datalistobj5.avgB }}次
@@ -257,19 +290,30 @@
违禁话术雷达图
-
+
 
 
-
-
+
+
+
+
+ +
暂无数据
-
- -
暂无数据
-
-
@@ -287,44 +331,58 @@ style="margin-left: auto; margin-right: 10px" v-if="sta_men_downLoad" > - 导出 + 导出
-
- - - - - - - - + - - - - - + + + + + + + + + + + - - - - - - - - - - - - -
- + + + + + + +
- -
+ + +
@@ -404,7 +464,9 @@
-
暂无数据
+
+ 暂无数据 +
@@ -415,7 +477,7 @@ import * as echarts from "echarts"; import { mapGetters } from "vuex"; import { exportMethodPost } from "@/util/util"; -import colorTheme from "../../util/theme.color" +import colorTheme from "../../util/theme.color"; import color from "../../mixins/color"; export default { data() { @@ -480,8 +542,8 @@ export default { tablist: [], houseList: [], role: "", - data6flag:true, - data4flag:true + data6flag: true, + data4flag: true, }; }, computed: { @@ -498,6 +560,19 @@ export default { } else { this.zkhousePage(); } + + if (this.TimetoAhoose == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } }, methods: { downLoad() { @@ -508,7 +583,11 @@ export default { accountId: this.consultantlistid, dateType: this.TimetoAhoose == 7 ? null : this.TimetoAhoose, }; - exportMethodPost('autoSR/cusStageStatistics/prohibitedStatisticsExport','顾问能力',obj) + exportMethodPost( + "autoSR/cusStageStatistics/prohibitedStatisticsExport", + "顾问能力", + obj + ); }, init() { this.getAccount(); @@ -782,7 +861,7 @@ export default { pamaet.dateType = this.TimetoAhoose; } this.$api.http.accountData(pamaet).then((res) => { - console.log(res.data,'数据'); + console.log(res.data, "数据"); this.datalistobj6 = { listA: res.data.listA || [], listB: res.data.listB || [], @@ -884,8 +963,8 @@ export default { let list = res.data || []; if (list.length == 0) { - this.consultantlist = list - this.consultantlistid='' + this.consultantlist = list; + this.consultantlistid = ""; this.datalistobj1 = { avgA: "", avgB: "", @@ -970,12 +1049,12 @@ export default { legend: { data: [this.consultantname, this.Packname], top: "6", - icon:"roundRect" + icon: "roundRect", }, grid: { left: 10, right: 10, - bottom:18, + bottom: 18, containLabel: true, }, @@ -1003,15 +1082,12 @@ export default { type: "line", smooth: true, areaStyle: { - color: new echarts.graphic.LinearGradient( - 0, 0, 0, 1, - [ - { offset: 0, color: colorTheme.colorArr[0] }, - { offset: 1, color: "#fff" } - ] - ), - opacity: 0.1 - } + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: colorTheme.colorArr[0] }, + { offset: 1, color: "#fff" }, + ]), + opacity: 0.1, + }, }, { name: this.Packname, @@ -1019,15 +1095,12 @@ export default { type: "line", smooth: true, areaStyle: { - color: new echarts.graphic.LinearGradient( - 0, 0, 0, 1, - [ - { offset: 0, color: colorTheme.colorArr[1] }, - { offset: 1, color: "#fff" } - ] - ), - opacity: 0.1 - } + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: colorTheme.colorArr[1] }, + { offset: 1, color: "#fff" }, + ]), + opacity: 0.1, + }, }, ], }; @@ -1138,7 +1211,7 @@ export default { data: [this.consultantname, this.Packname], right: "10", top: "10", - icon:"roundRect" + icon: "roundRect", }, color: ["#2671E2", "#F3787B"], radar: { @@ -1163,20 +1236,18 @@ export default { }, ], }; - try{ - option && myChart.setOption(option); - window.addEventListener("resize", () => { - myChart.resize(); - this[data1+'flag']=true - }); - } - catch(err){ - console.log(err,data1); - this[data1+'flag']=false + try { + option && myChart.setOption(option); + window.addEventListener("resize", () => { + myChart.resize(); + this[data1 + "flag"] = true; + }); + } catch (err) { + console.log(err, data1); + this[data1 + "flag"] = false; echarts.init(document.getElementById(data1)).dispose(); - console.log(this[data1+'flag']); + console.log(this[data1 + "flag"]); } - }, handleCurrentChange(e) { this.current = e; @@ -1195,8 +1266,34 @@ export default { //切换时间 tabtimetap(index) { this.TimetoAhoose = index; + if (index == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + + if (index == 6) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } this.statDateStart = ""; this.statDateEnd = ""; + this.init(); }, tabFlagChange(idx) { @@ -1263,7 +1360,7 @@ export default { .app-top { // width: 100%; width: calc(100% - 270px); - position: fixed; + position: fixed; z-index: 999; margin-top: -16px; background: #ffffff; @@ -1327,8 +1424,8 @@ export default { font-weight: 500; font-size: 16px; color: #333333; - display: flex; - align-items: center; + display: flex; + align-items: center; } .text2 { flex: 1; @@ -1356,8 +1453,8 @@ export default { font-weight: 500; font-size: 16px; color: #333333; - display: flex; - align-items: center; + display: flex; + align-items: center; } .text2 { flex: 1; @@ -1440,40 +1537,40 @@ export default { margin-left: 15px; min-width: 40px; } -.noData{ - width: 100%; - // height: 60vh; - height: 500px; - background: #fff; - text-align: center; - margin-top: 20px; - overflow: hidden; +.noData { + width: 100%; + // height: 60vh; + height: 500px; + background: #fff; + text-align: center; + margin-top: 20px; + overflow: hidden; } -.imgboxc{ +.imgboxc { margin-top: 100px; color: #999999; } -/deep/ .el-table__header-wrapper{ - thead{ - tr{ - th{ - background: #F5F7FA; +/deep/ .el-table__header-wrapper { + thead { + tr { + th { + background: #f5f7fa; color: #333333; } } } } -.pop{ +.pop { display: inline-block; width: 18px; height: 18px; - background: url('../../../public/img/pop.png') no-repeat; + background: url("../../../public/img/pop.png") no-repeat; background-size: 100%; margin-left: 6px; } -/deep/ .el-button--primary{ - background: #2671E2 !important; - border: 1px solid #2671E2 !important; +/deep/ .el-button--primary { + background: #2671e2 !important; + border: 1px solid #2671e2 !important; } diff --git a/src/views/Statistics/ReceptionOverview.vue b/src/views/Statistics/ReceptionOverview.vue index 71248fd..4400fab 100644 --- a/src/views/Statistics/ReceptionOverview.vue +++ b/src/views/Statistics/ReceptionOverview.vue @@ -772,6 +772,19 @@ export default { } else { this.zkhousePage(); } + + if (this.TimetoAhoose == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } }, methods: { // 选项卡切换事件 @@ -1661,9 +1674,35 @@ export default { //时间选择 tabtimetap(index) { this.TimetoAhoose = index; + + + if (index == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + + if (index == 6) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } this.fromobj.statDateStart = ""; this.fromobj.statDateEnd = ""; - this.customtime = []; this.overviewreceptionOverview(); this.overviewreceptionData(); this.overviewteamOrAccountSellingTrends(); diff --git a/src/views/Statistics/TheTeamCompared.vue b/src/views/Statistics/TheTeamCompared.vue index d44a711..899a3cb 100644 --- a/src/views/Statistics/TheTeamCompared.vue +++ b/src/views/Statistics/TheTeamCompared.vue @@ -5,8 +5,18 @@
项目选择:
- - + +
@@ -37,7 +47,7 @@
-->
筛选日期:
-
+
- +
-
+
- - + @@ -88,7 +113,11 @@ - @@ -100,42 +129,97 @@
-
接待量排名 - +
+ 接待量排名 +
-
+
团队总数
{{ teamobj1.num || 0 }}个
-
+
均值
{{ teamobj1.avg || 0 }}个
-
+
- {{ i + 1 }} + {{ i + 1 }}
- + {{ item.name }}
-
-
- +
{{ item.zxl }}个
@@ -143,7 +227,7 @@
-
暂无数据
+
暂无数据
@@ -152,39 +236,90 @@
接待时长排名
-
+
团队总数
{{ teamobj2.num || 0 }}个
-
+
均值
{{ Math.floor(teamobj2.avg / 60) || 0 }}分钟
-
+
- {{ i + 1 }} + {{ i + 1 }}
- + {{ item.name }}
-
-
+
{{ item.zxl }}分钟
@@ -192,7 +327,7 @@
-
暂无数据
+
暂无数据
@@ -203,42 +338,101 @@
销讲执行率
- - + +
-
+
团队总数
{{ teamobj3.num || 0 }}个
-
+
均值
{{ teamobj3.avg || 0 }}%
-
+
- {{ i + 1 }} + {{ i + 1 }}
- + {{ item.name }}
-
-
- +
{{ item.zxl }}%
@@ -246,7 +440,7 @@
-
暂无数据
+
暂无数据
@@ -254,11 +448,15 @@
销讲能力雷达图
-
+
-
暂无数据
+
暂无数据
@@ -267,52 +465,116 @@
-
违禁接待次数 - +
+ 违禁接待次数 +
- - + +
-
+
团队总数
{{ teamobj5.num || 0 }}个
-
+
均值
{{ teamobj5.avg || 0 }}次
-
+
- {{ i + 1 }} + {{ i + 1 }}
- + {{ item.name }}
-
-
- +
{{ item.zxl }}次
@@ -320,7 +582,7 @@
-
暂无数据
+
暂无数据
@@ -328,16 +590,19 @@
违禁话术雷达图
-
+
-
暂无数据
+
暂无数据
-
@@ -400,6 +665,18 @@ export default { } else { this.zkhousePage(); } + if (this.TimetoAhoose == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } }, methods: { downLoad() { @@ -762,7 +1039,7 @@ export default { data: namelist, right: "10", top: "10", - icon:"roundRect" + icon: "roundRect", }, color: ["#2671E2", "#F3787B"], radar: { @@ -826,7 +1103,7 @@ export default { data: namelist, right: "10", top: "10", - icon:"roundRect" + icon: "roundRect", }, color: ["#2671E2", "#F3787B"], radar: { @@ -900,9 +1177,34 @@ export default { //切换时间 tabtimetap(index) { this.TimetoAhoose = index; + + if (index == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + + if (index == 6) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } this.statDateStart = ""; this.statDateEnd = ""; - this.customtime = []; this.allhttp(); }, dealData(arr) { @@ -1035,8 +1337,8 @@ tbody tr { font-weight: 500; font-size: 16px; color: #333333; - display: flex; - align-items: center; + display: flex; + align-items: center; } .text2 { @@ -1067,8 +1369,8 @@ tbody tr { font-weight: 500; font-size: 16px; color: #333333; - display: flex; - align-items: center; + display: flex; + align-items: center; } .text2 { @@ -1156,7 +1458,7 @@ tbody tr { .theadtd { width: 140px; height: 48px; - border-bottom: 1px solid #E0E0E0; + border-bottom: 1px solid #e0e0e0; text-align: center; line-height: 48px; font-size: 16px; @@ -1167,26 +1469,26 @@ tbody tr { flex: 1; } .sequenceNum { - display: flex; - width: 26px; - height: 24px; - justify-content: center; - align-items: center; - background: #E5F0FF; - border-radius: 15px; - color: #333333; - margin-right: 10px; - } - .pop{ + display: flex; + width: 26px; + height: 24px; + justify-content: center; + align-items: center; + background: #e5f0ff; + border-radius: 15px; + color: #333333; + margin-right: 10px; +} +.pop { display: inline-block; width: 18px; height: 18px; - background: url('../../../public/img/pop.png') no-repeat; + background: url("../../../public/img/pop.png") no-repeat; background-size: 100%; margin-left: 6px; } -/deep/ .el-button--primary{ - background: #2671E2 !important; - border: 1px solid #2671E2 !important; +/deep/ .el-button--primary { + background: #2671e2 !important; + border: 1px solid #2671e2 !important; } diff --git a/src/views/Statistics/index.vue b/src/views/Statistics/index.vue index 2645c62..d0c80fa 100644 --- a/src/views/Statistics/index.vue +++ b/src/views/Statistics/index.vue @@ -1,21 +1,30 @@ @@ -152,7 +244,7 @@ import * as echarts from "echarts"; import Router from "../../router/router"; -import colorTheme from "../../util/theme.color" +import colorTheme from "../../util/theme.color"; export default { data() { return { @@ -173,69 +265,102 @@ export default { efficient: "", markCount: "", - noMarkCount: "" + noMarkCount: "", }; }, mounted() { this.zkhousePage(); + + if (this.TimetoAhoose == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } }, methods: { goTo(i) { if (i == 1) { if (this.TimetoAhoose == 6) { - Router.push(`/ReceivingRecords/index?validInvalid=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}` + ); } else { if (this.TimetoAhoose == 0) { - Router.push(`/ReceivingRecords/index?validInvalid=0&dateType=0&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&dateType=0&houseId=${this.houseId}` + ); } else if (this.TimetoAhoose == 4) { - Router.push(`/ReceivingRecords/index?validInvalid=0&dateType=2&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&dateType=2&houseId=${this.houseId}` + ); } else { - Router.push(`/ReceivingRecords/index?validInvalid=0&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&houseId=${this.houseId}` + ); } } - } else if (i == 2) { if (this.TimetoAhoose == 6) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}`); + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}` + ); } else { - if (this.TimetoAhoose == 0) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=0&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=0&houseId=${this.houseId}` + ); } else if (this.TimetoAhoose == 4) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=2&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=2&houseId=${this.houseId}` + ); } else { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&houseId=${this.houseId}` + ); } } - } else { if (this.TimetoAhoose == 6) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:5'&houseId=${this.houseId}`); + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:5'&houseId=${this.houseId}` + ); } else { if (this.TimetoAhoose == 0) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=0&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=0&houseId=${this.houseId}` + ); } else if (this.TimetoAhoose == 4) { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=2&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=2&houseId=${this.houseId}` + ); } else { - Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&houseId=${this.houseId}`) + Router.push( + `/ReceivingRecords/index?validInvalid=0&markAdvisor=0&houseId=${this.houseId}` + ); } } } }, backTop() { - $('#avue-view').scrollTop(0) + $("#avue-view").scrollTop(0); }, movePlace(index) { if (index == 0) { - return + return; } else { var as55 = this.objlist[index - 1].id; - var shu = '#ids' + as55; - $('#avue-view').scrollTop(($(shu).offset().top) - 200) + var shu = "#ids" + as55; + $("#avue-view").scrollTop($(shu).offset().top - 200); } }, - houseChange() { this.getorgCode(); }, @@ -280,9 +405,34 @@ export default { //切换时间 tabtimetap(index) { this.TimetoAhoose = index; + + if (index == 4) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } + + if (index == 6) { + let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; + let startDate = `${new Date(starTime).getFullYear()}-${ + new Date(starTime).getMonth() + 1 + }-${new Date(starTime).getDate()}`; + let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; + let endDate = `${new Date(endTime).getFullYear()}-${ + new Date(endTime).getMonth() + 1 + }-${new Date(endTime).getDate()}`; + + this.customtime = [startDate, endDate]; + } this.fromobj.starttime = ""; this.fromobj.endoftime = ""; - this.customtime = []; this.getorgCode(); }, //初始化 @@ -307,9 +457,9 @@ export default { this.objlist = res.data.list; this.alllist = [{ name: "有效接待", num: res.data.total }]; - this.efficient = res.data.total - this.markCount = res.data.markCount - this.noMarkCount = res.data.noMarkCount + this.efficient = res.data.total; + this.markCount = res.data.markCount; + this.noMarkCount = res.data.noMarkCount; res.data.list.forEach((item, index) => { this.alllist.push({ @@ -395,7 +545,7 @@ export default { width: 40px; height: 40px; border-radius: 50%; - background: #D0EDFF; + background: #d0edff; position: fixed; bottom: 40px; right: 40px; @@ -550,7 +700,7 @@ export default { display: flex; } -.table-tit>div:nth-of-type(1) { +.table-tit > div:nth-of-type(1) { width: 10%; text-align: center; font-size: 16px; @@ -559,7 +709,7 @@ export default { color: #606775; } -.table-tit>div:nth-of-type(2) { +.table-tit > div:nth-of-type(2) { width: 40%; text-align: center; font-size: 16px; @@ -568,7 +718,7 @@ export default { color: #606775; } -.table-tit>div:nth-of-type(3) { +.table-tit > div:nth-of-type(3) { width: 25%; text-align: center; font-size: 16px; @@ -577,7 +727,7 @@ export default { color: #606775; } -.table-tit>div:nth-of-type(4) { +.table-tit > div:nth-of-type(4) { width: 25%; text-align: center; font-size: 16px; @@ -594,7 +744,7 @@ export default { margin-top: 18px; } -.table-cent>div:nth-of-type(1) { +.table-cent > div:nth-of-type(1) { width: 10%; text-align: center; font-size: 14px; @@ -602,7 +752,7 @@ export default { color: #32363d; } -.table-cent>div:nth-of-type(2) { +.table-cent > div:nth-of-type(2) { width: 40%; text-align: center; font-size: 14px; @@ -610,7 +760,7 @@ export default { color: #32363d; } -.table-cent>div:nth-of-type(3) { +.table-cent > div:nth-of-type(3) { width: 25%; text-align: center; font-size: 14px; @@ -618,7 +768,7 @@ export default { color: #32363d; } -.table-cent>div:nth-of-type(4) { +.table-cent > div:nth-of-type(4) { width: 25%; text-align: center; font-size: 14px; @@ -683,8 +833,8 @@ export default { } } } -/deep/ .el-button--primary{ - background: #2671E2 !important; - border: 1px solid #2671E2 !important; +/deep/ .el-button--primary { + background: #2671e2 !important; + border: 1px solid #2671e2 !important; }
+
{{ item.name }}
{{ item.fraction || 0 }}% {{ item.prohibitedZb || 0 }}% + {{ che.zxl }}%