|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538 |
- <template>
- <view class="box">
- <view class="top-search">
- <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>
- <image
- class="filter-icon"
- @click="screenShow = true"
- src="https://static.quhouse.com/f4feade4a19d413085b591612179457f.png"
- mode=""
- />
- </view>
- <!-- 选择器 -->
- <view class="boxtittab" style="border: none">
- <view class="tabbox" @click="soltishow = true">
- {{ sortFilter }}
- <u-icon
- name="arrow-down"
- size="24"
- style="padding-left: 12rpx"
- ></u-icon>
- </view>
- <view class="tabbox" @click="timeshow = true">
- {{ arriveFilter }}
- <u-icon
- name="arrow-down"
- size="24"
- style="padding-left: 12rpx"
- ></u-icon>
- </view>
- <view class="tabbox" @click="selectshow = true">
- {{ receptionDuration }}
- <u-icon
- name="arrow-down"
- size="24"
- style="padding-left: 12rpx"
- ></u-icon>
- </view>
- <view class="tabbox" @click="huaxiangShow = 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"
- >
- <view style="width: 100%; padding-top: 200rpx; background: #ffffff">
- <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="gotoDetail(item.id)"
- >
- <view class="content-first">
- <view class="left">
- <view v-if="item.level.length == 0"></view>
- <view class="img" v-else-if="item.level == 1">A</view>
- <view class="img" v-else-if="item.level == 2">B</view>
- <view class="img" v-else-if="item.level == 3">C</view>
- <view class="img" v-else-if="item.level == 4">D</view>
- <view class="test">{{ item.name }}</view>
- </view>
- <view class="right">
- <view class="test"
- >销讲执行:<text class="blue"
- >{{ item.fraction || 0 }}%</text
- ></view
- >
- </view>
- </view>
- <view class="content-sec">
- <view class="content-sec-lab">
- <view class="content-sec-lab1"
- >手机号码:{{ item.phone || "--" }}</view
- >
- <view class="content-sec-lab1" style="width: 44%"
- >到访次数:{{ item.visitRecord || "--" }}次/{{
- item.mm || 0
- }}min</view
- >
- </view>
- <view class="content-sec-lab">
- <view class="content-sec-lab1"
- >需求挖掘:{{ item.wordFraction || 0 }}%</view
- >
- <view class="content-sec-lab1" style="width: 44%"
- >画像标签:<text style="font-weight: 600">{{
- item.demand.cusSemanticWordsList.length || 0
- }}</text></view
- >
- </view>
- <!-- <view class="content-sec-lab" style="line-height: 46rpx;">
- 客户标签:
- <text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
- <view v-else class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWordsList"
- :key='ind'>{{che.name}}</view>
- </view> -->
- <view class="content-sec-lab">
- <view class="content-sec-lab1"
- >所属顾问:{{ item.agentName || "--" }}</view
- >
- <view class="content-sec-lab1" style="width: 44%"
- >客户阶段:{{ item.agentName || "--" }}</view
- >
- </view>
- <view class="content-sec-lab">
- <view class="content-sec-lab1"
- >上次到访:{{ item.createTime || "--" }}</view
- >
- </view>
- </view>
- <view class="content-last" v-if="item.isshow">
- <view class="content-last-tab">
- <!-- <image class="icon" src="https://static.quhouse.com/5daebdec0aad4f63a62d3720437034bc.png" mode="" />
- 添加提醒 -->
- </view>
- <view class="content-last-tab">
- <!-- <image class="icon" src="https://static.quhouse.com/b867df5efc72480f8c1f3bc9399c7d6c.png" mode="" />
- 拨打电话 -->
- </view>
- <view class="content-last-tab" @click.stop="gotoFollowUp(item.id)">
- <image
- class="icon"
- src="https://static.quhouse.com/3730fc3a185c4d65ae6a1821601038ab.png"
- mode=""
- />
- 写跟进</view
- >
- </view>
- </view>
- </view>
- <!-- 更多筛选 -->
- <u-popup v-model="screenShow" mode="top" height="850">
- <view class="screen">
- <scroll-view scroll-y="true" style="height: 700rpx;">
- <!-- 咨询业务 -->
- <!-- <view class="screen-record">
- <view class="screen-record-text" @click="zixunArrow = !zixunArrow">
- 咨询业务<image
- v-if="zixunArrow"
- 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="zixunArrow">
- <block v-for="(item, index) in zixunList" :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="levelArrow = !levelArrow">
- 客户等级<image
- v-if="levelArrow"
- 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="levelArrow">
- <block v-for="(item, index) in levelList" :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="sourceArrow = !sourceArrow">
- 客户来源<image
- v-if="sourceArrow"
- 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="sourceArrow">
- <block v-for="(item, index) in sourceList" :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="jieduanArrow = !jieduanArrow"
- >
- 客户阶段<image
- v-if="jieduanArrow"
- 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="jieduanArrow">
- <block v-for="(item, index) in stageList" :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="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="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="selectPhaseShow"
- :list="phaseList"
- @confirm="selectPhase"
- ></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 == 5 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(5, '接待时间')"
- >
- 全部</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 == 6 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(6, '近30天')"
- >
- 近30天</view
- >
- <view
- class="timeview"
- :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }"
- @click="tabtimetap(4)"
- >
- 自定义</view
- >
- </u-popup>
- <!-- 画像标签 -->
- <u-popup v-model="huaxiangShow" mode="top" height="850">
- <view class="screen">
- <scroll-view scroll-y="true" style="height: 700rpx;">
- <view class="screen-record" v-if="item.children.length" v-for="(item,index) in huaxiangList" :key="index">
- <view class="screen-record-text" @click="choice(item)">
- {{item.name}}<image
- v-if="item.isShow"
- 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="item.isShow">
- <block v-for="(subitem, ind) in item.children" :key="ind">
- <view
- class="screen-record-item"
- :class="[
- subitem.isShow ? 'screen-record-chose' : 'screen-record-nochose',
- ]"
- @click="choice(subitem)"
- >
- {{ subitem.name }}
- </view>
- </block>
- </view>
- </view>
- </scroll-view>
- <view class="screen-foot">
- <view class="screen-foot-reset" @click="resetHuaXiang"> 重置 </view>
- <view class="screen-foot-sure" @click="screensure"> 确定 </view>
- </view>
- </view>
- </u-popup>
- <!-- 排序 -->
- <u-select
- v-model="soltishow"
- :list="orderBylist"
- @confirm="selectCallback2"
- ></u-select>
-
- <!-- 加载组件 -->
- <loading v-model="LOADING"></loading>
- </view>
- </template>
-
- <script>
- import loading from "@/components/loading/index.vue";
- const config = require("@/config");
- export default {
- components: {
- loading,
- },
- data() {
- return {
- huaxiangShow: false,
- wajueArrow: false,
- jieduanArrow: false,
- sourceArrow: false,
- levelArrow: false,
- zixunArrow: true,
- jiedaiArrow: false,
- luyinArrow: false,
- visitArrow: false,
- xiaojiangArrow: false,
- huaxiangList: [],
- orderBylist: [
- {
- 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: "15~30min",
- value: 2,
- isShow: false,
- },
- {
- label: "30~60min",
- value: 3,
- isShow: false,
- },
- {
- label: "60~90min",
- value: 4,
- isShow: false,
- },
- {
- label: "90min以上",
- value: 5,
- isShow: false,
- },
- ],
- wajueList: [
- {
- label: "30%以下",
- value: 1,
- isShow: false,
- },
- {
- label: "30%~50%",
- value: 2,
- isShow: false,
- },
- {
- label: "50%~70%",
- value: 3,
- isShow: false,
- },
- {
- label: "70%以上",
- value: 4,
- isShow: false,
- },
- ],
- xiaojiangList: [
- {
- label: "30%以下",
- value: 1,
- isShow: false,
- },
- {
- label: "30%~50%",
- value: 2,
- isShow: false,
- },
- {
- label: "50%~70%",
- value: 3,
- isShow: false,
- },
- {
- label: "70%以上",
- value: 4,
- isShow: false,
- },
- ],
- screenShow: false,
- selectshow: false,
- selectPhaseShow: false,//客户阶段
- buildingID: "",
- screen: {
- staTime: "",
- endTime: "",
- orderBy: "",// 排序
- agentId: "",//顾问
- sourceIds: [],// 客户来源
- level: [],// 客户等级
- visitRecord: [],// 到访次数
- // zixunVal: [],// 咨询业务
- wajueVal: [],// 需求挖掘
- xiaojiangVal:[],//销讲执行率
- jiedaiVal: [],// 接待时长
- validInvalid: null,// 录音标识
- clientStage: [],// 客户阶段 clientStage
- },
- stageList: [
- {
- label: "未知",
- value: 1,
- isShow: false,
- },
- {
- label: "到访",
- value: 2,
- isShow: false,
- },
- {
- label: "意向",
- value: 3,
- isShow: false,
- },
- {
- label: "定金",
- value: 4,
- isShow: false,
- },
- {
- label: "成交",
- value: 5,
- isShow: false,
- },
- ],//客户阶段
- recordList: [],
- nextPage: 1,
- totalRecord: "",
- freeList: [],
- userInfo: {},
- phaseList: [],//客户阶段
- isnorefresh: "",
- activeTotal: 5,
- totalTimeShow: false,
- timeshow: false,
- soltishow: false,
- totalRecords: "",
- visitList: [
- {
- label: "首次到访",
- value: 1,
- isShow: false,
- },
- {
- label: "2次到访",
- value: 2,
- isShow: false,
- },
- {
- label: "3次到访",
- value: 3,
- isShow: false,
- },
- {
- label: "3次以上",
- value: 4,
- isShow: false,
- },
- ],
- levelList: [
- {
- label: "A",
- value: 1,
- isShow: false,
- },
- {
- label: "B",
- value: 2,
- isShow: false,
- },
- {
- label: "C",
- value: 3,
- isShow: false,
- },
- {
- label: "D",
- value: 4,
- isShow: false,
- },
- ],
- sourceList: [],//客户来源
- isRefresh: false,
- // 筛选文字展示
- sortFilter: "排序",
- arriveFilter: "到访时间",
- receptionDuration: "所属顾问",
- };
- },
- onLoad(options) {
- this.LOADING = true;
- this.isnorefresh = options.refresh;
- },
- onShow() {
- if (this.isnorefresh == "refresh") {
- this.buildingID = uni.getStorageSync("buildingID").id;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- this.getFreeList();
- this.getWordMiningList();
- this.getCustomPhase();
- this.getFromSource();
- this.isnorefresh = "";
- }
- },
- onPullDownRefresh() {
- this.resetFilter();
- this.isRefresh = true;
- this.nextPage = 1;
- this.getMyCustom();
- setTimeout(() => {
- uni.stopPullDownRefresh();
- }, 1000);
- },
- onReachBottom() {
- if (this.totalRecord == this.nextPage) {
- uni.showToast({
- icon: "none",
- title: "到底了",
- duration: 2000,
- });
- return;
- } else {
- this.nextPage += 1;
- this.isRefresh = false;
- this.getMyCustom();
- }
- },
-
- 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
- })
- },
- // 过滤
- resetFilter() {
- this.sortFilter = "排序";
- this.receptionDuration = "所属顾问";
- this.arriveFilter = "到访时间";
- this.screen.orderBy = null;
- this.screen.staTime = "";
- this.screen.endTime = "";
- this.nextPage = 1;
- this.activeTotal = 5;
- this.recordList = [];
- },
- choice(item) {
- item.isShow = !item.isShow;
- },
- //选择标签
- selectCallback2(e) {
- this.sortFilter = e[0].label;
- this.orderBy = e[0].value;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- },
- //选择录音时长
- timetap(index, text) {
- if (text) this.receptionDuration = text;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- },
- //时间选择
- tabtimetap(index, text) {
- this.timeshow = false;
- if (text) this.arriveFilter = text;
- if (index == 4) {
- this.totalTimeShow = true;
- } else {
- this.activeTotal = index;
- this.screen.staTime = "";
- this.screen.endTime = "";
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- }
- },
- //自定义时间
- totalTimeChange(e) {
- this.screen.staTime = e.startDate;
- this.screen.endTime = e.endDate;
- this.activeTotal = 4;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- },
- // 字典表接口
- getListByType() {
- this.$u
- .get("/matchKeywords/findPersonalMatchData", {
- customerId: this.customerId,
- })
- .then((res) => {
- // console.log(res)
- res.forEach((item1) => {
- item1.children.map((item) => {
- if (item.isInterval == 0) {
- item.label =
- item.name + item.unit + "-" + item.endName + item.unit;
- } else {
- item.label = item.name;
- }
- item.value = item.id;
- });
- });
- // console.log(res)
- this.allList = res;
- });
- },
- // 客户详情
- gotoDetail(id) {
- uni.navigateTo({
- url: `/pages/center/consumer/consumerDetail?id=${id}`,
- });
- },
- getMyCustom() {
- let dateType = 0;
- if (this.activeTotal == 5||this.activeTotal == 4) {
- dateType = null;
- } else {
- dateType = this.activeTotal;
- }
- // 到访次数
- 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 = {
- pageNum: this.nextPage,
- pageSize: 10,
- query: {
- projectId: this.buildingID,
- fractions: this.screen.xiaojiangVal.join(','),// 销讲执行率
- wordFractions: this.screen.wajueVal.join(','),//需求挖掘
- visitRecordNum: this.screen.visitRecord.join(','),//到访次数
- clientStages: this.screen.clientStage.join(','), // 客户阶段
- sourceIds: this.screen.sourceIds.join(','),// 客户来源
- level: this.screen.level.join(','),// 客户等级
- duractionNums: this.screen.jiedaiVal.join(','),// 接待时长
- 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,// 排序
- },
- };
- this.userInfo = uni.getStorageSync("weapp_session_userInfo_data");
- this.$u.post("/customer/customerManagement", parames)
- .then((data) => {
- this.LOADING = false;
- if (this.screen.staTime && this.screen.endTime) {
- this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`;
- }
- var list = data.results || [];
- list.forEach((item) => {
- if (this.userInfo.dataCode == 6) {
- item.isshow = true;
- } else {
- item.isshow = false;
- }
- });
-
- list.forEach((item) => {
- if (item.demand.cusSemanticWordsList != null) {
- item.demand.cusSemanticWordsList.forEach((che) => {
- if (che.isInterval == 0) {
- che.name = che.name + che.unit + "-" + che.endName + che.unit;
- }
- });
- }
- });
- 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;
- });
- },
- //获取画像标签
- getWordMiningList() {
- this.huaxiangList = [];
- this.$u.get("/corpus/findSelectedWordMiningTemplate", {
- houseId: this.buildingID,
- selected: 1
- })
- .then((res) => {
- // console.log(res)
- if(res.length){
- res.forEach(item=>{
- item.isShow = false;
- if(item.children.length){
- item.children.forEach(subitem=>{
- subitem.isShow = false;
- })
- }
- })
- }
- this.huaxiangList = res;
- });
- },
- //获取顾问列表
- getFreeList() {
- this.freeList = [];
- 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: '',
- })
- });
- },
- // 获取客户阶段数据
- getCustomPhase() {
- this.phaseList = [];
- this.$u
- .post("/customer/lifeTrackDefineList", {
- houseId: this.buildingID,
- })
- .then((res) => {
- let tempArr = [];
- res.forEach((item) => {
- let tempObj = {};
- tempObj.label = item.stageName;
- tempObj.value = item.id;
- tempArr.push(tempObj);
- });
- this.phaseList = tempArr;
- });
- },
- //选择顾问
- actionSelectCallback(e) {
- this.screen.agentId = e[0].value;
- this.receptionDuration = e[0].label;
- this.nextPage = 1;
- this.recordList = [];
- this.screenShow = false;
- this.huaxiangShow = false;
- this.isRefresh = false;
- this.getMyCustom();
- },
- // 客户阶段
- selectPhase(e) {
- this.screen.clientStageName = e[0].label;
- this.screen.clientStage = e[0].value;
- },
- //重置
- reset() {
- this.screen = {
- agentId: "",
- visitRecord: [],
- record: [],
- clientStage: "",
- clientStageName: "",
- };
- this.sourceList.map((i) => {
- i.isShow = false;
- });
- this.wajueList.map((i) => {
- i.isShow = false;
- });
- this.stageList.map((i) => {
- i.isShow = false;
- });
- this.jiedaiList.map((i) => {
- i.isShow = false;
- });
- this.xiaojiangList.map((i) => {
- i.isShow = false;
- });
- this.visitList.map((i) => {
- i.isShow = false;
- });
- this.levelList.map((i) => {
- i.isShow = false;
- });
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- 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() {
- this.nextPage = 1;
- this.recordList = [];
- this.screenShow = false;
- this.huaxiangShow = false;
- this.isRefresh = false;
- this.getMyCustom();
- },
- goSearch() {
- uni.navigateTo({
- url: "/pages/center/consumer/consumerSearch",
- });
- },
- gotoFollowUp(id) {
- uni.navigateTo({
- url: `/pages/center/consumer/newFollowup/newFollowup?id=${id}`,
- });
- },
- },
- };
- </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;
- border-top: 1px solid #e0e0e0;
-
- 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;
- 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;
- /* 设置或检索伸缩盒对象的子元素的排列方式 */
- }
- }
- .top-search {
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: #fff;
- padding-right: 30rpx;
- .filter-icon {
- width: 40rpx;
- height: 40rpx;
- padding: 15rpx;
- }
- .search-box {
- width: 670rpx;
- 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 {
- overflow: hidden;
-
- .content-tips {
- background: #fff;
- margin-top: 20rpx;
- overflow: hidden;
- padding-bottom: 30rpx;
-
- .content-first {
- padding: 19rpx 30rpx;
- display: flex;
- justify-content: space-between;
- box-sizing: border-box;
- font-weight: 400;
- color: #292929;
- height: 90rpx;
- font-size: 30rpx;
- line-height: 30rpx;
-
- .left {
- display: flex;
-
- .img {
- width: 52rpx;
- height: 52rpx;
- border-radius: 50%;
- text-align: center;
- line-height: 50rpx;
- margin-right: 20rpx;
- color: #fff;
- font-size: 30rpx;
- background: #9f61c8;
- }
-
- .test {
- margin-top: 11rpx;
- font-weight: 500;
- color: #333333;
- }
- }
-
- .right {
- display: flex;
- .test {
- margin-top: 11rpx;
- .blue {
- font-size: 32rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #2671e2;
- }
- }
- }
- }
-
- .content-sec {
- border-top: 1px solid #e0e0e0;
- padding: 0 30rpx;
- // padding-bottom: 30rpx;
- position: relative;
-
- .content-sec-lab {
- margin-top: 28rpx;
- display: flex;
- justify-content: space-between;
- font-size: 30rpx;
- font-weight: 400;
- color: #666666;
- line-height: 42rpx;
-
- .content-sec-lab1 {
- color: #333333;
- }
-
- .content-sec-tips {
- max-width: 160rpx;
- height: 46rpx;
- background: #f2f2f2;
- border-radius: 6rpx;
- text-align: center;
- line-height: 26rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: 26rpx;
- font-weight: 400;
- color: #333333;
- margin-right: 20rpx;
- box-sizing: border-box;
- padding: 10rpx 24rpx;
- }
- }
-
- .content-sec-num {
- position: absolute;
- width: 200rpx;
- height: 90rpx;
- background: #f4f8fd;
- border-radius: 12rpx;
- font-weight: 400;
- color: #2671e2;
- line-height: 45rpx;
- bottom: 30rpx;
- right: 30rpx;
- text-align: center;
- }
- }
-
- .content-last {
- display: flex;
- height: 42rpx;
- margin-top: 30rpx;
-
- .content-last-tab {
- width: 33.4%;
- text-align: center;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 78rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- .icon {
- width: 40rpx;
- height: 40rpx;
- margin-right: 12rpx;
- }
- }
- }
- }
- }
-
- // 这是弹出层
- .screen {
- .screen-record {
- overflow: hidden;
- padding: 0 30rpx;
- box-sizing: border-box;
- border-bottom: 1px solid #e0e0e0;
-
- .screen-record-text {
- font-weight: 600;
- padding: 30rpx 0;
- font-size: 30rpx;
- 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>
|