diff --git a/config.js b/config.js index c803348..641a836 100644 --- a/config.js +++ b/config.js @@ -2,11 +2,11 @@ * 小程序配置文件 */ // 此处主机域名修改成腾讯云解决方案分配的域名 -// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 -// var host = 'http://192.168.31.163:8080/autoSR/api'; // 长龙 +var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 +// var host = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 // var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪 // var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 - var host = 'https://zkgj.quhouse.com/api'; // 质控正式 + // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 // var host = 'https://hfju.com/api'; // 数智正式 diff --git a/pages.json b/pages.json index a59c62a..00b4c0f 100644 --- a/pages.json +++ b/pages.json @@ -52,7 +52,8 @@ "path": "index", "style": { "navigationBarBackgroundColor": "#008EF2", - "navigationBarTextStyle": "white" + "navigationBarTextStyle": "white", + "navigationStyle": "custom" } }, { @@ -60,31 +61,32 @@ "style": { "navigationBarTitleText": "验证码登录", "navigationBarBackgroundColor": "#008EF2", - "navigationBarTextStyle": "white" + "navigationBarTextStyle": "white", + "navigationStyle": "custom" } }, { "path": "yinzhongmalogin", "style": { "navigationBarTitleText": "验证码登录", - "navigationBarBackgroundColor": "#008EF2", - "navigationBarTextStyle": "white" + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" } }, { "path": "Setthepassword", "style": { - "navigationBarTitleText": "忘记密码", - "navigationBarBackgroundColor": "#008EF2", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "设置密码", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" } }, { "path": "Verifythelogin", "style": { - "navigationBarTitleText": "验证码验证", - "navigationBarBackgroundColor": "#008EF2", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "验证码登录", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" } } @@ -112,6 +114,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "calibration", + "style": { + "navigationBarTitleText": "校验", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" + } + }, { "path": "ScoringPlaylist", "style": { @@ -344,6 +354,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "Piabodata/Employeesstatistics", + "style": { + "navigationBarTitleText": "员工统计", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" + } + }, { "path": "records/index", @@ -409,7 +427,7 @@ "navigationBarTextStyle": "black" } } - ] + ] } ], diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index a4d14c5..04aaba6 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -200,9 +200,7 @@ - - - + 接待详情 @@ -237,22 +235,24 @@ - - - + 销讲执行 - + + 销讲总执行率{{totalRate}}% + 禁忌执行 + + 指标 执行率 - + {{item.name}} @@ -261,20 +261,20 @@ - - + + - - {{subitem.name}} - + + {{subitem.name}} + 已执行 未执行 - - + + 话术内容 @@ -288,27 +288,32 @@ + + {{index+1}}.{{item}} + 暂无数据 + - - - + - 客户意向 - - - 语意词统计 + 客户意向 - - - + + 系统分析 + 人工校准 + + + + 暂无数据 + + {{item.name}} @@ -317,17 +322,32 @@ - {{chend.text}} + {{chend.text}} - - - {{item.name}} + + + + + 暂无数据 + + + + {{item.name}} + + + + + + + {{chend.text}} + + 校准 @@ -379,6 +399,11 @@ export default { data() { return { + kehuyixiangcenterindex:0, + Acquirecustomerintentlist2:[], + zhixingcenterindex:0, + prohibitedlist:[], + guanjianciishow:false, Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC", scrollTop: 0, scrollId: "", @@ -431,6 +456,8 @@ }; }, onShow() { + this.intention=false; + this.kehuyixiangcenterindex=0; this.buildingID = uni.getStorageSync('buildingID').id; this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); if (this.userInfo.dataCode == 6) { @@ -473,6 +500,38 @@ this.innerAudioContext.destroy(); }, methods: { + //关键词点击 + tapbadge(item){ + //进搜索页面 + uni.navigateTo({ + url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&keyword="+item +"&skpl="+ "2" + }) + }, + recordclick(i){ + this.zhixingcenterindex=i; + if(i==0){ + this.getRatelist() + }else{ + console.log('999') + this.huoqujinji() + } + }, + //获取禁忌 + huoqujinji(){ + uni.showLoading({ + title: '加载中' + }); + this.$u.get("/customer/findTabooWordsByCusId", { + cusId: this.customerId + }).then(res => { + if (res.length) { + this.prohibitedlist=res; + } + setTimeout(function() { + uni.hideLoading(); + }, 1000); + }) + }, guanjiancishifo(){ // this.guanjianciishow=!this.guanjianciishow; this.innerAudioContext.destroy(); @@ -998,21 +1057,56 @@ this.userlistobj=res; }) }, + Acquishow2(i){ + this.Acquirecustomerintentlist2[i].isshow=!this.Acquirecustomerintentlist2[i].isshow; + }, + tocalibration(){ + this.innerAudioContext.destroy(); + uni.navigateTo({ + url: '/pages/mine/calibration?id='+this.customerId + }); + }, + customerofintention(i){ + this.kehuyixiangcenterindex=i; + if(i==0){ + this.Acquirecustomerintent() + }else{ + this.Acquirecustomerintent2() + } + }, + //获取人工校准意向信息 + Acquirecustomerintent2(){ + this.Acquirecustomerintentlist2=[]; + this.$u.get("/matchKeywords/findManualCalibration", { + customerId: this.customerId, + type:1 + }).then(res => { + res.forEach(item=>{ + item.isshow=true; + item.children.forEach(chend=>{ + if(chend.isInterval==0){ + chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit + }else{ + chend.text=chend.name + } + }) + }) + this.Acquirecustomerintentlist2=res; + }) + }, //获取意向信息 Acquirecustomerintent(){ - this.$u.get("/matchKeywords/findPersonalMatchData", { + this.$u.get("/matchKeywords/findSystemAnalysis", { customerId: this.customerId }).then(res => { res.forEach(item=>{ item.isshow=true; item.children.forEach(chend=>{ - if(item.name=='意向面积'){ - chend.text=chend.name+'m²'+'-'+chend.endName+'m²' - }else if(item.name=='购房预算'){ - chend.text=chend.name+'万'+'-'+chend.endName+'万' + if(chend.isInterval==0){ + chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit }else{ chend.text=chend.name - } + } }) }) this.Acquirecustomerintentlist=res; @@ -1220,18 +1314,10 @@ }, //评分上下显隐 changeshow(item, type) { - if (type == 1) { - item.show = true - } else { - item.show = false - } + item.show = !item.show; }, changeshow2(item, type){ - if (type == 1) { - item.show = true - } else { - item.show = false - } + item.show = !item.show; }, // 获取评分 getRatelist() { @@ -1244,6 +1330,7 @@ }).then(res => { if (res.length) { let level1 = [] + let level2rate = 0 res.forEach(item => { if (item.pid == 0) { level1.push({ @@ -1255,9 +1342,13 @@ ratepercent: 0, children: [] }) - } + } else { + if (item.selected == 0) { + level2rate += item.fraction + } + } }) - // this.totalRate = level2rate; + this.totalRate = level2rate; res.forEach(subitem => { let subitempid = subitem.pid level1.forEach(item => { @@ -1441,6 +1532,30 @@ height: 100vh; display:flex; flex-direction:column; + .pingfenbox{ + width: 100%; + height: 60rpx; + line-height: 60rpx; + border-bottom: 1px solid #E0E0E0; + display: flex; + } + .pingfenbox view{ + flex: 1; + text-align: center; + font-size: 28rpx; + text-indent: 20rpx; + } + .activecllasscet{ + background: #2671E2; + color: #FFFFFF; + } + .title1-12{ + font-size: 28rpx; + color:#2671E2; + font-weight: 400; + text-indent: 30rpx; + margin-top: 18rpx; + } .headbox{ width: 100%; min-height: 173rpx; @@ -1595,18 +1710,31 @@ z-index: 1000; display:flex; flex-direction:column; + position: relative; + .calibration{ + width: 90rpx; + height: 90rpx; + background: #2671E2; + text-align: center; + line-height: 90rpx; + border-radius: 50%; + color: #FFFFFF; + position: absolute; + right: 30rpx; + bottom: 100rpx; + } .guanbibox{ width: 100%; padding-bottom: 20rpx; + margin-top: 20rpx; border-bottom: 1px solid #E0E0E0; + position: relative; .guanbixen{ - width: 95%; - text-align: right; - padding-top: 24rpx; - } - .guanbixen image{ width:30rpx; height:30rpx; + position: absolute; + right: 30rpx; + top: 6rpx; } .cenisboxtab{ width: 100%; @@ -2055,7 +2183,7 @@ .Level1che{ width:100%; height: 94rpx; - background: #E0E0E0; + background: #F5F5F5; display: flex; line-height: 94rpx; align-items: center; diff --git a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue index 6463477..d7ece2a 100644 --- a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue +++ b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue @@ -159,7 +159,8 @@ export default { pageSize:10, tadelist:[], totalpage:0, - keywordIds:'' + keywordIds:'', + type:0, }; }, onLoad(options) { @@ -181,7 +182,6 @@ export default { this.Accesstolevel() }, onReachBottom() { - console.log("4444444444444444444") if (this.totalpage < this.pageNum * this.pageSize) { return uni.showToast({ title: "到底了", @@ -261,7 +261,7 @@ export default { time:1, name:this.name, agentName:this.agentName, - type:0, + type:this.type, keywordIds:this.keywordIds, // keywordsId:this.keywordsId, projectId:this.houseId, @@ -288,6 +288,7 @@ export default { } this.$u.post("/matchKeywords/receptionRecord", parames).then(data => { + this.type=1; if(data.results==null){ console.log("没有") return diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue new file mode 100644 index 0000000..f4d725c --- /dev/null +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -0,0 +1,362 @@ + + + + diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index 6d864f9..81a19d1 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -46,9 +46,9 @@ 集团对比 - + - + 简报 @@ -59,100 +59,83 @@ - - + + 接待趋势 - + - {{danwei}} - + - - + + - - - 团队接待趋势 - - {{team.label}} - - - - - - - 单位(%) - - - - + 单位(%) + + + + - + - - - 员工接待趋势 - - {{staff.label}} - - - - - - - 单位(%) - - - - + 单位(%) + + + + - + @@ -166,56 +149,61 @@ --> - - + {{item.name.substring(0, 4)}} - + {{item.zxl==null?0:item.zxl}}% - + - + 销讲指标执行率 - + - + {{item.name.substring(0, 4)}} - + {{item.zxl==null?0:item.zxl}}% - - + + - + - + - - + + @@ -228,100 +216,134 @@ return { activeTotal: 4, activeTotal2: 0, - houseId:'', - timeobj:{ - statDateStart:'', - statDateEnd:'' + houseId: '', + timeobj: { + statDateStart: '', + statDateEnd: '' }, // 员工列表 - staffList:[], + staffList: [], // 团队列表 - teamList:[], - staffShow:false, - staff:{ - value:'', - label:'' + teamList: [], + staffShow: false, + staff: { + value: '', + label: '' }, - team:{ - value:'', - label:'' + team: { + value: '', + label: '' }, - teamFlag:true, - bocindex1:0, - staffFlag:true, - staffShow1:false, - lastStartDate:'', - lastEndDate :'', - allnum:'', - allavg:'', - allnum1:'', - allavg1:'', - danwei:'单位(次)', + teamFlag: true, + bocindex1: 0, + staffFlag: true, + staffShow1: false, + lastStartDate: '', + lastEndDate: '', + allnum: '', + allavg: '', + allnum1: '', + allavg1: '', + danwei: '单位(次)', totalTimeShow: false, activeTab: 0, - numlist:[ - {name:'接待量',num:'10'}, - {name:'接待客户',num:'10'}, - {name:'平均执行率',num:'10'}, - {name:'接待时长',num:'10'}, + numlist: [{ + name: '接待量', + num: '10' + }, + { + name: '接待客户', + num: '10' + }, + { + name: '平均执行率', + num: '10' + }, + { + name: '接待时长', + num: '10' + }, ], - lineOptsect:{ - "categories": ["2016","2017","2018","2019","2020","2021"], - "series": [ - { - "name": "成交量", - "data": [35,8,25,37,4,20] - } - ] + lineOptsect: { + "categories": ["2016", "2017", "2018", "2019", "2020", "2021"], + "series": [{ + "name": "成交量", + "data": [35, 8, 25, 37, 4, 20] + }] }, - lineOptsect1:{ + lineOptsect1: { "categories": [], "series": [] }, - lineOptsect2:{ - "categories": ["2016","2017","2018","2019","2020","2021"], - "series": [ - { - "name": "成交量", - "data": [35,8,25,37,4,20] - } - ] + lineOptsect2: { + "categories": ["2016", "2017", "2018", "2019", "2020", "2021"], + "series": [{ + "name": "成交量", + "data": [35, 8, 25, 37, 4, 20] + }] }, - newlistoj:[], - newlistoj1:[ - {name:"接待量",id:1}, - {name:"平均执行率",id:2}, - {name:"接待客户",id:3}, - {name:"录音时长",id:5}, + newlistoj: [], + newlistoj1: [{ + name: "接待量", + id: 1 + }, + { + name: "平均执行率", + id: 2 + }, + { + name: "接待客户", + id: 3 + }, + { + name: "录音时长", + id: 5 + }, ], - bocindex:0, - newlisttabinfo:[ - {name:'接待量',zxl:'10'}, - {name:'平均执行率',zxl:'50'}, - {name:'接待客户',zxl:'80'}, + bocindex: 0, + newlisttabinfo: [{ + name: '接待量', + zxl: '10' + }, + { + name: '平均执行率', + zxl: '50' + }, + { + name: '接待客户', + zxl: '80' + }, ], - newlisttabinfo1:[ - {name:'接待量',zxl:'10'}, - {name:'平均执行率',zxl:'50'}, - {name:'接待客户',zxl:'80'}, + newlisttabinfo1: [{ + name: '接待量', + zxl: '10' + }, + { + name: '平均执行率', + zxl: '50' + }, + { + name: '接待客户', + zxl: '80' + }, ], - Theteamcomparedisshow:false, - Groupcontrastisshow:false, - allechar:[], - allList:[] + Theteamcomparedisshow: false, + Groupcontrastisshow: false, + allechar: [], + allList: [] }; }, - onShow() { + onShow() { // 获取楼盘id this.houseId = uni.getStorageSync('buildingID').id; // 获取数据看板 - + // 获取员工 - this.getStaffList() + this.getStaffList() // 获取团队 - this.getSectionList() + this.getSectionList() // 获取团队是否显示权限 - + this.queryHaveDept() // 获取简报 this.getReport() @@ -333,197 +355,199 @@ methods: { queryHaveDept() { return new Promise((resolve, reject) => { - this.$u.get("/user/queryHaveDept?houseId="+this.houseId).then(res => { + this.$u.get("/user/queryHaveDept?houseId=" + this.houseId).then(res => { this.permissions(res) }) }) }, - permissions(res){ - if(res==1){ - this.Theteamcomparedisshow=false; - this.Groupcontrastisshow=false; + permissions(res) { + if (res == 1) { + this.Theteamcomparedisshow = false; + this.Groupcontrastisshow = false; return } - - let totle=uni.getStorageSync('weapp_session_userInfo_data').total; - if(totle==1){ - this.Theteamcomparedisshow=true; - this.Groupcontrastisshow=false; - }else{ - this.Theteamcomparedisshow=true; - this.Groupcontrastisshow=true; + + let totle = uni.getStorageSync('weapp_session_userInfo_data').total; + if (totle == 1) { + this.Theteamcomparedisshow = true; + this.Groupcontrastisshow = false; + } else { + this.Theteamcomparedisshow = true; + this.Groupcontrastisshow = true; } }, // 获取员工列表 - getStaffList(){ - this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId',{houseId:this.houseId}) - .then(res=>{ - // console.log(res,'123') - this.staffList=[] - res.map(item=>{ - let obj={} - obj.value=item.accountId - obj.label=item.name - this.staffList.push(obj) + getStaffList() { + this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId', { + houseId: this.houseId + }) + .then(res => { + // console.log(res,'123') + this.staffList = [] + res.map(item => { + let obj = {} + obj.value = item.accountId + obj.label = item.name + this.staffList.push(obj) + }) + this.staff = this.staffList[0] + this.getAward() }) - this.staff=this.staffList[0] - this.getAward() - }) }, // 获取接待趋势 - getRtrent(){ - this.$u.post('/cusLvStatistics/receptionTrend',{ - houseId:this.houseId, - timeType:this.lastEndDate?null:this.activeTotal, - lastEndDate:this.lastEndDate, - lastStartDate:this.lastStartDate - }) - .then(res=>{ - // console.log(res) - this.allechar=res - this.tapspagek2(this.bocindex) - - }) + getRtrent() { + this.$u.post('/cusLvStatistics/receptionTrend', { + houseId: this.houseId, + timeType: this.lastEndDate ? null : this.activeTotal, + lastEndDate: this.lastEndDate, + lastStartDate: this.lastStartDate + }) + .then(res => { + // console.log(res) + this.allechar = res + this.tapspagek2(this.bocindex) + + }) }, // 销奖维度 - getindexZxl(){ - this.$u.post('/cusLvStatistics/indexZxl',{ - houseId:this.houseId, - timeType:this.lastEndDate?null:this.activeTotal, - lastEndDate:this.lastEndDate, - lastStartDate:this.lastStartDate - }) - .then(res=>{ - // console.log(res) - // 处理销奖维度执行率 - // this.newlisttabinfo - let arr=[] - this.newlistoj=[] - res.list.map((item,index)=>{ - arr.push({ - name:item.name, - zxl:item.zxl - }) - this.newlistoj.push({ - name:item.name, - id:index + getindexZxl() { + this.$u.post('/cusLvStatistics/indexZxl', { + houseId: this.houseId, + timeType: this.lastEndDate ? null : this.activeTotal, + lastEndDate: this.lastEndDate, + lastStartDate: this.lastStartDate + }) + .then(res => { + // console.log(res) + // 处理销奖维度执行率 + // this.newlisttabinfo + let arr = [] + this.newlistoj = [] + res.list.map((item, index) => { + arr.push({ + name: item.name, + zxl: item.zxl + }) + this.newlistoj.push({ + name: item.name, + id: index + }) }) + this.newlisttabinfo = arr + this.allList = res.list + this.tapspagek3(this.bocindex1) }) - this.newlisttabinfo=arr - this.allList=res.list - this.tapspagek3(this.bocindex1) - }) }, // 获取简报 - getReport(){ - this.$u.post('/cusLvStatistics/xiaojiangAnalysis',{ - houseId:this.houseId, - timeType:this.lastEndDate?null:this.activeTotal, - lastEndDate:this.lastEndDate, - lastStartDate:this.lastStartDate + getReport() { + this.$u.post('/cusLvStatistics/xiaojiangAnalysis', { + houseId: this.houseId, + timeType: this.lastEndDate ? null : this.activeTotal, + lastEndDate: this.lastEndDate, + lastStartDate: this.lastStartDate + }) + .then(res => { + // 接待量 + this.numlist[0].num = res.receptionCount || 0 + // 接待客户 + this.numlist[1].num = res.sumCustomer || 0 + // 执行率 + this.numlist[2].num = (res.fraction || 0) + '%' + // 录音时长 + this.numlist[3].num = Math.floor(res.sumDuration / 60) || 0 + // util.formatSecond()||0 + }) - .then(res=>{ - // 接待量 - this.numlist[0].num=res.receptionCount||0 - // 接待客户 - this.numlist[1].num=res.sumCustomer||0 - // 执行率 - this.numlist[2].num=(res.fraction||0)+'%' - // 录音时长 - this.numlist[3].num=Math.floor(res.sumDuration/60) ||0 - // util.formatSecond()||0 - - }) }, // 获取团队列表 - getSectionList(){ - this.$u.post('/cusLvStatistics/findAllDeptIdByHouseId',{houseId:this.houseId}) - .then(res=>{ - this.teamList=[] - res.map(item=>{ - let obj={} - obj.value=item.deptId - obj.label=item.deptName - this.teamList.push(obj) + getSectionList() { + this.$u.post('/cusLvStatistics/findAllDeptIdByHouseId', { + houseId: this.houseId + }) + .then(res => { + this.teamList = [] + res.map(item => { + let obj = {} + obj.value = item.deptId + obj.label = item.deptName + this.teamList.push(obj) + }) + this.team = this.teamList[0] + this.receptionCountList() }) - this.team=this.teamList[0] - this.receptionCountList() - }) }, // 员工销奖趋势 - getAward(){ - if(this.staffList.length==0){ - this.staffFlag=false + getAward() { + if (this.staffList.length == 0) { + this.staffFlag = false this.$forceUpdate() return } - this.$u.post('/cusLvStatistics/employeeAnalysisExacutiveRate',{ - userA:this.staff.value, - userB:'', - houseId:this.houseId, - timeType:this.lastEndDate?null:this.activeTotal+'', - lastEndDate:this.lastEndDate, - lastStartDate:this.lastStartDate - }) - .then(res=>{ - this.allnum1=res.avg[0] - this.allavg1=res.avg[1] - // console.log(res) - let first=res.first - let second=res.second - this.lineOptsect2.categories=[] - this.lineOptsect2.series=[ - { - name:first[0].accountName, - data:[] - } - ] - first.map(item=>{ - this.lineOptsect2.categories.push(item.statDate.slice(5,10)) + this.$u.post('/cusLvStatistics/employeeAnalysisExacutiveRate', { + userA: this.staff.value, + userB: '', + houseId: this.houseId, + timeType: this.lastEndDate ? null : this.activeTotal + '', + lastEndDate: this.lastEndDate, + lastStartDate: this.lastStartDate + }) + .then(res => { + this.allnum1 = res.avg[0] + this.allavg1 = res.avg[1] + // console.log(res) + let first = res.first + let second = res.second + this.lineOptsect2.categories = [] + this.lineOptsect2.series = [{ + name: first[0].accountName, + data: [] + }] + first.map(item => { + this.lineOptsect2.categories.push(item.statDate.slice(5, 10)) this.lineOptsect2.series[0].data.push(item.sumFraction) }) - }) + }) }, // 团队接待趋势 - receptionCountList(){ - if(this.teamList.length==0){ - this.teamFlag=false + receptionCountList() { + if (this.teamList.length == 0) { + this.teamFlag = false this.$forceUpdate() return } - this.$u.post('/cusLvStatistics/teamAnalysisExecutionRate',{ - deptIds:this.team.value, - showRank:1, - houseId:this.houseId, - timeType:this.lastEndDate?null:this.activeTotal+'', - lastEndDate:this.lastEndDate, - lastStartDate:this.lastStartDate - }) - .then(res=>{ - // console.log(res) - let result=res.result - this.allnum=res.avg[0] - this.allavg=res.avg[1] + this.$u.post('/cusLvStatistics/teamAnalysisExecutionRate', { + deptIds: this.team.value, + showRank: 1, + houseId: this.houseId, + timeType: this.lastEndDate ? null : this.activeTotal + '', + lastEndDate: this.lastEndDate, + lastStartDate: this.lastStartDate + }) + .then(res => { + // console.log(res) + let result = res.result + this.allnum = res.avg[0] + this.allavg = res.avg[1] // 当选择趋势时 - this.lineOptsect1={} - let allobj={ - categories:[], - series:[] + this.lineOptsect1 = {} + let allobj = { + categories: [], + series: [] } // 先处理时间 // 当选择全部时 // 当选择只有一个时 - let obj={} - obj.data=[] - obj.name=result[0][0].deptName - result[0].map(item=>{ - allobj.categories.push(item.statDate.slice(5,10)) - obj.data.push(item.data) - }) - allobj.series.push(obj) - this.lineOptsect1=allobj - - }) + let obj = {} + obj.data = [] + obj.name = result[0][0].deptName + result[0].map(item => { + allobj.categories.push(item.statDate.slice(5, 10)) + obj.data.push(item.data) + }) + allobj.series.push(obj) + this.lineOptsect1 = allobj + + }) }, //时间切换 tabtimetap(index) { @@ -531,25 +555,25 @@ this.totalTimeShow = true; } else { this.activeTotal = index; - this.lastEndDate='' - this.lastStartDate='' + this.lastEndDate = '' + this.lastStartDate = '' this.getdata() } }, // 获取数据 - getdata(){ + getdata() { this.receptionCountList() this.getReport() this.getRtrent() this.getindexZxl() this.getAward() }, - staffSelectCallback(e,idx){ - if(idx==0){ - this.staff=e[0] + staffSelectCallback(e, idx) { + if (idx == 0) { + this.staff = e[0] this.getAward() - }else{ - this.team=e[0] + } else { + this.team = e[0] this.receptionCountList() } // console.log(e,idx) @@ -557,9 +581,9 @@ //自定义时间 totalTimeChange(e) { console.log(e.startDate, e.endDate) - this.activeTotal=3; - this.lastEndDate=e.endDate - this.lastStartDate=e.startDate + this.activeTotal = 3; + this.lastEndDate = e.endDate + this.lastStartDate = e.startDate this.getdata() }, //指标执行率分析tab @@ -567,108 +591,106 @@ // console.log(index) // 对数据进行分析和处理 // 先处理日期 - let allobj={ + let allobj = { "categories": [], - "series": [ - { - name:'接待量', - data:[] - } - ] + "series": [{ + name: '接待量', + data: [] + }] } - if(index==0){ + if (index == 0) { // 接待量 - this.danwei='单位(次)' - allobj.series[0].name='接待量' - this.allechar.map(item=>{ - allobj.categories.push(item.statDate.slice(5,10)) + this.danwei = '单位(次)' + allobj.series[0].name = '接待量' + this.allechar.map(item => { + allobj.categories.push(item.statDate.slice(5, 10)) allobj.series[0].data.push(item.receptionCount) }) - }else if(index==1){ + } else if (index == 1) { // 平均执行率 - this.danwei='单位(%)' - allobj.series[0].name='平均执行率' - this.allechar.map(item=>{ - allobj.categories.push(item.statDate.slice(5,10)) + this.danwei = '单位(%)' + allobj.series[0].name = '平均执行率' + this.allechar.map(item => { + allobj.categories.push(item.statDate.slice(5, 10)) allobj.series[0].data.push(item.fraction) }) - }else if(index==2){ + } else if (index == 2) { // 接待客户 - this.danwei='单位(个)' - allobj.series[0].name='接待客户' - this.allechar.map(item=>{ - allobj.categories.push(item.statDate.slice(5,10)) + this.danwei = '单位(个)' + allobj.series[0].name = '接待客户' + this.allechar.map(item => { + allobj.categories.push(item.statDate.slice(5, 10)) allobj.series[0].data.push(item.sumCustomer) }) - }else{ + } else { // 录音时长 - this.danwei='单位(min)' - allobj.series[0].name='录音时长' - this.allechar.map(item=>{ - allobj.categories.push(item.statDate.slice(5,10)) + this.danwei = '单位(min)' + allobj.series[0].name = '录音时长' + this.allechar.map(item => { + allobj.categories.push(item.statDate.slice(5, 10)) allobj.series[0].data.push(item.sumDuration) }) } this.bocindex = index; // console.log(allobj) // return - this.lineOptsect=allobj + this.lineOptsect = allobj }, - tapspagek3(index){ - let arr=[] + tapspagek3(index) { + let arr = [] // return // console.log(index,this.allList[index]) - this.allList[index].children.map(item=>{ + this.allList[index].children.map(item => { arr.push({ - name:item.name, - zxl:item.zxl + name: item.name, + zxl: item.zxl }) }) - this.newlisttabinfo1=arr + this.newlisttabinfo1 = arr this.bocindex1 = index; }, //集团对比 - Groupcontrast(){ + Groupcontrast() { uni.navigateTo({ - url: '/pages/center/Piabodata/Groupcontrast' + url: '/pages/center/Piabodata/Groupcontrast' }); }, //团队对比 - Theteamcompared(){ - if(this.teamList.length==0){ + Theteamcompared() { + if (this.teamList.length == 0) { uni.showToast({ - title:'没有团队呢', - icon:'none' + title: '没有团队呢', + icon: 'none' }) return } uni.navigateTo({ - url: '/pages/center/Piabodata/Theteamcompared' + url: '/pages/center/Piabodata/Theteamcompared' }); }, //用户洞察 - toUserinsightinto(){ + toUserinsightinto() { uni.navigateTo({ - url: '/pages/center/Piabodata/Userinsightinto' + url: '/pages/center/Piabodata/Userinsightinto' }); }, //趋势分析 - toTrendAnalysis(){ + toTrendAnalysis() { uni.navigateTo({ - url: '/pages/center/Piabodata/TrendAnalysis' + url: '/pages/center/Piabodata/TrendAnalysis' }); }, //员工分析 - toStaffAnalysis(){ - if(this.staffList.length==0){ + toStaffAnalysis() { + if (this.staffList.length == 0) { uni.showToast({ - title:'没有团队呢', - icon:'none' + title: '没有团队呢', + icon: 'none' }) return } uni.navigateTo({ - url: '/pages/center/Piabodata/StaffAnalysis' + url: '/pages/center/Piabodata/StaffAnalysis' }); } } @@ -681,23 +703,28 @@ background: #FAFAFA; padding-bottom: 60rpx; } - .Piabodata-box{ + + .Piabodata-box { width: 100%; background: #FFFFFF; display: flex; flex-wrap: wrap; padding-bottom: 30rpx; - .Piabodata{ + + .Piabodata { width: 33.3%; - .Piabodata-img{ + + .Piabodata-img { width: 100%; text-align: center; - .Piabodata-img1{ + + .Piabodata-img1 { width: 134rpx; height: 134rpx; } } - .Piabodata-text{ + + .Piabodata-text { width: 100%; text-align: center; font-size: 24rpx; @@ -707,14 +734,17 @@ } } } - .grid:nth-child(1){ - border-right:none ; - border-bottom:none ; + + .grid:nth-child(1) { + border-right: none; + border-bottom: none; } - .grid:nth-child(2){ - border-bottom:none ; + + .grid:nth-child(2) { + border-bottom: none; } - .grid:nth-child(3){ - border-right:none ; + + .grid:nth-child(3) { + border-right: none; } diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index d2b750b..c0aefc6 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -168,7 +168,7 @@ - + {{item.name}} @@ -177,20 +177,20 @@ - - + + - - {{subitem.name}} - + + {{subitem.name}} + 已执行 未执行 - - + + 话术内容 @@ -321,6 +321,7 @@ customerId:item.id, id:'' } + uni.setStorageSync("searchobj", item); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ uni.showToast({ @@ -332,12 +333,12 @@ if(res[0].merge==0){ let newobj = res[0]; uni.navigateTo({ - url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}` + url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` }) }else{ let newobj = res[0]; uni.navigateTo({ - url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` + url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}` }) } }) @@ -389,18 +390,10 @@ this.tipshow=true }, changeshow(item, type) { - if (type == 1) { - item.show = true - } else { - item.show = false - } + item.show = !item.show }, changeshow2(item, type){ - if (type == 1) { - item.show = true - } else { - item.show = false - } + item.show = !item.show }, // 获取评分 getRatelist() { @@ -675,7 +668,7 @@ .Level1che{ width:100%; height: 94rpx; - background: #E0E0E0; + background: #F5F5F5; display: flex; line-height: 94rpx; align-items: center; diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 7c7b575..a6014ac 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -8,9 +8,22 @@ 输入客户姓名/手机号 - - - + + + + + + + 接待时间 + + + 接待时长 + + + 排序 + + + 更多筛选 @@ -154,7 +167,26 @@ - + + + + + 全部 + 今天 + 昨天 + 近7天 + 近30天 + 自定义 + + + 全部 + 0~15min + 15~30min + 30~60min + 60~90min + 90min以上 + + @@ -162,6 +194,17 @@ export default{ data(){ return{ + orderBylist:[ + {label:'全部',value:'0'}, + {label:'创建时间倒序',value:'1'}, + {label:'创建时间正序',value:'2'}, + {label:'接待时间倒序',value:'3'}, + {label:'接待时间正序',value:'4'}, + {label:'执行率正序',value:'5'}, + {label:'执行率倒序',value:'6'}, + {label:'接访次数剩正序',value:'7'}, + {label:'接访次数倒序',value:'8'}, + ], value:'', screenShow:false, selectshow:false, @@ -182,7 +225,16 @@ freeList:[], userInfo:{}, findKeywordsList:[], - isnorefresh:'' + isnorefresh:'', + activeTotal:5, + activeTotal2:0, + totalTimeShow: false, + timeshow:false, + timetushow:false, + soltishow:false, + staTime:'', + endtime:'', + orderBy:'' } }, onLoad(options) { @@ -213,6 +265,53 @@ } }, methods:{ + tapsoltishow(){ + this.soltishow=true; + }, + taptimetuisshow(){ + this.timetushow=true; + }, + taptimeisshow(){ + this.timeshow=true; + }, + //选择标签 + selectCallback2(e){ + this.orderBy=e[0].value; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, + //选择录音时长 + timetap(index){ + this.timetushow=false; + this.activeTotal2=index; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, + //时间选择 + tabtimetap(index){ + this.timeshow=false; + if (index == 4) { + this.totalTimeShow = true; + } else { + this.activeTotal = index; + this.staTime=''; + this.endtime=''; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + } + }, + //自定义时间 + totalTimeChange(e) { + this.staTime=e.startDate; + this.endtime=e.endDate; + this.activeTotal=4; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, recordclick(i){ if(this.screen.record==i){ this.screen.record=null @@ -234,13 +333,41 @@ }) }, getMyCustom(){ + let dateType=0; + let recDurationInterval=0; + let orderBy=0; + if(this.activeTotal==5){ + dateType=null; + }else if(this.activeTotal==4){ + dateType=null; + }else{ + dateType=this.activeTotal; + } + + if(this.activeTotal2==0){ + recDurationInterval=null + }else{ + recDurationInterval=this.activeTotal2 + } + + if(this.orderBy==0){ + orderBy=null; + }else{ + orderBy=this.orderBy; + } + var parames = { pageNum: this.nextPage, pageSize: 10, query: { projectId:this.buildingID, keywordsId:this.screen.cunsumerTipsid, - agentId:this.screen.agentId + agentId:this.screen.agentId, + dateType:dateType, + staTime:this.staTime, + endtime:this.endtime, + recDurationInterval:recDurationInterval, + orderBy:orderBy } }; if (this.screen.visitRecord > 0) { @@ -363,6 +490,33 @@ height: 100%; background: #F8F8F8; } + + .timeview{ + height: 80rpx; + line-height: 80rpx; + width: 100%; + text-align: center; + border-bottom: 1px solid #F8F8F8; + } + //时间切换的样式 + .boxtittab { + width: 100; + height: 92rpx; + background: #FFFFFF; + border: 1px solid #E0E0E0; + display: flex; + align-items: center; + + .tabbox { + flex: 1; + height: 100%; + text-align: center; + line-height: 92rpx; + color: #666666; + font-size: 28rpx; + } + } + .search-box{ width: 100%; height: 102rpx; @@ -371,7 +525,7 @@ align-items: center; justify-content: center; .search{ - width: 620rpx; + width: 94%; height: 70rpx; display: flex; align-items: center; @@ -411,7 +565,7 @@ .content-tips{ background: #fff; // box-sizing: border-box; - margin-bottom: 20rpx; + margin-top: 20rpx; overflow: hidden; .content-first{ padding: 19rpx 30rpx; diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 9e770f9..ba550f7 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -9,13 +9,10 @@ 输入客户姓名/手机号 - - - - + + + + + + 接待时间 + + + 接待时长 + + + 排序 + + + 更多筛选 + @@ -45,11 +58,15 @@ {{item.agentName}} 代接待 - + + 违禁接待 | 未标记 已标记 + + 无录音 + @@ -143,6 +160,24 @@ + + + 全部 + 今天 + 昨天 + 近7天 + 近30天 + 自定义 + + + 全部 + 0~15min + 15~30min + 30~60min + 60~90min + 90min以上 + + @@ -150,7 +185,18 @@ export default{ data(){ return{ - activeTotal: 2, + orderBylist:[ + {label:'全部',value:'0'}, + {label:'创建时间倒序',value:'1'}, + {label:'创建时间正序',value:'2'}, + {label:'接待时间倒序',value:'3'}, + {label:'接待时间正序',value:'4'}, + {label:'执行率正序',value:'5'}, + {label:'执行率倒序',value:'6'}, + {label:'接访次数剩正序',value:'7'}, + {label:'接访次数倒序',value:'8'}, + ], + activeTotal: 5, value:'', screenShow:false, selectshow:false, @@ -170,10 +216,21 @@ staTime:'', endtime:'', isnorefresh:'', + activeTotal2:0, + timeshow:false, + timetushow:false, + soltishow:false, + orderBy:'' } }, onLoad(options) { this.isnorefresh=options.refresh; + if(options.activeTotal){ + this.activeTotal=options.activeTotal + } + if(options.markAdvisor){ + this.screen.markAdvisor=options.markAdvisor + } }, onShow() { if(this.isnorefresh=='refresh'){ @@ -199,6 +256,53 @@ } }, methods:{ + tapsoltishow(){ + this.soltishow=true; + }, + taptimetuisshow(){ + this.timetushow=true; + }, + taptimeisshow(){ + this.timeshow=true; + }, + //选择标签 + selectCallback2(e){ + this.orderBy=e[0].value; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, + //选择录音时长 + timetap(index){ + this.timetushow=false; + this.activeTotal2=index; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, + //时间选择 + tabtimetap(index){ + this.timeshow=false; + if (index == 4) { + this.totalTimeShow = true; + } else { + this.activeTotal = index; + this.staTime=''; + this.endtime=''; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + } + }, + //自定义时间 + totalTimeChange(e) { + this.staTime=e.startDate; + this.endtime=e.endDate; + this.activeTotal=4; + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, tapThevisiting(item) { if(item.status==0){ uni.showToast({ @@ -218,6 +322,7 @@ bg:0, customerId:item.id, } + uni.setStorageSync("searchobj", item); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ uni.showToast({ @@ -229,11 +334,11 @@ let newobj = res[0]; if(res[0].merge==0){ uni.navigateTo({ - url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}` + url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` }) }else{ uni.navigateTo({ - url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` + url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}` }) } } @@ -243,10 +348,26 @@ }, getMyCustom(){ let dateType=0; - if(this.activeTotal==3){ + let recDurationInterval=0; + let orderBy=0; + if(this.activeTotal==5){ + dateType=null; + }else if(this.activeTotal==4){ dateType=null; }else{ - dateType=this.activeTotal + dateType=this.activeTotal; + } + + if(this.activeTotal2==0){ + recDurationInterval=null + }else{ + recDurationInterval=this.activeTotal2 + } + + if(this.orderBy==0){ + orderBy=null; + }else{ + orderBy=this.orderBy; } var parames = { pageNum: this.nextPage, @@ -258,8 +379,9 @@ endtime:this.endtime, visitRecord:this.screen.visitRecord, markAdvisor:this.screen.markAdvisor, - dateType:dateType - + dateType:dateType, + recDurationInterval:recDurationInterval, + orderBy:orderBy } }; if(this.screen.agentId){ @@ -283,28 +405,6 @@ }) }) }, - - tabtimetap(index){ - if (index == 3) { - this.totalTimeShow = true; - } else { - this.activeTotal = index; - this.staTime=''; - this.endtime=''; - this.nextPage=1; - this.recordList=[]; - this.getMyCustom(); - } - }, - //自定义时间 - totalTimeChange(e) { - this.staTime=e.startDate; - this.endtime=e.endDate; - this.activeTotal=3; - this.nextPage=1; - this.recordList=[]; - this.getMyCustom(); - }, // 筛选 screenshow(){ this.screenShow=true @@ -363,6 +463,31 @@ height: 100%; background: #F8F8F8; } + .timeview{ + height: 80rpx; + line-height: 80rpx; + width: 100%; + text-align: center; + border-bottom: 1px solid #F8F8F8; + } + //时间切换的样式 + .boxtittab { + width: 100; + height: 92rpx; + background: #FFFFFF; + border: 1px solid #E0E0E0; + display: flex; + align-items: center; + + .tabbox { + flex: 1; + height: 100%; + text-align: center; + line-height: 92rpx; + color: #666666; + font-size: 28rpx; + } + } .search-box{ width: 100%; height: 102rpx; @@ -371,7 +496,7 @@ align-items: center; justify-content: center; .search{ - width: 620rpx; + width: 94%; height: 70rpx; display: flex; align-items: center; diff --git a/pages/center/records/recordSearch.vue b/pages/center/records/recordSearch.vue index 406392f..5582585 100644 --- a/pages/center/records/recordSearch.vue +++ b/pages/center/records/recordSearch.vue @@ -12,10 +12,15 @@ {{item.agentName}} 代接待 - + + 违禁接待 | + 未标记 已标记 + + 无录音 + @@ -84,6 +89,7 @@ bg:0, customerId:item.id, } + uni.setStorageSync("searchobj", item); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ uni.showToast({ @@ -95,11 +101,11 @@ let newobj = res[0]; if(res[0].merge==0){ uni.navigateTo({ - url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}` + url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` }) }else{ uni.navigateTo({ - url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` + url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}` }) } } diff --git a/pages/index/guide.vue b/pages/index/guide.vue index 07c4162..83291e0 100644 --- a/pages/index/guide.vue +++ b/pages/index/guide.vue @@ -1,32 +1,27 @@ @@ -68,49 +63,46 @@ }; diff --git a/pages/index/index.vue b/pages/index/index.vue index ba8e7ce..5cc8e3f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -60,7 +60,7 @@ 设备 - + {{equipmentobj.totalNum || 0}} 设备总数 @@ -84,27 +84,22 @@ 实时统计 - - + {{realtimeobj.receptionCount || 0}} 接待量 - + {{realtimeobj.receivingCustomer || 0}} 正在接待 - + {{realtimeobj.tagCustomer || 0}} 未标顾问 - - - - - + - {{realtimeobj.sumDuration || 0}} + {{realtimeobj.sumDuration || 0}} 接待时长 @@ -123,8 +118,7 @@ 本周工作 - - + {{Thisweekobj.receptionCount || 0}} 接待量 @@ -143,30 +137,7 @@ - - - - - + 常用功能 @@ -182,6 +153,8 @@ mode=""> + {{item.name}} @@ -245,6 +218,7 @@ onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); + console.log(this.Menulist) if (this.userInfo.zkProperties.length == 1) { this.buildingID = uni.getStorageSync('buildingID').id; this.buildingname = uni.getStorageSync('buildingID').name; @@ -420,6 +394,38 @@ cancel() { this.Showhiddenunits = false; }, + tapjumpequipment(){ + this.Menulist.forEach(item=>{ + if(item.name=='设备管理'){ + uni.navigateTo({ + url: '/pages/mine/equipment/index' + }); + } + }) + }, + tapjumpreception(i){ + this.Menulist.forEach(item=>{ + if(item.name=='接待记录'){ + if(i==1){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0' + }); + }else if(i==2){ + uni.switchTab({ + url: '/pages/index/customer' + }); + }else if(i==3){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2' + }); + }else{ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=1' + }); + } + } + }) + }, Piabodata(item) { if (item == '销讲数据') { uni.navigateTo({ @@ -437,11 +443,17 @@ uni.navigateTo({ url: '/pages/mine/equipment/index' }); - } else { + } else if(item == '顾问排名') { + uni.navigateTo({ + url: '/pages/center/Piabodata/Employeesstatistics' + }); + }else{ uni.navigateTo({ url: '/pages/center/consumer/index?refresh='+'refresh' }); } + + }, }, diff --git a/pages/learning/Keywordsearch.vue b/pages/learning/Keywordsearch.vue index 45c12df..2c12a61 100644 --- a/pages/learning/Keywordsearch.vue +++ b/pages/learning/Keywordsearch.vue @@ -107,9 +107,7 @@ }, //只有一条的时候 infostust(item){ - console.log("zobudao") - let d = JSON.parse(JSON.stringify([item])) - d[0].onebest="" + uni.setStorageSync("searchobj", item); //写入缓存 const parames = { pageNum: 1, pageSize: 100, @@ -121,12 +119,12 @@ if(res[0].merge==0){ let newobj = res[0]; uni.navigateTo({ - url: `/pages/main/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}` + url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${'2'}` }) }else{ let newobj = res[0]; uni.navigateTo({ - url: `/pages/main/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}` + url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${'2'}` }) } }) diff --git a/pages/login/Setthepassword.vue b/pages/login/Setthepassword.vue index 07c0d76..42f3de5 100644 --- a/pages/login/Setthepassword.vue +++ b/pages/login/Setthepassword.vue @@ -1,5 +1,6 @@