-
+
{{ 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"
>
-
导出
+
导出
-
-
-
-
- {{
- scope.$index == tableData.length - 1
- ? "合计/平均"
- : scope.row.statDate.substring(0, 10)
- }}
-
-
-
-
-
- {{ row.activeCustomer }}次
-
-
-
+
-
- {{ row.prohibitedCustomer }}次
-
-
-
- {{ row.prohibitedZb }}%
-
+
+
+
+
+ {{ row.activeCustomer }}次
+
+
+
+
+ {{ row.prohibitedCustomer }}次
+
+
+
+
+ {{ row.prohibitedZb }}%
+
+
-
-
-
- {{ row.sumDuration }}分钟
-
-
-
-
- {{ row.fraction }}%
-
-
-
- {{ row[item.props] }}次
- {{ row[item.props] }}%
-
-
-
-
-
-
+ {{ row.fraction }}%
+
+
+
+ {{ row[item.props] }}次
+ {{ row[item.props] }}%
+
+
+
+
+
-
-
+
+
+
@@ -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 @@
-->
-
+
-
-
+ |
+
{{ item.name }}
|
@@ -88,7 +113,11 @@
{{ item.fraction || 0 }}% |
{{ item.prohibitedZb || 0 }}% |
-
+ |
{{ che.zxl }}%
|
@@ -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 @@
-
+
-
- 项目选择:
+
项目选择:
-
-
+
+
-
接待时间:
-
+
接待时间:
+
-
-
- {{ efficient || '-' }}
+
+
+ {{ efficient || "-" }}
有效接待
-
- {{ markCount || '-' }}
+
+ {{ markCount || "-" }}
已标顾问
-
- {{ noMarkCount || '-' }}
+
+ {{ noMarkCount || "-" }}
未标顾问
@@ -70,20 +112,29 @@
客群特征总览
-
+
{{ item.name }}
{{ item.num }}
@@ -100,24 +151,49 @@
触达占比
沟通记录
-
+ "
+ >
暂无数据
-
-
+
-
-
-
+ "
+ >
+
+
+
{{ inde + 1 }}
@@ -128,22 +204,38 @@
{{ itcen.name }}({{ itcen.total }})
{{ itcen.proportion }}%
-
-
-
+
+
-
+
@@ -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;
}