From b247bf80e7f32116ea98921faa6d3a6d4b791d8e Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Wed, 8 Feb 2023 13:59:10 +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/page/wel.vue | 87 +++- src/views/Customer/index.vue | 2 +- src/views/ReceivingRecords/index.vue | 5 +- src/views/Statistics/ConsultantBrand.vue | 39 ++ src/views/Statistics/MentoringAbility.vue | 60 +++ src/views/Statistics/ReceptionStatistical.vue | 40 +- src/views/Statistics/TheTeamCompared.vue | 92 ++-- src/views/Statistics/TrendAnalysis.vue | 477 ++++++++++++------ src/views/Statistics/index.vue | 171 +++++-- src/views/Template/Pinspeakwords.vue | 2 +- src/views/Template/table.js | 16 +- 11 files changed, 754 insertions(+), 237 deletions(-) diff --git a/src/page/wel.vue b/src/page/wel.vue index 38cfae9..93a7ea5 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -33,6 +33,27 @@ > +
@@ -508,11 +529,17 @@ 环比:{{ cardlist.sequential.wordFractionHb || 0 }} - + +{{ cardlist.liftlist.wordFractionHb || 0 }}% - + {{ cardlist.liftlist.wordFractionHb || 0 }}% @@ -569,11 +596,17 @@ 环比:{{ cardlist.sequential.wordFinishFractionHb || 0 }} - + +{{ cardlist.liftlist.wordFinishFractionHb || 0 }}% - + {{ cardlist.liftlist.wordFinishFractionHb || 0 }}% @@ -2236,6 +2269,8 @@ export default { list: [], fraction: "", }, + templateList: [], // 销讲业务列表 + marketingBusiness: [], // 选中的销讲业务 }; }, @@ -2325,6 +2360,8 @@ export default { this.findProhibitedRecord(); // 获取设备 this.findAllZkEquipment(); + + this.getMarketingBusiness(); } else { // 公司 this.waitingForOperation(); @@ -2534,6 +2571,7 @@ export default { startDate: this.statDateStart, endDate: this.statDateEnd, orgType: localStorage.getItem("orgType"), + marketingBusiness: this.marketingBusiness.join(","), }; if (this.role == 1) { obj.agentId = localStorage.getItem("agentId") / 1; @@ -2614,6 +2652,19 @@ export default { this.findAllZkEquipment(); }); }, + + // 获取销讲业务 + getMarketingBusiness() { + this.$api.http + .marketingBusiness({ houseId: this.houseId }) + .then((res) => { + console.log(res, '的萨克角度看待'); + if (res.code == 10000) { + this.templateList = res.data; + } + }); + }, + //获取卡片数据 getgicd() { let obj = { @@ -2621,11 +2672,13 @@ export default { dateType: this.TimetoAhoose == 5 ? null : this.TimetoAhoose, statDateStart: this.statDateStart, statDateEnd: this.statDateEnd, + + marketingBusiness: this.marketingBusiness.join(","), }; this.$api.http.houseIndex(obj).then((res) => { - this.cardlist.datalist = res.data.todayStat - this.cardlist.liftlist = res.data.comparedStat - this.cardlist.sequential = res.data.yesterdayStat + this.cardlist.datalist = res.data.todayStat; + this.cardlist.liftlist = res.data.comparedStat; + this.cardlist.sequential = res.data.yesterdayStat; }); }, //获取设备 @@ -2635,6 +2688,8 @@ export default { .findAllZkEquipment({ onLine: this.classatec, houseId: this.houseId, + + marketingBusiness: this.marketingBusiness.join(","), }) .then((res) => { // 在这里赋值 低电 @@ -2652,6 +2707,8 @@ export default { dateType: this.TimetoAhoose == 5 ? null : this.TimetoAhoose, statDateStart: this.statDateStart, statDateEnd: this.statDateEnd, + + marketingBusiness: this.marketingBusiness.join(","), }) .then((res) => { this.prohibitedlist = res.data; @@ -2665,6 +2722,8 @@ export default { dateType: this.TimetoAhoose == 5 ? null : this.TimetoAhoose, statDateStart: this.statDateStart, statDateEnd: this.statDateEnd, + + marketingBusiness: this.marketingBusiness.join(","), }) .then((res) => { this.indexZxllist = res.data.list || []; @@ -2682,6 +2741,8 @@ export default { dateType: this.TimetoAhoose == 5 ? null : this.TimetoAhoose, statDateStart: this.statDateStart, statDateEnd: this.statDateEnd, + + marketingBusiness: this.marketingBusiness.join(","), }) .then((res) => { this.employeeExecutionRatelist = res.data; @@ -2728,6 +2789,18 @@ export default { this.waitingForOperation(); } }, + + confirmtimes() { + if (this.role == 3) { + this.getgicd(); + this.getindexZxllist(); + this.getemployeeExecutionRatelist(); + this.findProhibitedRecord(); + } else { + this.waitingForOperation(); + } + } + }, }; diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index bcce4fd..4885fce 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -803,7 +803,7 @@ export default { this.houseChange(); // 获取销讲业务 - // this.getMarketingBusiness(); + this.getMarketingBusiness(); }); }, // 置业顾问列表 diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index 6b26060..fcbd914 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -300,7 +300,7 @@ >
-
+
销讲业务:
+ +
@@ -949,6 +973,9 @@ export default { num5: "", houseList: [], role: "", + + templateList: [], // 销讲业务列表 + marketingBusiness: "", // 选中的销讲业务 }; }, computed: { @@ -979,11 +1006,23 @@ export default { this.tabtimetap(this.dateType); this.deptFindList(); this.teamAllLeve(); + this.getMarketingBusiness(); } else { this.zkhousePage(); } }, methods: { + // 获取销讲业务 + getMarketingBusiness() { + this.$api.http + .marketingBusiness({ houseId: this.houseId }) + .then((res) => { + console.log(res); + if (res.code == 10000) { + this.templateList = res.data; + } + }); + }, // 排序触发 customTabLast(e) { console.log(e); diff --git a/src/views/Statistics/MentoringAbility.vue b/src/views/Statistics/MentoringAbility.vue index cc6b980..6f09519 100644 --- a/src/views/Statistics/MentoringAbility.vue +++ b/src/views/Statistics/MentoringAbility.vue @@ -92,6 +92,30 @@ + + + + @@ -497,6 +521,9 @@ export default { role: "", data6flag: true, data4flag: true, + + templateList: [], // 销讲业务列表 + marketingBusiness: [], // 选中的销讲业务 }; }, computed: { @@ -510,6 +537,7 @@ export default { if (this.role == 3) { this.houseId = localStorage.getItem("houseId"); this.init(); + this.getMarketingBusiness() } else { this.zkhousePage(); } @@ -528,6 +556,18 @@ export default { } }, methods: { + + // 获取销讲业务 + getMarketingBusiness() { + this.$api.http + .marketingBusiness({ houseId: this.houseId }) + .then((res) => { + console.log(res); + if (res.code == 10000) { + this.templateList = res.data; + } + }); + }, downLoad() { let obj = { houseId: this.houseId, @@ -572,6 +612,7 @@ export default { userA: this.consultantlistid, userB: this.Pklistid, type: 1, + marketingBusiness: this.marketingBusiness.join(','), }; if (this.TimetoAhoose == 7) { pamaet.dateType = null; @@ -610,6 +651,8 @@ export default { size: this.size, accountId: this.consultantlistid, dateType: this.TimetoAhoose == 7 ? null : this.TimetoAhoose, + marketingBusiness: this.marketingBusiness.join(','), + }) .then((res) => { this.tableData = res.data.records; @@ -664,6 +707,8 @@ export default { userA: this.consultantlistid, userB: this.Pklistid, type: 2, + marketingBusiness: this.marketingBusiness.join(','), + }; if (this.TimetoAhoose == 7) { pamaet.dateType = null; @@ -739,6 +784,7 @@ export default { statDateEnd: this.statDateEnd, userA: this.consultantlistid, userB: this.Pklistid, + marketingBusiness: this.marketingBusiness.join(','), type: 4, }; if (this.TimetoAhoose == 7) { @@ -774,6 +820,7 @@ export default { userA: this.consultantlistid, userB: this.Pklistid, type: 5, + marketingBusiness: this.marketingBusiness.join(','), words: this.teamAllLeve2id, }; if (this.TimetoAhoose == 7) { @@ -809,6 +856,7 @@ export default { statDateStart: this.statDateStart, statDateEnd: this.statDateEnd, userA: this.consultantlistid, + marketingBusiness: this.marketingBusiness.join(','), userB: this.Pklistid, type: 6, }; @@ -871,6 +919,16 @@ export default { this.accountData6(); }, + + packtaps() { + this.accountData1(); + this.accountData2(); + this.accountData3(); + this.accountData4(); + this.accountData5(); + this.accountData6(); + }, + // 获取一级 teamAllLeve() { this.teamAllLevel = [{ name: "平均执行", value: "" }]; @@ -879,6 +937,7 @@ export default { houseId: this.houseId, dateType: 0, statDateStart: this.statDateStart, + marketingBusiness: this.marketingBusiness.join(','), statDateEnd: this.statDateEnd, }; if (this.TimetoAhoose == 7) { @@ -909,6 +968,7 @@ export default { let pamaet = { houseId: this.houseId, statDateStart: this.statDateStart, + marketingBusiness: this.marketingBusiness.join(','), statDateEnd: this.statDateEnd, }; if (this.TimetoAhoose == 7) { diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue index a4cbfd9..d9bcc4c 100644 --- a/src/views/Statistics/ReceptionStatistical.vue +++ b/src/views/Statistics/ReceptionStatistical.vue @@ -85,6 +85,26 @@ +
+
销讲业务:
+ + + + +
@@ -105,7 +125,7 @@ >
- +
{ + console.log(res); + if (res.code == 10000) { + this.templateList = res.data; + } + }); + }, // 排序触发 customTabLast(e) { console.log(e); @@ -482,6 +517,7 @@ export default { deptId: this.deptId, accountId: this.accountId, type: 2, + marketingBusiness: this.marketingBusiness.join(','), }) .then((res) => { this.detailData = res.data.records; @@ -542,6 +578,7 @@ export default { .receptionStatisticsAllAccount({ houseId: this.houseId, deptId: this.deptId, + marketingBusiness: this.marketingBusiness.join(','), }) .then((res) => { console.log(res); @@ -566,6 +603,7 @@ export default { accountId: this.accountId, dateType: this.dateType == 7 ? null : this.dateType, type: 1, + marketingBusiness: this.marketingBusiness.join(','), }) .then((res) => { this.tableData = res.data.records; diff --git a/src/views/Statistics/TheTeamCompared.vue b/src/views/Statistics/TheTeamCompared.vue index 985963b..9b864c6 100644 --- a/src/views/Statistics/TheTeamCompared.vue +++ b/src/views/Statistics/TheTeamCompared.vue @@ -21,30 +21,6 @@
- -
筛选日期:
@@ -78,10 +54,35 @@ >
+ +
-
+
@@ -602,12 +603,17 @@
-
+
-
违禁接待次数 - - - +
+ 违禁接待次数 + + +
-
+
团队总数
{{ teamobj5.num || 0 }}个
@@ -651,10 +657,7 @@
{{ item.zxl }}次
-
+
暂无数据
@@ -724,6 +727,9 @@ export default { houseList: [], isshowcd: true, isshowcd2: true, + + templateList: [], // 销讲业务列表 + marketingBusiness: [], // 选中的销讲业务 }; }, computed: { @@ -737,6 +743,7 @@ export default { if (this.role == 3) { this.houseId = localStorage.getItem("houseId"); this.allhttp(); + this.getMarketingBusiness(); } else { this.zkhousePage(); } @@ -754,6 +761,18 @@ export default { } }, methods: { + // 获取销讲业务 + getMarketingBusiness() { + this.$api.http + .marketingBusiness({ houseId: this.houseId }) + .then((res) => { + console.log(res); + if (res.code == 10000) { + this.templateList = res.data; + } + }); + }, + downLoad() { let pamaet = { houseId: this.houseId, @@ -1253,9 +1272,8 @@ export default { tabtimetap(index) { this.TimetoAhoose = index; - if (index == 0) { - this.customtime = [] + this.customtime = []; } if (index == 4) { let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; diff --git a/src/views/Statistics/TrendAnalysis.vue b/src/views/Statistics/TrendAnalysis.vue index 02bc074..08960a4 100644 --- a/src/views/Statistics/TrendAnalysis.vue +++ b/src/views/Statistics/TrendAnalysis.vue @@ -1,43 +1,53 @@