diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index ab261a8..2881644 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -74,7 +74,8 @@ {{item.name || '--'}} - + + 销讲业务:{{ item.marketingBusinessName || '--' }} {{ item.phone | encryption }} diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 4915083..29d14e7 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -719,6 +719,36 @@ }) }, + + // 销讲业务方法 + templateCancel() { + this.showTemplate = false; + }, + + // 确认选择销讲业务 + templateConfirm(e) { + this.showTemplate = false; + this.$u.post('/customer/updateMarketingBusiness', { + marketingBusiness: e[0].value, + id: this.userlistobj.id + }).then(res => { + uni.showToast({ + title: '操作成功', + icon: 'none', + duration: 2000 + }) + this.init(this.infos); + this.gituserlist() + this.getMarketingBusiness() + }).catch(e => { + uni.showToast({ + title: e.data.message, + icon: 'none', + duration: 2000 + }) + }) + }, + borderColor(index) { let obj = { color: '', diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue index 949e25b..777f7d7 100644 --- a/pages/mine/reception/addreception.vue +++ b/pages/mine/reception/addreception.vue @@ -53,7 +53,21 @@ + + + 销讲业务 + + {{templateName}} + 请选择销讲业务 + + + + + + + 顾问 @@ -69,13 +83,18 @@ 确定 - + + + + + @@ -120,6 +139,11 @@ isShow: false, // 默认隐藏该权限 isPass: false, // 当前顾问是否正在接待 fromBack: false, // 从选择顾问页面跳回 + + + templateList: [], // 销讲业务 + showTemplate: false, // 展示选择销讲业务弹窗 + templateName: '', // 销讲业务类型文字 }; }, @@ -136,12 +160,13 @@ this.text = obj.name; this.parames.agentId = customerId; }) + this.getMarketingBusiness(); }, onUnload() { uni.$off('addreception') }, - + onShow() { let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); this.isShow = newmenulist.jd_zp @@ -150,16 +175,42 @@ this.zkAgentPoolSourceList(); }, methods: { + + // 销讲业务方法 + templateCancel() { + this.showTemplate = false; + }, + templateConfirm(e) { + this.showTemplate = false; + this.templateName = e[0].label; + this.parames.marketingBusiness = e[0].value; + }, + + // 获取销讲业务 + getMarketingBusiness() { + this.$u.get('/customer/marketingBusiness', { + houseId: uni.getStorageSync('buildingID').id, + status: 0, + }).then(res => { + this.templateList = res + if (res && res.length > 0) { + this.parames.marketingBusiness = res[0].id + this.templateName = res[0].templateName + } + }) + }, // 获取客户来源 zkAgentPoolSourceList() { - this.$u.get('/zkAgentPool/source/list', { houseId: this.parames.projectId }).then(res => { + this.$u.get('/zkAgentPool/source/list', { + houseId: this.parames.projectId + }).then(res => { console.log(res) if (res) { this.list = res } }) }, - + //取消 confirmA() { if (this.daitiReceptionobj.assign != null) { @@ -190,7 +241,7 @@ } else { this.isPass = false } - + if (this.parames.name.length == 0) { uni.showToast({ icon: "none", @@ -327,6 +378,10 @@ Buildingselection() { this.Showhiddenunits = true; }, + + showTemplateSelect() { + this.showTemplate = true; + }, cancel() { this.Showhiddenunits = false; }, diff --git a/pages/reportExcel/dayReport.vue b/pages/reportExcel/dayReport.vue index 6010396..c0f7aa2 100644 --- a/pages/reportExcel/dayReport.vue +++ b/pages/reportExcel/dayReport.vue @@ -54,11 +54,16 @@ - 平均执行率: + 平均执行率: + 销讲执行率: - 平均执行率{{ weekObj.fraction || 0 }}% + + 平均执行率: + 销讲执行率: + {{ weekObj.fraction || 0 }}% + 对比昨天{{ weekObj.fractionPK > 0 ? '+' : '' }}{{ weekObj.fractionPK || 0 }}% @@ -92,28 +97,54 @@ - 销讲维度执行前三: + 销讲维度执行前三: + 项目平均执行率排名: - - - - - {{ rankIndex+1 }} + + @@ -123,32 +154,57 @@ - 销讲维度执行弱项前三: + 销讲维度执行弱项前三: + 项目平均接访时长排名: - - - - - {{ rankIndex+1 }} + + - + 6 @@ -179,7 +235,7 @@ - + 7 @@ -212,26 +268,101 @@ + + + + + + + 平均执行率最低的顾问: + 执行率最低的项目: + + + + + + + + + + + + + + 客户画像触达: + {{ weekObj.reachSum || 0 }}次 + + + + + + 8 - 平均执行率最低的顾问: + 画像一级触达接待前三: - + - {{ rank.title || '--' }} + {{ rank.name || '--' }} - {{ rank.value || 0 }}% + ({{ rank.total || 0 }}) -