|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239 |
- <template>
- <view class="box">
- <!-- 搜索框点击跳转 -->
- <!-- <view>
- <view class="search-box">
- <view class="search" @click="goSearch">
- <view class="search-img">
- <image class="search-img1" src="../../../static/images/search.png" mode=""></image>
- </view>
- <view class="search-text">输入客户姓名/手机号</view>
- </view>
- </view>
- </view> -->
-
- <!-- 选择器 -->
- <view class="boxtittab">
- <!-- 排序 -->
- <view class="tabbox" @click="soltishow = true" :style="sortFilter=='排序'?'color:#666':'color:#409eff'">
- {{ sortFilter }}
- <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
- </view>
- <!-- 接待时间 -->
- <view class="tabbox" @click="timeshow = true" :style="arriveFilter=='接待时间'?'color:#666':'color:#409eff'">
- {{ arriveFilter }}
- <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
- </view>
- <!-- //接待顾问 -->
- <view class="tabbox" @click="selectshow = true" :style="counselorName=='接待顾问'?'color:#666':'color:#409eff'">
- {{ counselorName }}
- <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
- </view>
- <view class="tabbox" @click="screenShow = true">
- 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
- </view>
- </view>
- <view class="count" v-if="recordList.length > 0">
- 筛选结果:<text>{{totalRecords}} </text>条
- </view>
- <view class="content">
- <view v-if="recordList.length==0"
- style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;">
- <view style="width: 100%;padding-top: 200rpx;">
- <view style="width: 100%;text-align: center;">
- <image style="width: 220rpx;height: 200rpx;"
- src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
- </view>
- <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
- </view>
- </view>
- <view v-if="recordList.length!=0" class="content-tips" v-for="(item,index) in recordList" :key='index'
- @click="tapThevisiting(item)">
- <view class="content-first">
- <view class="left">
- <view class="name">{{item.agentName}}</view>
- <view class="status" v-if="item.replaceReception==1">代接待</view>
- <view class="normal-status">{{item.receptionStatusName || ''}}
- </view>
- </view>
- <view class="right" v-if="item.recording!=0">
- <view style="margin-right: 6rpx;">{{item.validInvalidName||''}}</view>
- <view v-if="methodsisshow">
- <text style="color: red;" v-if="item.taboo==1">违禁接待</text>
- <text v-if="item.taboo==1"> |</text>
- </view>
- <view v-if="item.markAdvisor==0" class="">未标记</view>
- <view v-if="item.markAdvisor==1" class="">已标记</view>
- </view>
- <view class="right" v-else>
- <view class="">无录音</view>
- </view>
- </view>
- <view class="content-time">
- {{item.createTime}} | {{item.mm || '0'}}min
- </view>
- <view class="content-sec">
- <view class="left">客户:{{item.name || '--'}}</view>
- <view class="right">销讲业务:{{ item.marketingBusinessName || '--' }}</view>
- </view>
- <view class="content-last">
- <view class="cont-item">
- <view class="count">{{item.visitRecord|| 0}}</view>
- <view class="text">访问次数</view>
- </view>
- <view class="cont-item">
- <view class="count">{{item.wordFraction||0}}%</view>
- <!-- <view class="count">{{item.demand.cusSemanticWordsList?item.demand.cusSemanticWordsList.length:'--'}}</view> -->
- <view class="text">挖掘执行</view>
- </view>
- <view class="cont-item">
- <view class="count">{{item.wordFinishFraction|| 0}}%</view>
- <view class="text">挖掘成功</view>
- </view>
- <view class="cont-item">
- <view class="count" style="color: #2671E2;font-weight:600">{{item.fraction|| 0}}%</view>
- <view class="text">销讲执行率</view>
- </view>
- </view>
- </view>
- </view>
- <!-- 更多筛选 -->
- <u-popup v-model="screenShow" mode="top" height="900">
- <view class="screen">
- <scroll-view scroll-y="true" style="height: 750rpx;">
- <!-- 销讲业务 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="showTemplate=!showTemplate">
- 销讲业务
- <image v-if="showTemplate" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="showTemplate">
- <block v-for="(item,index) in templateList" :key="index">
- <view class="screen-record-item"
- :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
- @click="choice(item)">
- {{item.templateName}}
- </view>
- </block>
- </view>
- </view>
- <!-- 销讲执行率 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="xiaojiangArrow=!xiaojiangArrow">
- 销讲执行率
- <image v-if="xiaojiangArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="xiaojiangArrow">
- <block v-for="(item,index) in xiaojiangList" :key="index">
- <view class="screen-record-item"
- :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
- @click="choice(item)">
- {{item.label}}
- </view>
- </block>
- </view>
- </view>
- <!-- 需求挖掘率 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="wajueArrow=!wajueArrow">
- 需求挖掘率
- <image v-if="wajueArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="wajueArrow">
- <block v-for="(item,index) in wajueList" :key="index">
- <view class="screen-record-item"
- :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
- @click="choice(item)">
- {{item.label}}
- </view>
- </block>
- </view>
- </view>
- <!-- 接待时长 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="jiedaiArrow=!jiedaiArrow">
- 接待时长
- <image v-if="jiedaiArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="jiedaiArrow">
- <block v-for="(item,index) in jiedaiList" :key="index">
- <view class="screen-record-item"
- :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
- @click="choice(item)">
- {{item.label}}
- </view>
- </block>
- </view>
- </view>
- <!-- 录音标识 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="luyinArrow=!luyinArrow">
- 录音标识
- <image v-if="luyinArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="luyinArrow">
- <view class="screen-record-item"
- :class="[screen.validInvalid===0?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisivalidInvalid(0)">
- 有效接待
- </view>
- <view class="screen-record-item"
- :class="[screen.validInvalid===1?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisivalidInvalid(1)">
- 无效接待
- </view>
- <view class="screen-record-item"
- :class="[screen.validInvalid===2?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisivalidInvalid(2)">
- 无录音
- </view>
- <view class="screen-record-item"
- :class="[screen.validInvalid===3?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisivalidInvalid(3)">
- 无效(未审核)
- </view>
- </view>
- </view>
- <!-- 标记顾问 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="markArrow=!markArrow">
- 标记顾问
- <image v-if="markArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="markArrow">
- <view class="screen-record-item"
- :class="[screen.markAdvisor==1?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisitRecord(1)">
- 标记
- </view>
- <view class="screen-record-item"
- :class="[screen.markAdvisor===0?'screen-record-chose':'screen-record-nochose']"
- @click="screenvisitRecord(0)">
- 未标记
- </view>
- </view>
- </view>
- <!-- 到访次数 -->
- <view class="screen-record">
- <view class="screen-record-text" @click="visitArrow=!visitArrow">
- 到访次数
- <image v-if="visitArrow" class="arrow"
- src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
- <image v-else class="arrow"
- src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
- </view>
- <view class="screen-record-tab" v-if="visitArrow">
- <block v-for="(item,index) in visitList" :key="index">
- <view class="screen-record-item"
- :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
- @click="choice(item)">
- {{item.label}}
- </view>
- </block>
- </view>
- </view>
- </scroll-view>
- <view class="screen-foot">
- <view class="screen-foot-reset" @click="reset">
- 重置
- </view>
- <view class="screen-foot-sure" @click="screensure">
- 确定
- </view>
- </view>
- </view>
- </u-popup>
-
-
- <!-- 选择顾问的选择框 -->
- <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></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-popup v-model="timeshow" mode="bottom">
- <view class="timeview" :style="{ color: activeTotal == 15 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(15, '接待时间')">
- 全部</view>
- <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(0, '今天')">
- 今天</view>
- <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(1, '昨天')">
- 昨天</view>
- <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(2, '近7天')">
- 近7天</view>
- <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(5, '近15天')">
- 近15天</view>
- <view class="timeview" :style="{ color: activeTotal == 6 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(6, '近30天')">
- 近30天</view>
- <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(4, '')">
- 自定义</view>
- </u-popup>
-
- <!-- 加载组件 -->
- <loading v-model="LOADING"></loading>
- </view>
- </template>
-
- <script>
- import loading from "@/components/loading/index.vue"
- export default {
- components: {
- loading
- },
- data() {
- return {
- wajueArrow: true,
- zixunArrow: true,
- jiedaiArrow: true,
- luyinArrow: true,
- visitArrow: true,
- xiaojiangArrow: true,
- markArrow: true,
- orderBylist: [{
- label: '全部',
- value: ''
- },
- {
- label: '创建时间倒序',
- value: '1'
- },
- {
- label: '创建时间正序',
- value: '2'
- },
- {
- label: '接待时间倒序',
- value: '3'
- },
- {
- label: '接待时间正序',
- value: '4'
- },
- {
- label: '执行率正序',
- value: '5'
- },
- {
- label: '执行率倒序',
- value: '6'
- },
- {
- label: '接访次数正序',
- value: '7'
- },
- {
- label: '接访次数倒序',
- value: '8'
- },
- {
- label: '需求挖掘率正序',
- value: '9'
- },
- {
- label: '需求挖掘率倒序',
- value: '10'
- }
- ],
- zixunList: [{
- label: '一期住宅',
- value: 1,
- isShow: false,
- }, {
- label: '二期住宅',
- value: 2,
- isShow: false,
- }, {
- label: '三期住宅',
- value: 3,
- isShow: false,
- }, {
- label: '商铺',
- value: 4,
- isShow: false,
- }],
- jiedaiList: [{
- label: '0~15min',
- value: 1,
- isShow: false,
- }, {
- label: '16~30min',
- value: 2,
- isShow: false,
- }, {
- label: '31~60min',
- value: 3,
- isShow: false,
- }, {
- label: '61~90min',
- value: 4,
- isShow: false,
- }, {
- label: '91min及以上',
- value: 5,
- isShow: false,
- }],
- wajueList: [{
- label: '30%及以下',
- value: 1,
- isShow: false,
- }, {
- label: '31%~50%',
- value: 2,
- isShow: false,
- }, {
- label: '51%~70%',
- value: 3,
- isShow: false,
- }, {
- label: '71%及以上',
- value: 4,
- isShow: false,
- }],
- xiaojiangList: [{
- label: '30%及以下',
- value: 1,
- isShow: false,
- }, {
- label: '31%~50%',
- value: 2,
- isShow: false,
- }, {
- label: '51%~70%',
- value: 3,
- isShow: false,
- }, {
- label: '71%及以上',
- value: 4,
- isShow: false,
- }],
- visitList: [{
- label: '首次到访',
- value: 1,
- isShow: false,
- }, {
- label: '第2次到访',
- value: 2,
- isShow: false,
- }, {
- label: '第3次到访',
- value: 3,
- isShow: false,
- }, {
- label: '3次以上',
- value: 4,
- isShow: false,
- }],
- activeTotal: 15,
- value: '',
- screenShow: false, //更多筛选
- selectshow: false, //选择顾问的选择框
- totalTimeShow: false, // 日历
- screen: {
- orderBy: '', //排序
- agentId: '', //顾问id
- markAdvisor: '', //标记顾问
- visitRecord: [], // 到访次数
- // zixunVal: [],// 咨询业务
- wajueVal: [], // 需求挖掘
- xiaojiangVal: [], //销讲执行率
- jiedaiVal: [], // 接待时长
- validInvalid: '', // 录音标识
- marketingBusiness: '', // 选中销讲业务id ,
- },
- freeList: [], //顾问
- recordList: [],
- buildingID: '',
- nextPage: 1,
- totalRecord: "",
- staTime: '',
- endTime: '',
- isnorefresh: '',
- timeshow: false,
- timetushow: false,
- soltishow: false,
- methodsisshow: false,
- userInfo: {},
- totalRecords: '',
- keywordsId: '',
- isRefresh: false,
- // 筛选文字展示
- sortFilter: '排序',
- arriveFilter: '接待时间',
- counselorName: '接待顾问',
- source: '', //从挖掘分析页跳转来的
-
-
- templateList: [], // 销讲业务
- showTemplate: true, // 展示销讲业务
- }
- },
- onLoad(options) {
- this.LOADING = true
- this.isnorefresh = options.refresh;
-
- if (options.source) {
- this.source = options.source
- }
- if (options.activeTotal) {
- this.activeTotal = Number(options.activeTotal)
- }
-
- if (options.markAdvisor) {
- this.screen.markAdvisor = Number(options.markAdvisor)
- }
-
- if (options.validInvalid) {
- this.screen.validInvalid = Number(options.validInvalid)
- }
- if (options.keywordsId) {
- this.keywordsId = Number(options.keywordsId)
- }
-
- if (options.staTime) {
- this.staTime = options.staTime;
- this.endTime = options.endtime;
- }
- if (this.keywordsName) {
-
- }
- },
- onShow() {
- this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
- if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
- this.methodsisshow = false;
- } else {
- this.methodsisshow = true;
- }
- if (this.isnorefresh == 'refresh') {
- this.buildingID = uni.getStorageSync('buildingID').id;
- this.recordList = [];
- this.nextPage = 1;
- this.isRefresh = false;
- this.getRecordsList()
- this.getFreeList();
- this.getMarketingBusiness()
- this.isnorefresh = '';
- }
- },
- onPullDownRefresh() {
- this.isRefresh = true;
- this.nextPage = 1;
- this.getRecordsList()
- setTimeout(function() {
- uni.stopPullDownRefresh();
- }, 1000);
- },
- onReachBottom() {
- if (this.totalRecord == this.nextPage) {
- uni.showToast({
- icon: 'none',
- title: '到底了',
- duration: 2000
- });
- return
- } else {
- this.nextPage += 1;
- this.getRecordsList();
- this.isRefresh = false;
- }
- },
- methods: {
-
- // 获取销讲业务
- getMarketingBusiness() {
- this.$u.get('/customer/marketingBusiness', {
- houseId: this.buildingID,
- }).then(res => {
- this.templateList = res.map(item => {
- return {
- ...item,
- isShow: false,
- }
- })
- })
- },
-
- choice(item) {
- item.isShow = !item.isShow;
- },
- //选择排序
- selectCallback2(e) {
- this.sortFilter = e[0].label;
- this.screen.orderBy = e[0].value;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getRecordsList();
- },
- //时间选择 -到访-接待时间
- tabtimetap(index, text) {
- this.timeshow = false;
- if (text) this.arriveFilter = text
- if (index == 4) {
- this.totalTimeShow = true;
- } else {
- this.activeTotal = index;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getRecordsList();
- }
- },
- //自定义时间
- totalTimeChange(e) {
- this.staTime = e.startDate;
- this.endTime = e.endDate;
- this.activeTotal = 4;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getRecordsList();
- },
- tapThevisiting(item) {
- uni.showLoading({
- title: '加载中',
- mask: true
- });
- if (item.status == 0) {
- setTimeout(function() {
- uni.hideLoading();
- }, 2000);
- uni.showToast({
- icon: "none",
- title: "排队中"
- })
- return
- } else {
- // if(this.source=='wajue'){
- // let parames1 = {
- // marketingId: this.keywordsId,
- // customerId: item.id,
- // type: '1'
- // }
- // this.$u.post("/corpus/pinWordMatching", parames1).then(res => {
- // let items = JSON.parse(res[0].transferContent)
- // uni.setStorageSync("searchobj", items); //写入缓存
- // }).catch(e => {
-
- // })
- // }
-
- const parames = {
- pageNum: 1,
- pageSize: 100,
- query: {
- customerId: item.id,
- }
- }
- var item1 = {
- bg: 0,
- customerId: item.id,
- wordFraction: item.wordFraction
- }
-
- uni.setStorageSync("searchobj", item1); //写入缓存
- uni.setStorageSync("entrance", 1); //写入缓存
- this.$u.post("/corpus/findByPage", parames).then(res => {
- if (res == null) {
- setTimeout(function() {
- uni.hideLoading();
- }, 2000);
- uni.showToast({
- icon: "none",
- title: "暂无音频"
- })
- return
- } else {
- setTimeout(function() {
- uni.hideLoading();
- }, 2000);
- let newobj = res[0];
- if (res[0].merge == 0) {
- uni.navigateTo({
- url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}&wordFraction=${item.wordFraction}`
- })
- } else {
- uni.navigateTo({
- url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
- })
- }
- }
- })
- }
-
- },
- // 获取接待记录列表
- getRecordsList() {
- this.screen.visitRecord = []
- this.screen.jiedaiVal = []
- this.screen.wajueVal = []
- this.screen.xiaojiangVal = []
- let dateType = 0;
- if ((this.activeTotal == 15) || (this.activeTotal == 4)) { // 选择全部和自定义
- dateType = null;
- } else {
- dateType = this.activeTotal;
- this.staTime = ''
- this.endTime = ''
- }
- // 到访次数
- 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)
- })
- var parames = {
- pageNum: this.nextPage,
- pageSize: 10,
- query: {
- projectId: this.buildingID,
- keywordsId: this.keywordsId,
- staTime: this.staTime, // 接待时间
- endTime: this.endTime, // 接待时间
- agentId: this.screen.agentId, // 顾问ID
- 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.screen.orderBy == '' ? '' : this.screen.orderBy, //排序
- validInvalid: this.screen.validInvalid, //录音标识
- clientStage: this.screen.clientStage, // 客户阶段
- recording: this.screen.validInvalid == 2 ? 0 : null // 录音
- }
- };
- let ars = []
- this.templateList.forEach(item => {
- if (item.isShow) {
- ars.push(item.id)
- }
- })
- parames.query.marketingBusiness = ars.join(',')
- if (this.screen.agentId) {
- parames.query.agentId = this.screen.agentId
- }
- this.$u.post("/customer/findbypage", parames).then(data => {
- this.LOADING = false
- if (this.staTime && this.endTime) {
- this.arriveFilter = `${this.staTime}-${this.endTime}`
- }
- var list = data.results || [];
- if (this.isRefresh) {
- this.recordList = list;
- } else {
- this.recordList = [...this.recordList, ...list];
- }
- this.totalRecord = data.totalPage;
- this.totalRecords = data.totalRecord;
- }).catch(e => {
- this.LOADING = false
- })
- },
- //获取顾问列表
- getFreeList() {
- if (this.userInfo.dataCode == 6) { // 顾问角色登录时只显示自己
- this.freeList = [{
- label: this.userInfo.name,
- value: this.userInfo.accountId
- }]
- } else {
- this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
- houseId: this.buildingID
- }).then(res => {
- this.freeList = res;
- this.freeList.forEach(item => {
- item.label = item.name;
- item.value = item.accountId
- })
- this.freeList.unshift({
- label: '全部',
- value: ''
- })
-
- })
- }
- },
- actionSelectCallback(e) {
- this.screen.agentId = e[0].value;
- this.counselorName = e[0].label;
- this.recordList = [];
- this.nextPage = 1;
- this.isRefresh = false;
- this.getRecordsList();
- },
- reset() {
- this.screen.agentId = ''
- this.screen.jiedaiVal = ''
- this.screen.validInvalid = ''
- this.screen.markAdvisor = ''
- this.screen.orderBy = '';
- this.sortFilter = '排序';
- this.arriveFilter = '到访时间';
- this.staTime = '';
- this.endTime = '';
- this.nextPage = 1;
- this.activeTotal = 15;
- this.recordList = [];
- this.counselorName = '接待顾问';
- this.visitList.map(i => {
- i.isShow = false
- })
- this.jiedaiList.map(i => {
- i.isShow = false
- })
- this.wajueList.map(i => {
- i.isShow = false
- })
- this.xiaojiangList.map(i => {
- i.isShow = false
- })
- this.nextPage = 1;
- this.recordList = [];
- this.getRecordsList();
- },
- //标记顾问
- screenvisitRecord(i) {
- // 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 = ''
- } else {
- this.screen.validInvalid = i
- }
- },
- screensure() {
- this.screenShow = false;
- this.recordList = [];
- this.nextPage = 1;
- this.isRefresh = false;
- this.getRecordsList();
- },
- goSearch() {
- uni.navigateTo({
- url: '/pages/center/records/recordSearch'
- });
- },
- },
- }
- </script>
-
- <style lang="scss" scoped>
- .box {
- width: 100%;
- height: 100%;
- background: #F8F8F8;
- }
-
- .count {
- width: 100%;
- height: 60rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #fff;
-
- text {
- color: #F71616;
- }
- }
-
- .timeview {
- height: 80rpx;
- line-height: 80rpx;
- width: 100%;
- text-align: center;
- border-bottom: 1px solid #F8F8F8;
- }
-
- //时间切换的样式
- .boxtittab {
- position: sticky;
- top: var(--window-top);
- z-index: 999;
- width: 100;
- height: 92rpx;
- background: #FFFFFF;
- border-bottom: 1px solid #E0E0E0;
- display: flex;
- align-items: center;
-
- .tabbox {
- flex: 1;
- height: 100%;
- text-align: center;
- line-height: 92rpx;
- color: #666666;
- font-size: 28rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- /* 将对象作为弹性伸缩盒子模型显示 */
- -webkit-line-clamp: 1;
- /* 控制最多显示几行 */
- -webkit-box-orient: vertical;
- /* 设置或检索伸缩盒对象的子元素的排列方式 */
- }
- }
-
- .search-box {
- width: 100%;
- height: 102rpx;
- background: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
-
- .search {
- width: 94%;
- height: 70rpx;
- display: flex;
- align-items: center;
- background: #F8F8F8;
- border-radius: 33rpx;
-
- .search-img {
- width: 26rpx;
- height: 30rpx;
- margin-left: 20rpx;
-
- .search-img1 {
- width: 100%;
- height: 100%;
- margin-top: 2rpx;
- }
- }
-
- .search-text {
- font-size: 28rpx;
- font-weight: 400;
- color: #999999;
- margin-left: 10rpx;
- }
- }
-
- .search-screen {
- width: 40rpx;
- height: 40rpx;
- margin-left: 30rpx;
-
- .search-screen1 {
- width: 100%;
- height: 100%;
- }
- }
- }
-
- .content {
- .content-tips {
- background: #fff;
- box-sizing: border-box;
- overflow: hidden;
- margin-top: 20rpx;
- padding: 30rpx;
-
- .content-first {
- display: flex;
- justify-content: space-between;
-
- .left {
- display: flex;
- align-items: center;
-
- .img {
- width: 52rpx;
- height: 52rpx;
- background: #FFFFFF;
- border: 1px solid #C9C9C9;
- border-radius: 50%;
- text-align: center;
- line-height: 52rpx;
- }
-
- .name {
- font-weight: 600;
- color: #333333;
- margin-right: 10rpx;
- font-size: 30rpx;
- }
-
- .status {
- width: 110rpx;
- height: 42rpx;
- background: #FFF9F5;
- border-radius: 4rpx;
- font-size: 26rpx;
- font-weight: 400;
- color: #EC8D49;
- line-height: 42rpx;
- text-align: center;
- margin: 0 10rpx;
- }
-
- .normal-status {
- color: red;
- }
- }
-
- .right {
- display: flex;
- margin-top: 11rpx;
-
- .point {
- width: 12rpx;
- height: 12rpx;
- background: #2B6EFF;
- border-radius: 50%;
- margin-right: 9rpx;
- margin-top: 16rpx;
-
- }
- }
- }
-
- .content-sec {
- display: flex;
- justify-content: space-between;
- margin: 24rpx 0;
-
- .left {
- flex-grow: 1;
- height: 40rpx;
- font-size: 28rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 40rpx;
- }
-
- .right {
- flex-shrink: 0;
- width: 340rpx;
- height: 40rpx;
- font-size: 28rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 40rpx;
- text-align: right;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
-
- .content-time {
- font-size: 28rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 40rpx;
- padding: 20rpx 0 24rpx;
- border-bottom: 1px solid #E0E0E0;
- }
-
- .content-last {
- display: flex;
- justify-content: space-around;
-
- .cont-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
-
- .count {
- height: 42rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #000000;
- line-height: 42rpx;
- margin-bottom: 16rpx;
- }
-
- .text {
- height: 32rpx;
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #666666;
- line-height: 32rpx;
- }
- }
- }
- }
- }
-
- // 这是弹出层
- .screen {
- width: 750rpx;
-
- .screen-counselor {
- display: flex;
- height: 106rpx;
- padding: 0 30rpx;
- box-sizing: border-box;
- border-bottom: 1px solid #EEEEEE;
-
- .screen-text {
- margin: 40rpx 0 36rpx 0;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 30rpx;
- }
-
- .screen-sel {
- display: flex;
- justify-content: space-between;
- width: 500rpx;
- margin-left: 60rpx;
-
- .screen-sel-img {
- margin: 40rpx 0 36rpx 0;
- width: 14rpx;
- height: 30rpx;
- }
-
- .screen-inp {
- margin-top: 20rpx;
- }
- }
- }
-
- .screen-record {
- overflow: hidden;
- padding: 0 30rpx;
- box-sizing: border-box;
- border-bottom: 1px solid #e0e0e0;
-
- .screen-record-text {
- padding: 30rpx 0;
- font-size: 30rpx;
- font-weight: 600;
- color: #333333;
- line-height: 30rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
-
- .arrow {
- width: 30rpx;
- height: 14rpx;
- }
- }
-
- .screen-record-tab {
- margin-top: 30rpx;
- padding-bottom: 10rpx;
- display: flex;
- flex-wrap: wrap;
-
- .screen-record-item {
- min-width: 150rpx;
- padding: 0 14rpx;
- height: 60rpx;
- border-radius: 8rpx;
- text-align: center;
- line-height: 60rpx;
- margin: 0 22rpx 22rpx 0;
-
- &:nth-child(4n) {
- margin-right: 0;
- }
- }
-
- .screen-record-chose {
- background: #F1F6FD;
- color: #2671E2;
- }
-
- .screen-record-nochose {
- background: #F7F8FA;
- color: #333;
- }
-
- }
- }
-
- .screen-foot {
- width: 100%;
- height: 78rpx;
- display: flex;
- margin: 30rpx 30rpx 0;
-
- .screen-foot-reset {
- width: 176rpx;
- height: 78rpx;
- line-height: 78rpx;
- background: #FFFFFF;
- border-radius: 8rpx;
- border: 1px solid #2671E2;
- margin-right: 30rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #2671E2;
- text-align: center;
- }
-
- .screen-foot-sure {
- width: 484rpx;
- height: 78rpx;
- line-height: 78rpx;
- background: #2671E2;
- border: 1px solid #2671E2;
- border-radius: 8rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- text-align: center;
- }
- }
- }
- </style>
|