diff --git a/src/api/modules/http.js b/src/api/modules/http.js index 3eb2b47..f305b14 100644 --- a/src/api/modules/http.js +++ b/src/api/modules/http.js @@ -665,6 +665,38 @@ export function findByCusIdcusId(query) { } +// 获取客户信息 +export function personalReceptionRecord(query) { + return request({ + url: 'autoSR/customer/personalReceptionRecord', + method:'get', + params:query + }) +} + +// 获取系统分析 +export function findCARKeywords(query) { + return request({ + url: 'autoSR/matchKeywords/findCARKeywords', + method:'get', + params:query + }) +} + + +// 获取人工校准 +export function findSystemAnalysis(query) { + return request({ + url: 'autoSR/matchKeywords/findSystemAnalysis', + method:'get', + params:query + }) +} + + + + +// 录音文件列表 export function filefindByPage(obj) { return request({ url: 'autoSR/zk/file/findByPage', diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index 08e2909..adaba10 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -432,7 +432,7 @@ export default { }else{ this.$router.push({ path: "/Receive/index", - query: { flag: row.id }, + query: { flag: row.id ,AudioIdx:0}, }); } }) diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue index f5cd2ad..21563a9 100644 --- a/src/views/Receive/index.vue +++ b/src/views/Receive/index.vue @@ -41,14 +41,14 @@
-
负责顾问:李先生
-
接待时长:155min
+
负责顾问:{{userinformationlist.agentName|| ''}}
+
接待时长:{{userinformationlist.mm|| ''}}min
客户等级:A
-
到访次数:3次
-
最近到访:2021-10-01 14:00:00
-
客户阶段:初访
+
到访次数:{{userinformationlist.agentName|| ''}}次
+
最近到访:{{userinformationlist.agentName|| ''}}
+
客户阶段:{{userinformationlist.agentName|| ''}}
@@ -82,7 +82,240 @@
-
+
+
+ +
A
+
+
+ +
B
+
+
+ +
C
+
+
+ +
D
+
+
+ +
E
+
+
+ +
F
+
+
+ +
G
+
+
+ +
H
+
+
+ +
I
+
+
+ +
J
+
+
+ +
K
+
+
+ +
L
+
+
+ +
M
+
+
+ +
N
+
+
+ +
O
+
+
+ +
P
+
+
+
+
+
+
+ + +
+
+ +
A
+
+
+
+
+
+ +
+
+ +
B
+
+
+
+
+
+ +
+
+ +
C
+
+
+
+
+
+ +
+
+ +
D
+
+
+
+
+
+ +
+
+ +
E
+
+
+
+
+
+ +
+
+ +
F
+
+
+
+
+
+ +
+
+ +
G
+
+
+
+
+
+ +
+
+ +
H
+
+
+
+
+
+ +
+
+ +
I
+
+
+
+
+
+ +
+
+ +
J
+
+
+
+
+
+ +
+
+ +
K
+
+
+
+
+
+ +
+
+ +
L
+
+
+
+
+
+ +
+
+ +
M
+
+
+
+
+
+ +
+
+ +
N
+
+
+
+
+
+ +
+
+ +
O
+
+
+
+
+
+ +
+
+ +
P
+
+
+
+
+
+ + + + +
-
+
客户意向
校准
-
- 系统分析 -
-
人工校准
+
系统分析
+
人工校准
- -
-
-
置业需求
+
+ 暂无数据 +
+
+
+
{{item.name}}
-
投资
-
管家
-
婚房
-
山水相逢
-
青山不改
+
{{funche.name}}
-
@@ -240,7 +471,6 @@ export default { dialogFormVisible11:false, dialogFormVisible12:false, dialogFormVisible13:false, - roleindexbiaoji:0, radio:1, form:{ correctWord: '',//正确词 @@ -259,32 +489,38 @@ export default { }, aplayer: null, aplayerSpeedNum: "1", //点击字体更换 - arr: [], + arr: [],//录音文件列表 aplayerId: 0, - aplayerLength: 0, + aplayerLength: 0,//文件个数 tablist:[ {name:'全部',}, {name:'A',}, {name:'b',}, {name:'c',},{name:'c',},{name:'c',},{name:'c',},], roleindex:0, zhixingcenterindex:0, - - fileId:'',//录音文件id + corpusId:0,//录音文件id + fileId:'',//客户id recordPath:'',//播放src transcriptionlist:[],//转写内容 playNow:0, + userinformationlist:{},//客户信息 + kehuyixiangcenterindex:0, + AudioIdx:0,//录音文件顺序 + isd:'', + dshfkjsdkksodofydwfkhwdfkjh:'', + roleindexbiaoji:0, + aplayerSpeedNum:'1',//倍速字体更换 + Getintentionlist:[],//客户意向 + argtextindex:'', }; }, mounted() { this.fileId=this.$route.query.flag; + this.AudioIdx=this.$route.query.AudioIdx; // this.bofangchushihua(); this.init() }, methods: { - //常错词确认 - subMsg(){ - - }, //标记 biaoji(){ this.dialogFormVisible11=true @@ -293,17 +529,196 @@ export default { subMsg11(){ }, + // 获取用户信息 init(){ + this.$api.http.personalReceptionRecord({customerId:this.fileId}).then((res) => { + this.userinformationlist=res.data + this.userinformationlist.endTime=this.userinformationlist.endTime.substring(0, 19); + if(this.userinformationlist.calibration==0){ + this.kehuyixiangcenterindex=0; + }else { + this.kehuyixiangcenterindex=1; + } + this.findCARKeywords() + this.Getsthetransliteratecontent() + }) + }, + //常错词确认 + subMsg(){ + + }, + //常错词点击 + checkMsg(row,index){ + this.aplayer.pause() + this.form.cupid=this.arr[this.aplayerId].id, + this.form.translateHtmlContent=this.arr[this.aplayerId].audioContent; + + let onebest=row.onebest; + this.form.wrongWord =onebest.replace(/<.*?>/ig,""); + this.dialogFormVisible=true; + this.argtextindex=index; + }, + //系统分析切换人工校准 + customerofintention(i){ + this.kehuyixiangcenterindex=i; + this.findCARKeywords() + }, + //获去系统分析,人工校准 + findCARKeywords(){ + this.Getintentionlist=[] + if(this.kehuyixiangcenterindex==0){ + this.$api.http.findCARKeywords({customerId:this.fileId}).then((res) => { + let newlist=res.data ||[]; + if(newlist.length==0){ + this.Getintentionlist=[]; + return + }else{ + newlist.forEach(item=>{ + item.newchildren=[]; + item.children.forEach(fut=>{ + if(fut.selected==0){ + item.newchildren.push(fut) + } + }) + }) + newlist.forEach(item=>{ + item.children.forEach(chen=>{ + if(chen.isInterval==0){ + chen.name=chen.name+chen.unit+'-'+chen.endName+chen.unit; + }else { + chen.name=chen.name; + } + }) + }) + this.Getintentionlist=newlist + } + }) + }else { + this.$api.http.findSystemAnalysis({customerId:this.fileId}).then((res) => { + if(res.data==null){ + this.Getintentionlist=[]; + return + } + res.data.forEach(item=>{ + item.newchildren=[]; + item.children.forEach(fut=>{ + if(fut.selected==0){ + item.newchildren.push(fut) + } + }) + }) + res.data.forEach(item=>{ + item.children.forEach(chen=>{ + if(chen.isInterval==0){ + chen.name=chen.name+chen.unit+'-'+chen.endName+chen.unit; + }else { + chen.name=chen.name; + } + }) + }) + this.Getintentionlist=res.data; + }) + } + }, + //获取转写内容和播放列表 + Getsthetransliteratecontent(){ this.$api.http.findByCusIdcusId({cusId:this.fileId}).then((res) => { let audopbj=res.data; - this.recordPath=audopbj[0].recordPath; - this.transcriptionlist=JSON.parse(audopbj[0].audioContent) + this.recordPath=audopbj[this.AudioIdx].recordPath; + audopbj[this.AudioIdx].audioContent!=''?this.transcriptionlist=JSON.parse(audopbj[this.AudioIdx].audioContent):this.transcriptionlist=[] + // this.transcriptionlist=JSON.parse(audopbj[this.AudioIdx].audioContent) + this.tablist=[]; + if(this.userinformationlist.yon==0){ + this.isd=audopbj[this.AudioIdx].id; + for(var i=0;i<=audopbj[this.AudioIdx].speakerNum;i++){ + if(i==0){ + this.tablist.push({ + name:'全部' + }) + }else if(i==1){ + this.tablist.push({ + name:'A' + }) + }else if(i==2){ + this.tablist.push({ + name:'B' + }) + }else if(i==3){ + this.tablist.push({ + name:'C' + }) + }else if(i==4){ + this.tablist.push({ + name:'D' + }) + }else if(i==5){ + this.tablist.push({ + name:'E' + }) + }else if(i==6){ + this.tablist.push({ + name:'F' + }) + }else if(i==7){ + this.tablist.push({ + name:'G' + }) + }else if(i==8){ + this.tablist.push({ + name:'H' + }) + }else if(i==9){ + this.tablist.push({ + name:'I' + }) + }else if(i==10){ + this.tablist.push({ + name:'J' + }) + }else if(i==11){ + this.tablist.push({ + name:'K' + }) + }else if(i==12){ + this.tablist.push({ + name:'L' + }) + }else if(i==13){ + this.tablist.push({ + name:'M' + }) + }else if(i==14){ + this.tablist.push({ + name:'N' + }) + }else if(i==15){ + this.tablist.push({ + name:'O' + }) + }else { + this.tablist.push({ + name:'P' + }) + } + } + if(audopbj[this.AudioIdx].speaker==null){ + this.roleindexbiaoji=0; + this.dshfkjsdkksodofydwfkhwdfkjh=0; + }else{ + this.tablist[audopbj[this.AudioIdx].speaker].name=this.tablist[audopbj[this.AudioIdx].speaker].name+"顾问"; + this.roleindexbiaoji=audopbj[this.AudioIdx].speaker-1; + this.dshfkjsdkksodofydwfkhwdfkjh=audopbj[this.AudioIdx].speaker-1; + } + } + this.corpusId=audopbj[this.AudioIdx].id; + this.aplayerId=this.audioIdx; + this.aplayerLength=audopbj.length; + this.arr=res.data; this.bofangchushihua() }) }, - recordclick(i){ this.zhixingcenterindex=i; }, @@ -341,20 +756,31 @@ export default { if(this.dataset.bg { - document.querySelector(".center2").scrollTop=$(".center2 .activecoloc")[0].offsetTop - 340 + document.querySelector(".center2").scrollTop=$(".center2 .activecoloc")[0].offsetTop - 380 }) }else{ $(this).removeClass("activecoloc") } }); }, - + //倍速更改 + aplayerSpeed(num){ + this.aplayer.audio.playbackRate=num + this.aplayerSpeedNum=num + }, + //下载 + download(){ + // window.location.href = "${jypath}/zk/file/filedownload?videoSrc="+this.recordPath + }, }, };