@@ -617,6 +629,9 @@ export default {
activeName: localStorage.getItem("activeName") || "0", // 顾问选项卡选中变量值
activeIndex: localStorage.getItem("activeIndex") || "", // 系统访问来源的下标
+
+ templateList: [], // 销讲业务列表
+ marketingBusiness: [], // 选中的销讲业务
};
},
watch: {
@@ -641,6 +656,7 @@ export default {
this.overviewreceptionOverviewZxl();
this.overviewteamOrAccountSellingTrends();
this.overviewteamOrAccountSellingTrends1();
+ this.getMarketingBusiness()
} else {
this.zkhousePage();
}
@@ -659,6 +675,17 @@ export default {
}
},
methods: {
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$api.http
+ .marketingBusiness({ houseId: this.houseId })
+ .then((res) => {
+ console.log(res);
+ if (res.code == 10000) {
+ this.templateList = res.data;
+ }
+ });
+ },
// 选项卡切换事件
handleClick(tab) {
this.activeName = tab;
@@ -735,6 +762,7 @@ export default {
dateType: this.TimetoAhoose,
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -760,6 +788,7 @@ export default {
dateType: this.TimetoAhoose,
type: this.activeName,
...this.fromobj,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1000,6 +1029,7 @@ export default {
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
flag: this.activeIndex,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1042,6 +1072,7 @@ export default {
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
deptId: this.departmentsri,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1070,6 +1101,7 @@ export default {
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
accountId: this.consultantsri,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1131,6 +1163,7 @@ export default {
dateType: this.TimetoAhoose,
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1149,6 +1182,7 @@ export default {
dateType: this.TimetoAhoose,
statDateStart: this.fromobj.statDateStart,
statDateEnd: this.fromobj.statDateEnd,
+ marketingBusiness: this.marketingBusiness.join(','),
};
if (this.TimetoAhoose == 8) {
parmo.dateType = null;
@@ -1566,6 +1600,17 @@ export default {
this.systemAccessranking();
this.overviewreceptionOverviewZxl();
},
+
+ packtaps() {
+ this.overviewreceptionOverview();
+ this.overviewreceptionData();
+ this.overviewteamOrAccountSellingTrends();
+ this.overviewteamOrAccountSellingTrends1();
+ this.overviewreceptionRanking();
+ this.systemAccessranking();
+ this.overviewreceptionOverviewZxl();
+ },
+
// 计算百分比
dealData(arr) {
let num = Math.max.apply(