From 04a49a9cd73d2a9a0275a5a9b30a7d2158b220ed Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 2 Aug 2022 14:12:46 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8E=92=E9=98=9F=E6=8E=A5=E5=BE=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/customer.vue | 20 +++++++++++++++++++- utils/domain.js | 4 ++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/pages/index/customer.vue b/pages/index/customer.vue index 1f304f2..aaa34f7 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -61,6 +61,9 @@ + @@ -125,6 +128,21 @@ this.updateInit() }, methods: { + // 删除接待 + deleteReception(data) { + this.$u.get(`/customer/delete?id=${data.id}`).then(res => { + if (!res) { + this.init() + } + }).catch(e => { + console.log(e) + uni.showToast({ + title: '网络异常,请稍后重试~', + icon: 'none' + }); + }) + }, + // 获取未读消息数量 updateInit() { uni.request({ url: config.service.notReadNum, @@ -425,7 +443,7 @@ } .footer3 { - flex: 1; + flex-grow: 1; text-align: center; line-height: 90rpx; } diff --git a/utils/domain.js b/utils/domain.js index 04967f5..39d0d4a 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,8 +1,8 @@ // http.js使用域名 -const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 -// const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 +const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 From c73f539a39a36f02e4ddf0582a7240095d2128a1 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 2 Aug 2022 14:13:01 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8E=92=E9=98=9F=E6=8E=A5=E5=BE=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/domain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/domain.js b/utils/domain.js index 39d0d4a..04967f5 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,8 +1,8 @@ // http.js使用域名 -// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 -const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 +// const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 From bcd3a86f18c767ba86920b78e2a02e206c7e75d0 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 2 Aug 2022 16:14:24 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=8C=96=E6=8E=98?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 2 + manifest.json | 2 +- pages.json | 17 +--- .../Piabodata/requireminingAnalysis.vue | 14 +-- pages/center/consumer/consumerDetail.vue | 84 ++++-------------- pages/center/consumer/index.vue | 58 +++++++------ pages/center/records/index.vue | 75 +++++++--------- pages/mine/details2.vue | 87 +++++++++++-------- utils/domain.js | 1 + 9 files changed, 140 insertions(+), 200 deletions(-) diff --git a/config.js b/config.js index e830fea..809551a 100644 --- a/config.js +++ b/config.js @@ -81,6 +81,8 @@ var config = { notReadNum: `${host}/zkMessage/findFlagCount`, //设备日志 eqLog: `${host}/equipment/equipmentLog`, + //添加挖掘词 + addWordMining: `${host}/corpus/addWordMining`, } }; module.exports = config; \ No newline at end of file diff --git a/manifest.json b/manifest.json index bb483e3..7b712b3 100644 --- a/manifest.json +++ b/manifest.json @@ -93,7 +93,7 @@ "mp-weixin" : { "appid" : "wx8f883dca5ecc5510", "setting" : { - "urlCheck" : false, + "urlCheck" : true, "es6" : true, "postcss" : true, "minified" : true diff --git a/pages.json b/pages.json index 4a11d57..4e40796 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,6 @@ "easycom": { "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" }, - //这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 "pages": [ { "path": "pages/index/guide", @@ -45,7 +44,6 @@ } } ], - //这下面是分包 "subPackages": [{ "root": "pages/login", //登录相关 "name": "login", @@ -216,7 +214,6 @@ "navigationBarBackgroundColor": "#ffffff", "navigationBarTextStyle": "black" } - }, { "path": "selectBuilding", "style": { @@ -224,7 +221,6 @@ "navigationBarBackgroundColor": "#FFFFFF", "navigationBarTextStyle": "black" } - }, { "path": "registerCode", "style": { @@ -240,7 +236,6 @@ "navigationBarBackgroundColor": "#2671E2", "navigationBarTextStyle": "white" } - }, { "path": "registerResult", @@ -249,7 +244,6 @@ "navigationBarBackgroundColor": "#2671E2", "navigationBarTextStyle": "white" } - }, { "path": "messageDetail", "style": { @@ -264,7 +258,6 @@ "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black" } - }, { "path": "equipmentLog", "style": { @@ -273,7 +266,6 @@ "navigationBarTextStyle": "transparent", "navigationStyle": "custom" } - } ] }, @@ -342,7 +334,7 @@ ] }, { - "root": "pages/reportExcel", //中心逻辑的模块都放到这里 + "root": "pages/reportExcel", "name": "reportExcel", "pages": [{ "path": "weekReport", @@ -362,7 +354,7 @@ ] }, { - "root": "pages/center", //中心逻辑的模块都放到这里 + "root": "pages/center", "name": "center", "pages": [{ "path": "Piabodata/index", @@ -477,7 +469,6 @@ "enablePullDownRefresh": true } }, - { "path": "records/index", "style": { @@ -563,9 +554,7 @@ } } ] - } - ], - + }], "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue index 9f315c8..960b0fd 100644 --- a/pages/center/Piabodata/requireminingAnalysis.vue +++ b/pages/center/Piabodata/requireminingAnalysis.vue @@ -14,10 +14,10 @@ {{ guwen}} - + @@ -44,7 +44,7 @@ 平均需求挖掘率:筛选时间内,有效接待中已标记顾问的需求挖掘执行率的平均值; 未标记:筛选时间内,有效接待中未标记顾问的接待数; 有效接待:筛选时间内,标记为有效的接待数,不包含待接单; - 未挖掘需求数:筛选时间内,需求挖掘平均执行率未0 的需求数; + 未挖掘需求数:筛选时间内,需求挖掘平均执行率为0的需求数; X @@ -118,8 +118,8 @@ :default-value='selindex'> - + @@ -136,7 +136,7 @@ data() { return { selindex: '', - huashushow: false, + // huashushow: false, guwenshow: false, timeshow: false, selectshow: false, @@ -190,7 +190,7 @@ }, activeTotal: 4, houseId: '', - hushuList: [],// 业务话术 + // hushuList: [],// 业务话术 staffList: [],// 员工列表 teamList: [],// 团队列表 team: { diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index afb4f3b..1e198a0 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -48,7 +48,7 @@ >所属顾问:{{ customerInfo.agentName || "--" }} 客户阶段:{{ customerInfo.agentName || "--" }}客户阶段:{{ customerInfo.stageName || "--" }} @@ -56,15 +56,6 @@ >上次到访:{{ customerInfo.createTime || "--" }} - @@ -83,7 +74,10 @@ 跟进记录 - 执行率 + 销讲执行率 + + + 挖掘执行率 @@ -159,39 +153,13 @@ - + - - 销讲执行率 - 需求挖掘执行率 - - -执行总览 - - - {{customerInfo.visitRecord || '--'}}次 - 接待次数 - - - - - {{customerInfo.fraction}}% - - - 销讲执行率 - - - {{customerInfo.mm}}min - 接待时长 - - - + 指标 执行率 - - + @@ -243,29 +211,10 @@ - - - 执行总览 - - - {{customerInfo.visitRecord || '--'}}次 - 到访次数 - - - - - {{customerInfo.wordFraction||0}}% - - - 需求挖掘执行率 - - - {{customerInfo.mm}}min - 接待时长 - - - + + + + 指标 执行率 @@ -280,7 +229,7 @@ 暂无数据 - + {{item.name}} @@ -343,7 +292,6 @@ - @@ -356,7 +304,7 @@ - {{item.name}} @@ -1189,11 +1137,10 @@ .content-last { padding: 30rpx; - height: 168rpx; .content-last-con { width: 690rpx; - height: 108rpx; + min-height: 108rpx; background: #F8F8F8; border-radius: 8rpx; padding: 14rpx 20rpx; @@ -1208,7 +1155,6 @@ } .tabchange { - // background: #FFFFFF; overflow: hidden; .tabactive1 { diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index bb7d205..5248211 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -126,18 +126,12 @@ }} - 所属顾问:{{ item.agentName || "--" }} 客户阶段:{{ item.agentName || "--" }}客户阶段:{{ item.stageName || "--" }} @@ -549,15 +543,15 @@ export default { data() { return { huaxiangShow: false, - wajueArrow: false, - jieduanArrow: false, - sourceArrow: false, - levelArrow: false, + wajueArrow: true, + jieduanArrow: true, + sourceArrow: true, + levelArrow: true, zixunArrow: true, - jiedaiArrow: false, - luyinArrow: false, - visitArrow: false, - xiaojiangArrow: false, + jiedaiArrow: true, + luyinArrow: true, + visitArrow: true, + xiaojiangArrow: true, huaxiangList: [], orderBylist: [ { @@ -869,7 +863,7 @@ export default { this.sortFilter = "排序"; this.receptionDuration = "所属顾问"; this.arriveFilter = "到访时间"; - this.screen.orderBy = null; + this.screen.orderBy = ''; this.screen.staTime = ""; this.screen.endTime = ""; this.nextPage = 1; @@ -882,7 +876,7 @@ export default { //选择标签 selectCallback2(e) { this.sortFilter = e[0].label; - this.orderBy = e[0].value; + this.screen.orderBy = e[0].value; this.nextPage = 1; this.recordList = []; this.isRefresh = false; @@ -952,6 +946,14 @@ export default { }); }, getMyCustom() { + this.screen.visitRecord = [] + this.screen.jiedaiVal = [] + this.screen.wajueVal = [] + this.screen.xiaojiangVal = [] + this.screen.level = [] + this.screen.clientStage = [] + this.screen.sourceIds = [] + let keywordsIds = [] let dateType = 0; if (this.activeTotal == 5||this.activeTotal == 4) { dateType = null; @@ -986,7 +988,7 @@ export default { this.sourceList.forEach(i => { if(i.isShow) this.screen.sourceIds.push(i.value) }) - let keywordsIds = [] + this.huaxiangList.forEach(item => { if(item.children.length){ item.children.forEach(im=>{ @@ -999,19 +1001,19 @@ export default { pageSize: 10, query: { projectId: this.buildingID, - fractions: this.screen.xiaojiangVal.join(','),// 销讲执行率 - wordFractions: this.screen.wajueVal.join(','),//需求挖掘 - visitRecordNum: this.screen.visitRecord.join(','),//到访次数 - clientStages: this.screen.clientStage.join(','), // 客户阶段 - sourceIds: this.screen.sourceIds.join(','),// 客户来源 - level: this.screen.level.join(','),// 客户等级 - duractionNums: this.screen.jiedaiVal.join(','),// 接待时长 + fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',// 销讲执行率 + wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//需求挖掘 + visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数 + clientStages: this.screen.clientStage.length?this.screen.clientStage.join(','):'', // 客户阶段 + sourceIds: this.screen.sourceIds.length?this.screen.sourceIds.join(','):'',// 客户来源 + level: this.screen.level.length?this.screen.level.join(','):'',// 客户等级 + duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',// 接待时长 keywordsIds: keywordsIds.length?keywordsIds.join(','):'',// 画像标签 dateType: dateType, // 接待时间 staTime: this.screen.staTime, endTime: this.screen.endTime, agentId: this.screen.agentId,// 顾问 - orderBy: this.screen.orderBy==0?null: this.screen.orderBy,// 排序 + orderBy: this.screen.orderBy==''?'': this.screen.orderBy,// 排序 }, }; this.userInfo = uni.getStorageSync("weapp_session_userInfo_data"); @@ -1062,7 +1064,7 @@ export default { // console.log(res) if(res.length){ res.forEach(item=>{ - item.isShow = false; + item.isShow = true; if(item.children.length){ item.children.forEach(subitem=>{ subitem.isShow = false; @@ -1165,7 +1167,7 @@ export default { resetHuaXiang(){ if(this.huaxiangList.length){ this.huaxiangList.forEach(item=>{ - item.isShow = false; + item.isShow = true; if(item.children.length){ item.children.forEach(subitem=>{ subitem.isShow = false; diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 71ea8b3..ec8c181 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -82,7 +82,7 @@ 访问次数 - {{item.wordFraction||'--'}} + {{item.demand.cusSemanticWordsList?item.demand.cusSemanticWordsList.length:'--'}} 画像标签 @@ -167,15 +167,15 @@ - 有效接待 - 无效接待 - 无录音 @@ -192,7 +192,7 @@ @click="screenvisitRecord(1)"> 标记 - 未标记 @@ -265,13 +265,13 @@ }, data() { return { - wajueArrow: false, + wajueArrow: true, zixunArrow: true, - jiedaiArrow: false, - luyinArrow: false, - visitArrow: false, + jiedaiArrow: true, + luyinArrow: true, + visitArrow: true, xiaojiangArrow: true, - markArrow: false, + markArrow: true, orderBylist: [{ label: '全部', value: '' @@ -422,13 +422,13 @@ screen: { orderBy: '',//排序 agentId: '', //顾问id - markAdvisor: null,//标记顾问 + markAdvisor: '',//标记顾问 visitRecord: [],// 到访次数 - zixunVal: [],// 咨询业务 + // zixunVal: [],// 咨询业务 wajueVal: [],// 需求挖掘 xiaojiangVal:[],//销讲执行率 jiedaiVal: [],// 接待时长 - validInvalid: null,// 录音标识 + validInvalid: ''// 录音标识 }, freeList: [], //顾问 recordList: [], @@ -646,13 +646,13 @@ staTime: this.staTime,// 接待时间 endTime: this.endTime,// 接待时间 agentId: this.screen.agentId, // 顾问ID - visitRecordNum: this.screen.visitRecord.join(','),//到访次数 - wordFractions: this.screen.wajueVal.join(','),//挖掘 - duractionNums: this.screen.jiedaiVal.join(','),//接待时长 - fractions: this.screen.xiaojiangVal.join(','),//销讲 + visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数 + wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘 + duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长 + fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲 markAdvisor: this.screen.markAdvisor,//标记顾问 dateType: dateType,//时间类型 - orderBy: this.orderBy==0?null:this.orderBy,//排序 + orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序 validInvalid: this.screen.validInvalid,//录音标识 clientStage: this.screen.clientStage,// 客户阶段 recording: this.screen.validInvalid == 2 ? 0 : null // 录音 @@ -705,8 +705,10 @@ reset() { this.screen.agentId ='' this.screen.jiedaiVal ='' + this.screen.validInvalid = '' + this.screen.markAdvisor = '' + this.screen.orderBy = ''; this.sortFilter = '排序'; - this.orderBy = null; this.arriveFilter = '到访时间'; this.staTime = ''; this.endTime = ''; @@ -720,7 +722,10 @@ this.jiedaiList.map(i => { i.isShow = false }) - this.zixunList.map(i => { + // this.zixunList.map(i => { + // i.isShow = false + // }) + this.wajueList.map(i => { i.isShow = false }) this.xiaojiangList.map(i => { @@ -732,40 +737,22 @@ }, //标记顾问 screenvisitRecord(i) { - console.log(i) - if (this.screen.markAdvisor == i) { - this.screen.markAdvisor = null + // console.log(i) + if (this.screen.markAdvisor === i) { + this.screen.markAdvisor = '' } else { this.screen.markAdvisor = i } }, // 录音标识 screenvisivalidInvalid(i) { - console.log(this.screen.validInvalid, i) - if (this.screen.validInvalid == i) { - this.screen.validInvalid = null + // console.log(this.screen.validInvalid, i) + if (this.screen.validInvalid === i) { + this.screen.validInvalid = '' } else { this.screen.validInvalid = i } }, - //咨询业务 - screenzixunClick(i) { - console.log(this.screen.zixunVal, i) - if (this.screen.zixunVal == i) { - this.screen.zixunVal = null - } else { - this.screen.zixunVal = i - } - }, - // 需求挖掘选择 - screenwajueValClick(i) { - // console.log(this.screen.wajueVal, i) - if (this.screen.wajueVal == i) { - this.screen.wajueVal = null - } else { - this.screen.wajueVal = i - } - }, screensure() { this.screenShow = false; this.recordList = []; diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 8abc7e7..226cbf9 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -28,7 +28,7 @@ 录音文件 + v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">