@@ -330,7 +330,7 @@ | |||||
Toview(){ | Toview(){ | ||||
//跳转到接待记录 | //跳转到接待记录 | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/center/records/index' | |||||
url: '/pages/center/records/index?refresh=refresh' | |||||
}); | }); | ||||
}, | }, | ||||
// 需求挖掘分析-简报 | // 需求挖掘分析-简报 | ||||
@@ -398,14 +398,11 @@ | |||||
}else{ | }else{ | ||||
categories2 = [] | categories2 = [] | ||||
} | } | ||||
let categories3 =[] | |||||
categories1.forEach(item1=>{ | |||||
categories2.forEach(item2=>{ | |||||
categories3.push(item1+ '/' + item2) | |||||
}) | |||||
}) | |||||
let categories3 = [] | |||||
for(let i=0;i<categories1.length;i++){ | |||||
categories3.push(categories1[i]+'/'+categories2[i]) | |||||
} | |||||
this.lineOptsect.categories = categories3 | this.lineOptsect.categories = categories3 | ||||
console.log(this.lineOptsect.categories) | |||||
}) | }) | ||||
}, | }, | ||||
// 获取团队列表 | // 获取团队列表 | ||||
@@ -171,7 +171,7 @@ | |||||
<view class="screen"> | <view class="screen"> | ||||
<scroll-view scroll-y="true" style="height: 700rpx;"> | <scroll-view scroll-y="true" style="height: 700rpx;"> | ||||
<!-- 咨询业务 --> | <!-- 咨询业务 --> | ||||
<view class="screen-record"> | |||||
<!-- <view class="screen-record"> | |||||
<view class="screen-record-text" @click="zixunArrow = !zixunArrow"> | <view class="screen-record-text" @click="zixunArrow = !zixunArrow"> | ||||
咨询业务<image | 咨询业务<image | ||||
v-if="zixunArrow" | v-if="zixunArrow" | ||||
@@ -199,7 +199,7 @@ | |||||
</view> | </view> | ||||
</block> | </block> | ||||
</view> | </view> | ||||
</view> | |||||
</view> --> | |||||
<!-- 接待时长 --> | <!-- 接待时长 --> | ||||
<view class="screen-record"> | <view class="screen-record"> | ||||
<view class="screen-record-text" @click="jiedaiArrow = !jiedaiArrow"> | <view class="screen-record-text" @click="jiedaiArrow = !jiedaiArrow"> | ||||
@@ -418,26 +418,6 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</scroll-view> | </scroll-view> | ||||
<!-- <view class="screen-counselor"> | |||||
<view class="screen-text"> | |||||
客户标签 | |||||
</view> | |||||
<view class="screen-sel" @click="selectTipshow = true"> | |||||
<u-input v-model="screen.cunsumerTips" type="text" placeholder='请选择' class="screen-inp" | |||||
disabled /> | |||||
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> | |||||
</view> | |||||
</view> --> | |||||
<!-- <view class="screen-counselor"> | |||||
<view class="screen-text"> | |||||
客户阶段 | |||||
</view> | |||||
<view class="screen-sel" @click="selectPhaseShow = true"> | |||||
<u-input v-model="screen.clientStageName" type="text" placeholder='请选择' class="screen-inp" | |||||
disabled /> | |||||
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> | |||||
</view> | |||||
</view> --> | |||||
<view class="screen-foot"> | <view class="screen-foot"> | ||||
<view class="screen-foot-reset" @click="reset"> 重置 </view> | <view class="screen-foot-reset" @click="reset"> 重置 </view> | ||||
@@ -451,12 +431,6 @@ | |||||
:list="freeList" | :list="freeList" | ||||
@confirm="actionSelectCallback" | @confirm="actionSelectCallback" | ||||
></u-select> | ></u-select> | ||||
<!-- 客户标签 --> | |||||
<!-- <u-select | |||||
v-model="selectTipshow" | |||||
:list="findKeywordsList" | |||||
@confirm="selectCallback" | |||||
></u-select> --> | |||||
<!-- 客户阶段 --> | <!-- 客户阶段 --> | ||||
<u-select | <u-select | ||||
v-model="selectPhaseShow" | v-model="selectPhaseShow" | ||||
@@ -473,7 +447,7 @@ | |||||
<view | <view | ||||
class="timeview" | class="timeview" | ||||
:style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" | :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" | ||||
@click="tabtimetap(5, '到访时间')" | |||||
@click="tabtimetap(5, '接待时间')" | |||||
> | > | ||||
全部</view | 全部</view | ||||
> | > | ||||
@@ -500,8 +474,8 @@ | |||||
> | > | ||||
<view | <view | ||||
class="timeview" | class="timeview" | ||||
:style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }" | |||||
@click="tabtimetap(3, '近30天')" | |||||
:style="{ color: activeTotal == 6 ? '#2B6EFF' : '#333333' }" | |||||
@click="tabtimetap(6, '近30天')" | |||||
> | > | ||||
近30天</view | 近30天</view | ||||
> | > | ||||
@@ -513,6 +487,7 @@ | |||||
自定义</view | 自定义</view | ||||
> | > | ||||
</u-popup> | </u-popup> | ||||
<!-- 画像标签 --> | |||||
<u-popup v-model="huaxiangShow" mode="top" height="850"> | <u-popup v-model="huaxiangShow" mode="top" height="850"> | ||||
<view class="screen"> | <view class="screen"> | ||||
<scroll-view scroll-y="true" style="height: 700rpx;"> | <scroll-view scroll-y="true" style="height: 700rpx;"> | ||||
@@ -547,7 +522,7 @@ | |||||
</view> | </view> | ||||
</scroll-view> | </scroll-view> | ||||
<view class="screen-foot"> | <view class="screen-foot"> | ||||
<view class="screen-foot-reset" @click="reset"> 重置 </view> | |||||
<view class="screen-foot-reset" @click="resetHuaXiang"> 重置 </view> | |||||
<view class="screen-foot-sure" @click="screensure"> 确定 </view> | <view class="screen-foot-sure" @click="screensure"> 确定 </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -585,10 +560,6 @@ export default { | |||||
xiaojiangArrow: false, | xiaojiangArrow: false, | ||||
huaxiangList: [], | huaxiangList: [], | ||||
orderBylist: [ | orderBylist: [ | ||||
{ | |||||
label: "全部", | |||||
value: "0", | |||||
}, | |||||
{ | { | ||||
label: "创建时间倒序", | label: "创建时间倒序", | ||||
value: "1", | value: "1", | ||||
@@ -606,11 +577,11 @@ export default { | |||||
value: "4", | value: "4", | ||||
}, | }, | ||||
{ | { | ||||
label: "执行率正序", | |||||
label: "执行率倒序", | |||||
value: "5", | value: "5", | ||||
}, | }, | ||||
{ | { | ||||
label: "执行率倒序", | |||||
label: "执行率正序", | |||||
value: "6", | value: "6", | ||||
}, | }, | ||||
{ | { | ||||
@@ -723,21 +694,24 @@ export default { | |||||
isShow: false, | isShow: false, | ||||
}, | }, | ||||
], | ], | ||||
value: "", | |||||
screenShow: false, | screenShow: false, | ||||
selectshow: false, | selectshow: false, | ||||
// selectTipshow: false, | |||||
selectPhaseShow: false, | |||||
selectPhaseShow: false,//客户阶段 | |||||
buildingID: "", | buildingID: "", | ||||
screen: { | screen: { | ||||
agentId: "", | |||||
agentIdtext: "", | |||||
visitRecord: [], | |||||
record: [], | |||||
// cunsumerTips: "", | |||||
// cunsumerTipsid: "", | |||||
clientStage: "", | |||||
clientStageName: "", | |||||
staTime: "", | |||||
endTime: "", | |||||
orderBy: "",// 排序 | |||||
agentId: "",//顾问 | |||||
sourceIds: [],// 客户来源 | |||||
level: [],// 客户等级 | |||||
visitRecord: [],// 到访次数 | |||||
// zixunVal: [],// 咨询业务 | |||||
wajueVal: [],// 需求挖掘 | |||||
xiaojiangVal:[],//销讲执行率 | |||||
jiedaiVal: [],// 接待时长 | |||||
validInvalid: null,// 录音标识 | |||||
clientStage: [],// 客户阶段 clientStage | |||||
}, | }, | ||||
stageList: [ | stageList: [ | ||||
{ | { | ||||
@@ -765,24 +739,18 @@ export default { | |||||
value: 5, | value: 5, | ||||
isShow: false, | isShow: false, | ||||
}, | }, | ||||
], | |||||
],//客户阶段 | |||||
recordList: [], | recordList: [], | ||||
nextPage: 1, | nextPage: 1, | ||||
totalRecord: "", | totalRecord: "", | ||||
freeList: [], | freeList: [], | ||||
userInfo: {}, | userInfo: {}, | ||||
findKeywordsList: [], | |||||
phaseList: [], | |||||
phaseList: [],//客户阶段 | |||||
isnorefresh: "", | isnorefresh: "", | ||||
activeTotal: 5, | activeTotal: 5, | ||||
activeTotal2: 0, | |||||
totalTimeShow: false, | totalTimeShow: false, | ||||
timeshow: false, | timeshow: false, | ||||
timetushow: false, | |||||
soltishow: false, | soltishow: false, | ||||
staTime: "", | |||||
endtime: "", | |||||
orderBy: "", | |||||
totalRecords: "", | totalRecords: "", | ||||
visitList: [ | visitList: [ | ||||
{ | { | ||||
@@ -848,7 +816,6 @@ export default { | |||||
this.isRefresh = false; | this.isRefresh = false; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
this.getFreeList(); | this.getFreeList(); | ||||
// this.getfindKeywordsList(); | |||||
this.getWordMiningList(); | this.getWordMiningList(); | ||||
this.getCustomPhase(); | this.getCustomPhase(); | ||||
this.getFromSource(); | this.getFromSource(); | ||||
@@ -881,34 +848,33 @@ export default { | |||||
methods: { | methods: { | ||||
// 获取客户来源 | // 获取客户来源 | ||||
getFromSource() { | |||||
this.$u.get(config.service.sourceList, { | |||||
houseId: this.buildingID | |||||
}) | |||||
.then((res) => { | |||||
console.log(res) | |||||
if(res.length){ | |||||
res.forEach((item) => { | |||||
item.label = item.sourceName | |||||
item.value = item.id | |||||
item.isShow = false | |||||
}) | |||||
} | |||||
this.sourceList = res | |||||
}) | |||||
}, | |||||
getFromSource() { | |||||
this.$u.get(config.service.sourceList, { | |||||
houseId: this.buildingID | |||||
}) | |||||
.then((res) => { | |||||
console.log(res) | |||||
if(res.length){ | |||||
res.forEach((item) => { | |||||
item.label = item.sourceName | |||||
item.value = item.id | |||||
item.isShow = false | |||||
}) | |||||
} | |||||
this.sourceList = res | |||||
}) | |||||
}, | |||||
// 过滤 | // 过滤 | ||||
resetFilter() { | resetFilter() { | ||||
this.sortFilter = "排序"; | this.sortFilter = "排序"; | ||||
this.orderBy = null; | |||||
this.receptionDuration = "所属顾问"; | |||||
this.arriveFilter = "到访时间"; | this.arriveFilter = "到访时间"; | ||||
this.staTime = ""; | |||||
this.endtime = ""; | |||||
this.screen.orderBy = null; | |||||
this.screen.staTime = ""; | |||||
this.screen.endTime = ""; | |||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.activeTotal = 5; | this.activeTotal = 5; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.receptionDuration = "所属顾问"; | |||||
this.activeTotal2 = 0; | |||||
}, | }, | ||||
choice(item) { | choice(item) { | ||||
item.isShow = !item.isShow; | item.isShow = !item.isShow; | ||||
@@ -925,8 +891,6 @@ export default { | |||||
//选择录音时长 | //选择录音时长 | ||||
timetap(index, text) { | timetap(index, text) { | ||||
if (text) this.receptionDuration = text; | if (text) this.receptionDuration = text; | ||||
this.timetushow = false; | |||||
this.activeTotal2 = index; | |||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.isRefresh = false; | this.isRefresh = false; | ||||
@@ -940,8 +904,8 @@ export default { | |||||
this.totalTimeShow = true; | this.totalTimeShow = true; | ||||
} else { | } else { | ||||
this.activeTotal = index; | this.activeTotal = index; | ||||
this.staTime = ""; | |||||
this.endtime = ""; | |||||
this.screen.staTime = ""; | |||||
this.screen.endTime = ""; | |||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.isRefresh = false; | this.isRefresh = false; | ||||
@@ -950,28 +914,14 @@ export default { | |||||
}, | }, | ||||
//自定义时间 | //自定义时间 | ||||
totalTimeChange(e) { | totalTimeChange(e) { | ||||
this.staTime = e.startDate; | |||||
this.endtime = e.endDate; | |||||
this.screen.staTime = e.startDate; | |||||
this.screen.endTime = e.endDate; | |||||
this.activeTotal = 4; | this.activeTotal = 4; | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.isRefresh = false; | this.isRefresh = false; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
recordclick(i) { | |||||
if (this.screen.record == i) { | |||||
this.screen.record = null; | |||||
} else { | |||||
this.screen.record = i; | |||||
} | |||||
}, | |||||
screenvisitRecord(i) { | |||||
if (this.screen.visitRecord == i) { | |||||
this.screen.visitRecord = ""; | |||||
} else { | |||||
this.screen.visitRecord = i; | |||||
} | |||||
}, | |||||
// 字典表接口 | // 字典表接口 | ||||
getListByType() { | getListByType() { | ||||
this.$u | this.$u | ||||
@@ -1003,67 +953,73 @@ export default { | |||||
}, | }, | ||||
getMyCustom() { | getMyCustom() { | ||||
let dateType = 0; | let dateType = 0; | ||||
let recDurationInterval = 0; | |||||
let orderBy = 0; | |||||
if (this.activeTotal == 5) { | |||||
dateType = null; | |||||
} else if (this.activeTotal == 4) { | |||||
if (this.activeTotal == 5||this.activeTotal == 4) { | |||||
dateType = null; | dateType = null; | ||||
} else { | } 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; | |||||
} | |||||
// 到访次数 | |||||
this.visitList.forEach(i => { | |||||
if(i.isShow) this.screen.visitRecord.push(i.value) | |||||
}) | |||||
// 接待时长 | |||||
this.jiedaiList.forEach(i => { | |||||
if(i.isShow) this.screen.jiedaiVal.push(i.value) | |||||
}) | |||||
// 需求挖掘 | |||||
this.wajueList.forEach(i => { | |||||
if(i.isShow) this.screen.wajueVal.push(i.value) | |||||
}) | |||||
// 销讲执行率 | |||||
this.xiaojiangList.forEach(i => { | |||||
if(i.isShow) this.screen.xiaojiangVal.push(i.value) | |||||
}) | |||||
// 客户等级 | |||||
this.levelList.forEach(i => { | |||||
if(i.isShow) this.screen.level.push(i.value) | |||||
}) | |||||
//客户阶段 | |||||
this.stageList.forEach(i => { | |||||
if(i.isShow) this.screen.clientStage.push(i.value) | |||||
}) | |||||
// 客户来源 | |||||
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=>{ | |||||
if(im.isShow) keywordsIds.push(im.id) | |||||
}) | |||||
} | |||||
}) | |||||
var parames = { | var parames = { | ||||
pageNum: this.nextPage, | pageNum: this.nextPage, | ||||
pageSize: 10, | pageSize: 10, | ||||
query: { | query: { | ||||
projectId: this.buildingID, | projectId: this.buildingID, | ||||
// keywordsId: this.screen.cunsumerTipsid, | |||||
clientStage: this.screen.clientStage, | |||||
agentId: this.screen.agentId, | |||||
dateType: dateType, | |||||
staTime: this.staTime, | |||||
endtime: this.endtime, | |||||
recDurationInterval: recDurationInterval, | |||||
orderBy: orderBy, | |||||
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(','),// 接待时长 | |||||
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,// 排序 | |||||
}, | }, | ||||
}; | }; | ||||
if (this.screen.visitRecord.length > 0) { | |||||
parames.query.visitRecords = this.screen.visitRecord.join(","); | |||||
} | |||||
if (this.screen.record.length > 0) { | |||||
parames.query.level = this.screen.record.join(","); | |||||
} | |||||
// if(this.screen.record==0){ | |||||
// parames.query.levels= ["1"] | |||||
// }else if(this.screen.record==1){ | |||||
// parames.query.levels= ["2"] | |||||
// }else if(this.screen.record==2){ | |||||
// parames.query.levels= ["3"] | |||||
// }else if(this.screen.record==3){ | |||||
// parames.query.levels= ["4"] | |||||
// }else{ | |||||
// parames.query.levels='' | |||||
// } | |||||
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data"); | this.userInfo = uni.getStorageSync("weapp_session_userInfo_data"); | ||||
this.$u | |||||
.post("/customer/customerManagement", parames) | |||||
this.$u.post("/customer/customerManagement", parames) | |||||
.then((data) => { | .then((data) => { | ||||
this.LOADING = false; | this.LOADING = false; | ||||
if (this.staTime && this.endtime) { | |||||
this.arriveFilter = `${this.staTime}-${this.endtime}`; | |||||
if (this.screen.staTime && this.screen.endTime) { | |||||
this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`; | |||||
} | } | ||||
var list = data.results || []; | var list = data.results || []; | ||||
list.forEach((item) => { | list.forEach((item) => { | ||||
@@ -1132,26 +1088,7 @@ export default { | |||||
}); | }); | ||||
}); | }); | ||||
}, | }, | ||||
//获取客户标签 | |||||
getfindKeywordsList() { | |||||
this.findKeywordsList = []; | |||||
this.$u | |||||
.post("/customer/findKeywords", { | |||||
houseId: this.buildingID, | |||||
}) | |||||
.then((res) => { | |||||
res.forEach((item) => { | |||||
if (item.isInterval == 0) { | |||||
item.label = | |||||
item.name + item.unit + "-" + item.endName + item.unit; | |||||
} else { | |||||
item.label = item.name; | |||||
} | |||||
item.value = item.id; | |||||
}); | |||||
this.findKeywordsList = res; | |||||
}); | |||||
}, | |||||
// 获取客户阶段数据 | |||||
getCustomPhase() { | getCustomPhase() { | ||||
this.phaseList = []; | this.phaseList = []; | ||||
this.$u | this.$u | ||||
@@ -1173,12 +1110,14 @@ export default { | |||||
actionSelectCallback(e) { | actionSelectCallback(e) { | ||||
this.screen.agentId = e[0].value; | this.screen.agentId = e[0].value; | ||||
this.receptionDuration = e[0].label; | this.receptionDuration = e[0].label; | ||||
this.nextPage = 1; | |||||
this.recordList = []; | |||||
this.screenShow = false; | |||||
this.huaxiangShow = false; | |||||
this.isRefresh = false; | |||||
this.getMyCustom(); | |||||
}, | }, | ||||
//选择标签 | |||||
// selectCallback(e) { | |||||
// this.screen.cunsumerTips = e[0].label; | |||||
// this.screen.cunsumerTipsid = e[0].value; | |||||
// }, | |||||
// 客户阶段 | |||||
selectPhase(e) { | selectPhase(e) { | ||||
this.screen.clientStageName = e[0].label; | this.screen.clientStageName = e[0].label; | ||||
this.screen.clientStage = e[0].value; | this.screen.clientStage = e[0].value; | ||||
@@ -1187,15 +1126,12 @@ export default { | |||||
reset() { | reset() { | ||||
this.screen = { | this.screen = { | ||||
agentId: "", | agentId: "", | ||||
agentIdtext: "", | |||||
visitRecord: [], | visitRecord: [], | ||||
record: [], | record: [], | ||||
cunsumerTips: "", | |||||
cunsumerTipsid: "", | |||||
clientStage: "", | clientStage: "", | ||||
clientStageName: "", | clientStageName: "", | ||||
}; | }; | ||||
this.zixunList.map((i) => { | |||||
this.sourceList.map((i) => { | |||||
i.isShow = false; | i.isShow = false; | ||||
}); | }); | ||||
this.wajueList.map((i) => { | this.wajueList.map((i) => { | ||||
@@ -1218,15 +1154,28 @@ export default { | |||||
}); | }); | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
// this.screenShow = false; | |||||
this.isRefresh = false; | this.isRefresh = false; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//重置画像标签选择 | |||||
resetHuaXiang(){ | |||||
if(this.huaxiangList.length){ | |||||
this.huaxiangList.forEach(item=>{ | |||||
item.isShow = false; | |||||
if(item.children.length){ | |||||
item.children.forEach(subitem=>{ | |||||
subitem.isShow = false; | |||||
}) | |||||
} | |||||
}) | |||||
} | |||||
}, | |||||
//筛选确认 | //筛选确认 | ||||
screensure() { | screensure() { | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.screenShow = false; | this.screenShow = false; | ||||
this.huaxiangShow = false; | |||||
this.isRefresh = false; | this.isRefresh = false; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
@@ -14,14 +14,17 @@ | |||||
<!-- 选择器 --> | <!-- 选择器 --> | ||||
<view class="boxtittab"> | <view class="boxtittab"> | ||||
<!-- 排序 --> | |||||
<view class="tabbox" @click="soltishow = true"> | <view class="tabbox" @click="soltishow = true"> | ||||
{{ sortFilter }} | {{ sortFilter }} | ||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
</view> | </view> | ||||
<!-- 接待时间 --> | |||||
<view class="tabbox" @click="timeshow = true"> | <view class="tabbox" @click="timeshow = true"> | ||||
{{ arriveFilter }} | {{ arriveFilter }} | ||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
</view> | </view> | ||||
<!-- //顾选择问 --> | |||||
<view class="tabbox" @click="selectshow = true"> | <view class="tabbox" @click="selectshow = true"> | ||||
{{ counselorName }} | {{ counselorName }} | ||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
@@ -71,7 +74,7 @@ | |||||
</view> | </view> | ||||
<view class="content-sec"> | <view class="content-sec"> | ||||
<view class="left">客户:{{item.name || '--'}}</view> | <view class="left">客户:{{item.name || '--'}}</view> | ||||
<view class="right">咨询业务:--</view> | |||||
<!-- <view class="right">咨询业务:--</view> --> | |||||
</view> | </view> | ||||
<view class="content-last"> | <view class="content-last"> | ||||
<view class="cont-item"> | <view class="cont-item"> | ||||
@@ -223,8 +226,9 @@ | |||||
</u-popup> | </u-popup> | ||||
<!-- 选择顾问的选择框 --> | <!-- 选择顾问的选择框 --> | ||||
<u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select> | <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select> | ||||
<!-- 客户阶段 --> | |||||
<u-select v-model="selectPhaseShow" :list="phaseList" @confirm="selectPhase"></u-select> | |||||
<!-- //排序 --> | |||||
<u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select> | |||||
<!-- 日历-自定义 --> | |||||
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | ||||
<!-- 接待时间 -到访时间--> | <!-- 接待时间 -到访时间--> | ||||
<u-popup v-model="timeshow" mode="bottom"> | <u-popup v-model="timeshow" mode="bottom"> | ||||
@@ -240,14 +244,13 @@ | |||||
<view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }" | <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }" | ||||
@click="tabtimetap(2, '近7天')"> | @click="tabtimetap(2, '近7天')"> | ||||
近7天</view> | 近7天</view> | ||||
<view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }" | |||||
@click="tabtimetap(3, '近30天')"> | |||||
<view class="timeview" :style="{ color: activeTotal == 6 ? '#2B6EFF' : '#333333' }" | |||||
@click="tabtimetap(6, '近30天')"> | |||||
近30天</view> | 近30天</view> | ||||
<view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" | <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" | ||||
@click="tabtimetap(4, '')"> | @click="tabtimetap(4, '')"> | ||||
自定义</view> | 自定义</view> | ||||
</u-popup> | </u-popup> | ||||
<u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select> | |||||
<!-- 加载组件 --> | <!-- 加载组件 --> | ||||
<loading v-model="LOADING"></loading> | <loading v-model="LOADING"></loading> | ||||
@@ -271,7 +274,7 @@ | |||||
markArrow: false, | markArrow: false, | ||||
orderBylist: [{ | orderBylist: [{ | ||||
label: '全部', | label: '全部', | ||||
value: '0' | |||||
value: '' | |||||
}, | }, | ||||
{ | { | ||||
label: '创建时间倒序', | label: '创建时间倒序', | ||||
@@ -413,23 +416,19 @@ | |||||
}], | }], | ||||
activeTotal: 5, | activeTotal: 5, | ||||
value: '', | value: '', | ||||
screenShow: false, | |||||
selectshow: false, | |||||
selectPhaseShow: false, | |||||
phaseList: [], | |||||
totalTimeShow: false, | |||||
screenShow: false,//更多筛选 | |||||
selectshow: false,//选择顾问的选择框 | |||||
totalTimeShow: false,// 日历 | |||||
screen: { | screen: { | ||||
orderBy: '',//排序 | |||||
agentId: '', //顾问id | agentId: '', //顾问id | ||||
record: '0', | |||||
markAdvisor: null,//标记顾问 | markAdvisor: null,//标记顾问 | ||||
visitRecord: [],// 到访次数 | visitRecord: [],// 到访次数 | ||||
zixunVal: [],// 咨询业务 | zixunVal: [],// 咨询业务 | ||||
wajueVal: [],// 需求挖掘 | wajueVal: [],// 需求挖掘 | ||||
xiaojiangVal:[],//销讲执行率 | xiaojiangVal:[],//销讲执行率 | ||||
jiedaiVal: [],// 接待时长 | jiedaiVal: [],// 接待时长 | ||||
validInvalid: null, | |||||
clientStage: '', | |||||
clientStageName: '' | |||||
validInvalid: null,// 录音标识 | |||||
}, | }, | ||||
freeList: [], //顾问 | freeList: [], //顾问 | ||||
recordList: [], | recordList: [], | ||||
@@ -437,12 +436,11 @@ | |||||
nextPage: 1, | nextPage: 1, | ||||
totalRecord: "", | totalRecord: "", | ||||
staTime: '', | staTime: '', | ||||
endtime: '', | |||||
endTime: '', | |||||
isnorefresh: '', | isnorefresh: '', | ||||
timeshow: false, | timeshow: false, | ||||
timetushow: false, | timetushow: false, | ||||
soltishow: false, | soltishow: false, | ||||
orderBy: '', | |||||
methodsisshow: false, | methodsisshow: false, | ||||
userInfo: {}, | userInfo: {}, | ||||
totalRecords: '', | totalRecords: '', | ||||
@@ -467,9 +465,8 @@ | |||||
} | } | ||||
if (options.staTime) { | if (options.staTime) { | ||||
this.staTime = options.staTime; | this.staTime = options.staTime; | ||||
this.endtime = options.endtime; | |||||
this.endTime = options.endTime; | |||||
} | } | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | ||||
@@ -488,11 +485,8 @@ | |||||
this.getFreeList(); | this.getFreeList(); | ||||
this.isnorefresh = ''; | this.isnorefresh = ''; | ||||
} | } | ||||
this.getCustomPhase() | |||||
}, | }, | ||||
onPullDownRefresh() { | onPullDownRefresh() { | ||||
this.resetFilter() | |||||
this.isRefresh = true; | this.isRefresh = true; | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.getMyCustom() | this.getMyCustom() | ||||
@@ -515,45 +509,13 @@ | |||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
// 过滤 | |||||
resetFilter() { | |||||
this.sortFilter = '排序'; | |||||
this.orderBy = null; | |||||
this.arriveFilter = '到访时间'; | |||||
this.staTime = ''; | |||||
this.endtime = ''; | |||||
this.nextPage = 1; | |||||
this.activeTotal = 5; | |||||
this.recordList = []; | |||||
this.counselorName = '接待顾问'; | |||||
}, | |||||
choice(item) { | choice(item) { | ||||
item.isShow = !item.isShow; | item.isShow = !item.isShow; | ||||
}, | }, | ||||
getCustomPhase() { | |||||
this.phaseList = [] | |||||
this.$u.post("/customer/lifeTrackDefineList", { | |||||
houseId: this.buildingID | |||||
}).then(res => { | |||||
this.LOADING = false | |||||
let tempArr = [] | |||||
res.forEach(item => { | |||||
let tempObj = {} | |||||
tempObj.label = item.stageName; | |||||
tempObj.value = item.id; | |||||
tempArr.push(tempObj) | |||||
}) | |||||
this.phaseList = tempArr; | |||||
}) | |||||
}, | |||||
selectPhase(e) { | |||||
this.screen.clientStageName = e[0].label; | |||||
this.screen.clientStage = e[0].value; | |||||
}, | |||||
//选择标签 | |||||
//选择排序 | |||||
selectCallback2(e) { | selectCallback2(e) { | ||||
this.sortFilter = e[0].label; | this.sortFilter = e[0].label; | ||||
this.orderBy = e[0].value; | |||||
this.screen.orderBy = e[0].value; | |||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.isRefresh = false; | this.isRefresh = false; | ||||
@@ -567,8 +529,6 @@ | |||||
this.totalTimeShow = true; | this.totalTimeShow = true; | ||||
} else { | } else { | ||||
this.activeTotal = index; | this.activeTotal = index; | ||||
this.staTime = ''; | |||||
this.endtime = ''; | |||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
this.isRefresh = false; | this.isRefresh = false; | ||||
@@ -578,7 +538,7 @@ | |||||
//自定义时间 | //自定义时间 | ||||
totalTimeChange(e) { | totalTimeChange(e) { | ||||
this.staTime = e.startDate; | this.staTime = e.startDate; | ||||
this.endtime = e.endDate; | |||||
this.endTime = e.endDate; | |||||
this.activeTotal = 4; | this.activeTotal = 4; | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = []; | this.recordList = []; | ||||
@@ -643,18 +603,20 @@ | |||||
} | } | ||||
}, | }, | ||||
// 获取接待记录列表 | |||||
getMyCustom() { | getMyCustom() { | ||||
this.screen.visitRecord = [] | this.screen.visitRecord = [] | ||||
this.screen.jiedaiVal = [] | this.screen.jiedaiVal = [] | ||||
this.screen.wajueVal = [] | this.screen.wajueVal = [] | ||||
this.screen.zixunVal = [] | |||||
// this.screen.zixunVal = [] | |||||
this.screen.xiaojiangVal = [] | this.screen.xiaojiangVal = [] | ||||
let dateType = 0; | let dateType = 0; | ||||
let recDurationInterval = 0; | |||||
if ((this.activeTotal == 5)||(this.activeTotal == 3)||(this.activeTotal == 4)) { | |||||
if ((this.activeTotal == 5)||(this.activeTotal == 4)) {// 选择全部和自定义 | |||||
dateType = null; | dateType = null; | ||||
}else { | }else { | ||||
dateType = this.activeTotal; | dateType = this.activeTotal; | ||||
this.staTime = '' | |||||
this.endTime = '' | |||||
} | } | ||||
// 到访次数 | // 到访次数 | ||||
this.visitList.forEach(i => { | this.visitList.forEach(i => { | ||||
@@ -668,38 +630,32 @@ | |||||
this.wajueList.forEach(i => { | this.wajueList.forEach(i => { | ||||
if(i.isShow) this.screen.wajueVal.push(i.value) | if(i.isShow) this.screen.wajueVal.push(i.value) | ||||
}) | }) | ||||
// 咨询业务 | |||||
this.zixunList.forEach(i => { | |||||
if(i.isShow) this.screen.zixunVal.push(i.value) | |||||
}) | |||||
// // 咨询业务 | |||||
// this.zixunList.forEach(i => { | |||||
// if(i.isShow) this.screen.zixunVal.push(i.value) | |||||
// }) | |||||
// 销讲执行率 | // 销讲执行率 | ||||
this.xiaojiangList.forEach(i => { | this.xiaojiangList.forEach(i => { | ||||
if(i.isShow) this.screen.xiaojiangVal.push(i.value) | if(i.isShow) this.screen.xiaojiangVal.push(i.value) | ||||
}) | }) | ||||
// console.log('xiaojiangVal',this.xiaojiangVal) | |||||
// console.log('visitRecord',this.visitRecord) | |||||
// console.log('wajueVal',this.wajueVal) | |||||
// console.log('jiedaiVal',this.jiedaiVal) | |||||
// console.log('zixunVal',this.zixunVal) | |||||
var parames = { | var parames = { | ||||
pageNum: this.nextPage, | pageNum: this.nextPage, | ||||
pageSize: 10, | pageSize: 10, | ||||
query: { | query: { | ||||
projectId: this.buildingID, | projectId: this.buildingID, | ||||
time: 1, | |||||
staTime: this.staTime, | |||||
endtime: this.endtime, | |||||
staTime: this.staTime,// 接待时间 | |||||
endTime: this.endTime,// 接待时间 | |||||
agentId: this.screen.agentId, // 顾问ID | |||||
visitRecordNum: this.screen.visitRecord.join(','),//到访次数 | visitRecordNum: this.screen.visitRecord.join(','),//到访次数 | ||||
wordFractions: this.screen.wajueVal.join(','),//挖掘 | wordFractions: this.screen.wajueVal.join(','),//挖掘 | ||||
duractionNums: this.screen.jiedaiVal.join(','),//接待时长 | duractionNums: this.screen.jiedaiVal.join(','),//接待时长 | ||||
fractions: this.screen.xiaojiangVal.join(','),//销讲 | fractions: this.screen.xiaojiangVal.join(','),//销讲 | ||||
markAdvisor: this.screen.markAdvisor,//标记 | |||||
dateType: dateType, | |||||
recDurationInterval: recDurationInterval, | |||||
markAdvisor: this.screen.markAdvisor,//标记顾问 | |||||
dateType: dateType,//时间类型 | |||||
orderBy: this.orderBy==0?null:this.orderBy,//排序 | orderBy: this.orderBy==0?null:this.orderBy,//排序 | ||||
validInvalid: this.screen.validInvalid, | |||||
clientStage: this.screen.clientStage, | |||||
recording: this.screen.validInvalid == 2 ? 0 : null | |||||
validInvalid: this.screen.validInvalid,//录音标识 | |||||
clientStage: this.screen.clientStage,// 客户阶段 | |||||
recording: this.screen.validInvalid == 2 ? 0 : null // 录音 | |||||
} | } | ||||
}; | }; | ||||
if (this.screen.agentId) { | if (this.screen.agentId) { | ||||
@@ -732,6 +688,10 @@ | |||||
item.label = item.name; | item.label = item.name; | ||||
item.value = item.accountId | item.value = item.accountId | ||||
}) | }) | ||||
this.freeList.unshift({ | |||||
label:'全部', | |||||
value: '' | |||||
}) | |||||
}) | }) | ||||
}, | }, | ||||
actionSelectCallback(e) { | actionSelectCallback(e) { | ||||
@@ -743,20 +703,17 @@ | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
reset() { | reset() { | ||||
this.screen = { | |||||
record: '0', | |||||
markAdvisor: null,//标记顾问 | |||||
visitRecord: [],// 到访次数 | |||||
zixunVal: null,// 咨询业务 | |||||
wajueVal: null,// 需求挖掘率 | |||||
jiedaiVal: null,// 接待时长 | |||||
xiaojiangVal: null,// 销讲执行率 | |||||
validInvalid: null, | |||||
clientStage: '', | |||||
clientStageName: '', | |||||
recording: null, | |||||
visitRecords: "" | |||||
} | |||||
this.screen.agentId ='' | |||||
this.screen.jiedaiVal ='' | |||||
this.sortFilter = '排序'; | |||||
this.orderBy = null; | |||||
this.arriveFilter = '到访时间'; | |||||
this.staTime = ''; | |||||
this.endTime = ''; | |||||
this.nextPage = 1; | |||||
this.activeTotal = 5; | |||||
this.recordList = []; | |||||
this.counselorName = '接待顾问'; | |||||
this.visitList.map(i => { | this.visitList.map(i => { | ||||
i.isShow = false | i.isShow = false | ||||
}) | }) | ||||
@@ -773,20 +730,16 @@ | |||||
this.recordList = []; | this.recordList = []; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
recordclick(i) { | |||||
if (this.screen.visitRecord == i) { | |||||
this.screen.visitRecord = null | |||||
} else { | |||||
this.screen.visitRecord = i | |||||
} | |||||
}, | |||||
//标记顾问 | |||||
screenvisitRecord(i) { | screenvisitRecord(i) { | ||||
console.log(i) | |||||
if (this.screen.markAdvisor == i) { | if (this.screen.markAdvisor == i) { | ||||
this.screen.markAdvisor = null | this.screen.markAdvisor = null | ||||
} else { | } else { | ||||
this.screen.markAdvisor = i | this.screen.markAdvisor = i | ||||
} | } | ||||
}, | }, | ||||
// 录音标识 | |||||
screenvisivalidInvalid(i) { | screenvisivalidInvalid(i) { | ||||
console.log(this.screen.validInvalid, i) | console.log(this.screen.validInvalid, i) | ||||
if (this.screen.validInvalid == i) { | if (this.screen.validInvalid == i) { | ||||
@@ -169,8 +169,7 @@ | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
<view class="tian-view"> | <view class="tian-view"> | ||||
<viwe class="tian-view-t3" style="margin-left: 20rpx;">正确词:<input class="huashu-input" v-model="reswrongword" type="text" placeholder="请输入" /> | |||||
</viwe> | |||||
<viwe class="tian-view-t3" style="margin-left: 20rpx;">正确词:<input class="huashu-input" v-model="reswrongword" type="text" placeholder="请输入" /></viwe> | |||||
</view> | </view> | ||||
</u-modal> | </u-modal> | ||||
@@ -1,10 +1,10 @@ | |||||
// http.js使用域名 | // 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://127.0.0.1:8080/autoSR/api'; // 本地 | ||||
// const baseUrl = 'http://192.168.31.169: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://zkgj.quhouse.com/api'; // 质控正式 | ||||
const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||||
// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | ||||