You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085
  1. <template>
  2. <view class="box">
  3. <view>
  4. <view class="search-box">
  5. <view class="search" @click="goSearch">
  6. <view class="search-img">
  7. <image class="search-img1" src="../../../static/images/search.png" mode=""></image>
  8. </view>
  9. <view class="search-text">输入客户姓名/手机号</view>
  10. </view>
  11. </view>
  12. </view>
  13. <!-- 选择器 -->
  14. <view class="boxtittab">
  15. <view class="tabbox" @click="tapsoltishow">
  16. {{ sortFilter }}
  17. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  18. </view>
  19. <view class="tabbox" @click="taptimeisshow">
  20. {{ arriveFilter }}
  21. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  22. </view>
  23. <view class="tabbox" @click="taptimetuisshow">
  24. {{ receptionDuration }}
  25. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  26. </view>
  27. <view class="tabbox" @click="screenshow">
  28. 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  29. </view>
  30. </view>
  31. <view class="count" v-if="recordList.length > 0">
  32. 筛选结果:<text>{{totalRecords}} </text>条
  33. </view>
  34. <view class="content">
  35. <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  36. <view style="width: 100%;padding-top: 200rpx;background: #FFFFFF;">
  37. <view style="width: 100%;text-align: center;">
  38. <image style="width: 220rpx;height: 200rpx;"
  39. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  40. </view>
  41. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  42. </view>
  43. </view>
  44. <view v-if="recordList.length!=0" class="content-tips" v-for="(item,index) in recordList" :key='index'
  45. @click="gotoDetail(item.id)">
  46. <view class="content-first">
  47. <view class="left">
  48. <view v-if="item.level.length==0"></view>
  49. <view class="img" v-else-if="item.level==1">A</view>
  50. <view class="img" v-else-if="item.level==2">B</view>
  51. <view class="img" v-else-if="item.level==3">C</view>
  52. <view class="img" v-else-if="item.level==4">D</view>
  53. <view class="test">{{item.name}}</view>
  54. </view>
  55. <!-- <view class="right">
  56. <view class="point"></view>
  57. <view class="test">定金</view>
  58. </view> -->
  59. </view>
  60. <view class="content-sec">
  61. <view class="content-sec-lab">
  62. 手机号码:<view class="content-sec-lab1">{{item.phone || '--'}}</view>
  63. </view>
  64. <view class="content-sec-lab" style="line-height: 46rpx;">
  65. 客户标签:
  66. <text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
  67. <view v-else class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWordsList"
  68. :key='ind'>{{che.name}}</view>
  69. </view>
  70. <view class="content-sec-lab">
  71. 顾问姓名:<view class="content-sec-lab1">{{item.agentName}}</view>
  72. </view>
  73. <view class="content-sec-lab">
  74. 添加时间:<view class="content-sec-lab1">{{item.createTime}}</view>
  75. </view>
  76. <view class="content-sec-num">
  77. <view class="">{{item.visitRecord || '--'}}次到访</view>
  78. <view class="">{{item.fraction || '0'}}% | {{item.mm || '0'}}<text
  79. style="font-size: 24rpx;">min</text></view>
  80. </view>
  81. </view>
  82. <view class="content-last" v-if="item.isshow==true">
  83. <!-- <view class="content-last-tab">添加提醒</view>
  84. <view class="content-last-tab">拨打电话</view> -->
  85. <view class="content-last-tab" @click.stop="gotoFollowUp(item.id)">写跟进</view>
  86. </view>
  87. </view>
  88. </view>
  89. <u-popup v-model="screenShow" mode="top">
  90. <view class="screen">
  91. <!-- 顾问选择 -->
  92. <view class="screen-counselor">
  93. <view class="screen-text">
  94. 所属顾问
  95. </view>
  96. <view class="screen-sel" @click="selectshow = true">
  97. <u-input v-model="screen.agentIdtext" type="text" placeholder='请选择' class="screen-inp"
  98. disabled />
  99. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  100. </view>
  101. </view>
  102. <view class="screen-counselor">
  103. <view class="screen-text">
  104. 客户标签
  105. </view>
  106. <view class="screen-sel" @click="selectTipshow = true">
  107. <u-input v-model="screen.cunsumerTips" type="text" placeholder='请选择' class="screen-inp"
  108. disabled />
  109. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  110. </view>
  111. </view>
  112. <view class="screen-counselor">
  113. <view class="screen-text">
  114. 客户阶段
  115. </view>
  116. <view class="screen-sel" @click="selectPhaseShow = true">
  117. <u-input v-model="screen.clientStageName" type="text" placeholder='请选择' class="screen-inp"
  118. disabled />
  119. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  120. </view>
  121. </view>
  122. <!-- 录音标示 -->
  123. <view class="screen-record">
  124. <view class="screen-record-text">
  125. 客户等级
  126. </view>
  127. <view class="screen-record-tab">
  128. <block v-for="(item,index) in levelList" :key="index">
  129. <view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  130. @click="choiceLevel(index,item.value)">
  131. {{item.label}}
  132. </view>
  133. </block>
  134. <!-- <view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="recordclick(0)">
  135. A
  136. </view>
  137. <view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)">
  138. B
  139. </view>
  140. <view :class="[screen.record==2?'screen-record-chose':'screen-record-nochose']" @click="recordclick(2)">
  141. C
  142. </view>
  143. <view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" @click="recordclick(3)">
  144. D
  145. </view> -->
  146. </view>
  147. </view>
  148. <!-- <view class="screen-record">
  149. <view class="screen-record-text">
  150. 客户阶段
  151. </view>
  152. <view class="screen-record-tab">
  153. <view v-for="(item,index) in stageList" :key="index">
  154. <view :class="[screen.stage==index?'screen-record-chose':'screen-record-nochose']" @click="screen.stage=index" style="width: 120rpx;">
  155. {{item}}
  156. </view>
  157. </view>
  158. </view>
  159. </view> -->
  160. <view class="screen-record">
  161. <view class="screen-record-text">
  162. 到访次数
  163. </view>
  164. <view class="screen-record-tab">
  165. <block v-for="(item,index) in visitList" :key="index">
  166. <view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  167. @click="choice(index,item.value)">
  168. {{item.label}}
  169. </view>
  170. </block>
  171. <!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(1)">
  172. 首次到访
  173. </view>
  174. <view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(2)">
  175. 2次到访
  176. </view>
  177. <view :class="[screen.visitRecord==3?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(3)">
  178. 3次到访
  179. </view>
  180. <view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(4)">
  181. 3次以上
  182. </view> -->
  183. </view>
  184. </view>
  185. <view class="screen-foot">
  186. <view class="screen-foot-reset" @click="reset">
  187. 重置
  188. </view>
  189. <view class="screen-foot-sure" @click="screensure">
  190. 确定
  191. </view>
  192. </view>
  193. </view>
  194. </u-popup>
  195. <!-- 选择顾问的选择框 -->
  196. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  197. <!-- 客户标签 -->
  198. <u-select v-model="selectTipshow" :list="findKeywordsList" @confirm="selectCallback"></u-select>
  199. <!-- 客户阶段 -->
  200. <u-select v-model="selectPhaseShow" :list="phaseList" @confirm="selectPhase"></u-select>
  201. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  202. <u-popup v-model="timeshow" mode="bottom">
  203. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
  204. @click="tabtimetap(5, '到访时间')">
  205. 全部</view>
  206. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
  207. @click="tabtimetap(0, '今天')">
  208. 今天</view>
  209. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
  210. @click="tabtimetap(1, '昨天')">
  211. 昨天</view>
  212. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
  213. @click="tabtimetap(2, '近7天')">
  214. 近7天</view>
  215. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }"
  216. @click="tabtimetap(3, '近30天')">
  217. 近30天</view>
  218. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4)">
  219. 自定义</view>
  220. </u-popup>
  221. <u-popup v-model="timetushow" mode="bottom">
  222. <view class="timeview" :style="{ color: activeTotal2 == 0 ? '#2B6EFF' : '#333333' }"
  223. @click="timetap(0, '接待时长')">全部
  224. </view>
  225. <view class="timeview" :style="{ color: activeTotal2 == 1 ? '#2B6EFF' : '#333333' }"
  226. @click="timetap(1, '0~15min')">
  227. 0~15min</view>
  228. <view class="timeview" :style="{ color: activeTotal2 == 2 ? '#2B6EFF' : '#333333' }"
  229. @click="timetap(2, '15~30min')">
  230. 15~30min</view>
  231. <view class="timeview" :style="{ color: activeTotal2 == 3 ? '#2B6EFF' : '#333333' }"
  232. @click="timetap(3, '30~60min')">
  233. 30~60min</view>
  234. <view class="timeview" :style="{ color: activeTotal2 == 4 ? '#2B6EFF' : '#333333' }"
  235. @click="timetap(4, '60~90min')">
  236. 60~90min</view>
  237. <view class="timeview" :style="{ color: activeTotal2 == 5 ? '#2B6EFF' : '#333333' }"
  238. @click="timetap(5, '90min以上')">
  239. 90min以上</view>
  240. </u-popup>
  241. <u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select>
  242. <!-- 加载组件 -->
  243. <loading v-model="LOADING"></loading>
  244. </view>
  245. </template>
  246. <script>
  247. import loading from "@/components/loading/index.vue"
  248. export default {
  249. components: {
  250. loading
  251. },
  252. data() {
  253. return {
  254. orderBylist: [{
  255. label: '全部',
  256. value: '0'
  257. },
  258. {
  259. label: '创建时间倒序',
  260. value: '1'
  261. },
  262. {
  263. label: '创建时间正序',
  264. value: '2'
  265. },
  266. {
  267. label: '接待时间倒序',
  268. value: '3'
  269. },
  270. {
  271. label: '接待时间正序',
  272. value: '4'
  273. },
  274. {
  275. label: '执行率正序',
  276. value: '5'
  277. },
  278. {
  279. label: '执行率倒序',
  280. value: '6'
  281. },
  282. {
  283. label: '接访次数正序',
  284. value: '7'
  285. },
  286. {
  287. label: '接访次数倒序',
  288. value: '8'
  289. },
  290. ],
  291. value: '',
  292. screenShow: false,
  293. selectshow: false,
  294. selectTipshow: false,
  295. selectPhaseShow: false,
  296. buildingID: '',
  297. screen: {
  298. agentId: '',
  299. agentIdtext: '',
  300. visitRecord: [],
  301. record: [],
  302. cunsumerTips: '',
  303. cunsumerTipsid: '',
  304. clientStage: '',
  305. clientStageName: ''
  306. },
  307. stageList: ['未知', '到访', '意向', '定金', '成交'],
  308. recordList: [],
  309. nextPage: 1,
  310. totalRecord: '',
  311. freeList: [],
  312. userInfo: {},
  313. findKeywordsList: [],
  314. phaseList: [],
  315. isnorefresh: '',
  316. activeTotal: 5,
  317. activeTotal2: 0,
  318. totalTimeShow: false,
  319. timeshow: false,
  320. timetushow: false,
  321. soltishow: false,
  322. staTime: '',
  323. endtime: '',
  324. orderBy: '',
  325. totalRecords: '',
  326. visitList: [{
  327. label: '首次到访',
  328. value: 1,
  329. isShow: false,
  330. }, {
  331. label: '2次到访',
  332. value: 2,
  333. isShow: false,
  334. }, {
  335. label: '3次到访',
  336. value: 3,
  337. isShow: false,
  338. }, {
  339. label: '3次以上',
  340. value: 4,
  341. isShow: false,
  342. }, ],
  343. levelList: [{
  344. label: 'A',
  345. value: 1,
  346. isShow: false,
  347. }, {
  348. label: 'B',
  349. value: 2,
  350. isShow: false,
  351. }, {
  352. label: 'C',
  353. value: 3,
  354. isShow: false,
  355. }, {
  356. label: 'D',
  357. value: 4,
  358. isShow: false,
  359. }, ],
  360. isRefresh: false,
  361. // 筛选文字展示
  362. sortFilter: '排序',
  363. arriveFilter: '到访时间',
  364. receptionDuration: '接待时长',
  365. }
  366. },
  367. onLoad(options) {
  368. this.LOADING = true
  369. this.isnorefresh = options.refresh;
  370. },
  371. onShow() {
  372. if (this.isnorefresh == 'refresh') {
  373. this.buildingID = uni.getStorageSync('buildingID').id;
  374. this.nextPage = 1;
  375. this.recordList = []
  376. this.isRefresh = false;
  377. this.getMyCustom()
  378. this.getFreeList()
  379. this.getfindKeywordsList()
  380. this.getCustomPhase()
  381. this.isnorefresh = '';
  382. }
  383. },
  384. onPullDownRefresh() {
  385. this.resetFilter()
  386. this.isRefresh = true;
  387. this.nextPage = 1;
  388. this.getMyCustom()
  389. setTimeout(() => {
  390. uni.stopPullDownRefresh()
  391. }, 1000)
  392. },
  393. onReachBottom() {
  394. if (this.totalRecord == this.nextPage) {
  395. uni.showToast({
  396. icon: 'none',
  397. title: '到底了',
  398. duration: 2000
  399. });
  400. return
  401. } else {
  402. this.nextPage += 1;
  403. this.isRefresh = false;
  404. this.getMyCustom();
  405. }
  406. },
  407. methods: {
  408. // 过滤
  409. resetFilter() {
  410. this.sortFilter = '排序';
  411. this.orderBy = null;
  412. this.arriveFilter = '到访时间';
  413. this.staTime = '';
  414. this.endtime = '';
  415. this.nextPage = 1;
  416. this.activeTotal = 5;
  417. this.recordList = [];
  418. this.receptionDuration = '接待时长';
  419. this.activeTotal2 = 0;
  420. },
  421. choice(index, e) {
  422. if (this.visitList[index].isShow == true) {
  423. this.visitList[index].isShow = false;
  424. for (var i = 0; i < this.screen.visitRecord.length; i++) {
  425. if (this.screen.visitRecord[i] === e) {
  426. this.screen.visitRecord.splice(i, 1);
  427. }
  428. }
  429. } else {
  430. this.visitList[index].isShow = true;
  431. this.screen.visitRecord.push(e)
  432. }
  433. },
  434. choiceLevel(index, e) {
  435. if (this.levelList[index].isShow == true) {
  436. this.levelList[index].isShow = false;
  437. for (var i = 0; i < this.screen.record.length; i++) {
  438. if (this.screen.record[i] === e) {
  439. this.screen.record.splice(i, 1);
  440. }
  441. }
  442. } else {
  443. this.levelList[index].isShow = true;
  444. this.screen.record.push(e)
  445. }
  446. },
  447. tapsoltishow() {
  448. this.soltishow = true;
  449. },
  450. taptimetuisshow() {
  451. this.timetushow = true;
  452. },
  453. taptimeisshow() {
  454. this.timeshow = true;
  455. },
  456. //选择标签
  457. selectCallback2(e) {
  458. this.sortFilter = e[0].label;
  459. this.orderBy = e[0].value;
  460. this.nextPage = 1;
  461. this.recordList = [];
  462. this.isRefresh = false;
  463. this.getMyCustom();
  464. },
  465. //选择录音时长
  466. timetap(index, text) {
  467. if (text) this.receptionDuration = text
  468. this.timetushow = false;
  469. this.activeTotal2 = index;
  470. this.nextPage = 1;
  471. this.recordList = [];
  472. this.isRefresh = false;
  473. this.getMyCustom();
  474. },
  475. //时间选择
  476. tabtimetap(index, text) {
  477. this.timeshow = false;
  478. if (text) this.arriveFilter = text
  479. if (index == 4) {
  480. this.totalTimeShow = true;
  481. } else {
  482. this.activeTotal = index;
  483. this.staTime = '';
  484. this.endtime = '';
  485. this.nextPage = 1;
  486. this.recordList = [];
  487. this.isRefresh = false;
  488. this.getMyCustom();
  489. }
  490. },
  491. //自定义时间
  492. totalTimeChange(e) {
  493. this.staTime = e.startDate;
  494. this.endtime = e.endDate;
  495. this.activeTotal = 4;
  496. this.nextPage = 1;
  497. this.recordList = [];
  498. this.isRefresh = false;
  499. this.getMyCustom();
  500. },
  501. recordclick(i) {
  502. if (this.screen.record == i) {
  503. this.screen.record = null
  504. } else {
  505. this.screen.record = i
  506. }
  507. },
  508. screenvisitRecord(i) {
  509. if (this.screen.visitRecord == i) {
  510. this.screen.visitRecord = ''
  511. } else {
  512. this.screen.visitRecord = i
  513. }
  514. },
  515. // 客户详情
  516. gotoDetail(id) {
  517. uni.navigateTo({
  518. url: `/pages/center/consumer/consumerDetail?id=${id}`
  519. })
  520. },
  521. getMyCustom() {
  522. let dateType = 0;
  523. let recDurationInterval = 0;
  524. let orderBy = 0;
  525. if (this.activeTotal == 5) {
  526. dateType = null;
  527. } else if (this.activeTotal == 4) {
  528. dateType = null;
  529. } else {
  530. dateType = this.activeTotal;
  531. }
  532. if (this.activeTotal2 == 0) {
  533. recDurationInterval = null
  534. } else {
  535. recDurationInterval = this.activeTotal2
  536. }
  537. if (this.orderBy == 0) {
  538. orderBy = null;
  539. } else {
  540. orderBy = this.orderBy;
  541. }
  542. var parames = {
  543. pageNum: this.nextPage,
  544. pageSize: 10,
  545. query: {
  546. projectId: this.buildingID,
  547. keywordsId: this.screen.cunsumerTipsid,
  548. clientStage: this.screen.clientStage,
  549. agentId: this.screen.agentId,
  550. dateType: dateType,
  551. staTime: this.staTime,
  552. endtime: this.endtime,
  553. recDurationInterval: recDurationInterval,
  554. orderBy: orderBy
  555. }
  556. };
  557. if (this.screen.visitRecord.length > 0) {
  558. parames.query.visitRecords = this.screen.visitRecord.join(',');
  559. }
  560. if (this.screen.record.length > 0) {
  561. parames.query.level = this.screen.record.join(',');
  562. }
  563. // if(this.screen.record==0){
  564. // parames.query.levels= ["1"]
  565. // }else if(this.screen.record==1){
  566. // parames.query.levels= ["2"]
  567. // }else if(this.screen.record==2){
  568. // parames.query.levels= ["3"]
  569. // }else if(this.screen.record==3){
  570. // parames.query.levels= ["4"]
  571. // }else{
  572. // parames.query.levels=''
  573. // }
  574. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  575. this.$u.post("/customer/customerManagement", parames).then(data => {
  576. this.LOADING = false
  577. if (this.staTime && this.endtime) {
  578. this.arriveFilter = `${this.staTime}-${this.endtime}`
  579. }
  580. var list = data.results || [];
  581. list.forEach(item => {
  582. if (this.userInfo.dataCode == 6) {
  583. item.isshow = true;
  584. } else {
  585. item.isshow = false;
  586. }
  587. })
  588. list.forEach(item => {
  589. if (item.demand.cusSemanticWordsList != null) {
  590. item.demand.cusSemanticWordsList.forEach(che => {
  591. if (che.isInterval == 0) {
  592. che.name = che.name + che.unit + '-' + che.endName + che.unit;
  593. }
  594. })
  595. }
  596. })
  597. if (this.isRefresh) {
  598. this.recordList = list;
  599. } else {
  600. this.recordList = [...this.recordList, ...list];
  601. }
  602. this.totalRecord = data.totalPage;
  603. this.totalRecords = data.totalRecord;
  604. }).catch(e => {
  605. this.LOADING = false
  606. })
  607. },
  608. //获取顾问列表
  609. getFreeList() {
  610. this.freeList = []
  611. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  612. houseId: this.buildingID
  613. }).then(res => {
  614. this.freeList = res;
  615. this.freeList.forEach(item => {
  616. item.label = item.name;
  617. item.value = item.accountId
  618. })
  619. })
  620. },
  621. //获取客户标签
  622. getfindKeywordsList() {
  623. this.findKeywordsList = []
  624. this.$u.post("/customer/findKeywords", {
  625. houseId: this.buildingID
  626. }).then(res => {
  627. res.forEach(item => {
  628. if (item.isInterval == 0) {
  629. item.label = item.name + item.unit + '-' + item.endName + item.unit;
  630. } else {
  631. item.label = item.name
  632. }
  633. item.value = item.id;
  634. })
  635. this.findKeywordsList = res;
  636. })
  637. },
  638. getCustomPhase() {
  639. this.phaseList = []
  640. this.$u.post("/customer/lifeTrackDefineList", {
  641. houseId: this.buildingID
  642. }).then(res => {
  643. let tempArr = []
  644. res.forEach(item => {
  645. let tempObj = {}
  646. tempObj.label = item.stageName;
  647. tempObj.value = item.id;
  648. tempArr.push(tempObj)
  649. })
  650. this.phaseList = tempArr;
  651. })
  652. },
  653. // 筛选
  654. screenshow() {
  655. this.screenShow = true
  656. },
  657. //选择顾问
  658. actionSelectCallback(e) {
  659. this.screen.agentId = e[0].value;
  660. this.screen.agentIdtext = e[0].label;
  661. },
  662. //选择标签
  663. selectCallback(e) {
  664. this.screen.cunsumerTips = e[0].label;
  665. this.screen.cunsumerTipsid = e[0].value;
  666. },
  667. selectPhase(e) {
  668. this.screen.clientStageName = e[0].label;
  669. this.screen.clientStage = e[0].value;
  670. },
  671. //重置
  672. reset() {
  673. this.screen = {
  674. agentId: '',
  675. agentIdtext: '',
  676. visitRecord: [],
  677. record: [],
  678. cunsumerTips: '',
  679. cunsumerTipsid: '',
  680. clientStage: '',
  681. clientStageName: ''
  682. }
  683. this.visitList.map(i => {
  684. i.isShow = false
  685. })
  686. this.levelList.map(i => {
  687. i.isShow = false
  688. })
  689. this.nextPage = 1;
  690. this.recordList = [];
  691. // this.screenShow = false;
  692. this.isRefresh = false;
  693. this.getMyCustom();
  694. },
  695. //筛选确认
  696. screensure() {
  697. this.nextPage = 1;
  698. this.recordList = [];
  699. this.screenShow = false;
  700. this.isRefresh = false;
  701. this.getMyCustom();
  702. },
  703. goSearch() {
  704. uni.navigateTo({
  705. url: '/pages/center/consumer/consumerSearch'
  706. });
  707. },
  708. gotoFollowUp(id) {
  709. uni.navigateTo({
  710. url: `/pages/center/consumer/newFollowup/newFollowup?id=${id}`
  711. })
  712. },
  713. }
  714. }
  715. </script>
  716. <style lang="scss" scoped>
  717. .box {
  718. width: 100%;
  719. height: 100%;
  720. background: #F8F8F8;
  721. }
  722. .count {
  723. width: 100%;
  724. height: 90rpx;
  725. display: flex;
  726. align-items: center;
  727. justify-content: center;
  728. background-color: #FBE4E4;
  729. text {
  730. color: #F71616;
  731. }
  732. }
  733. .timeview {
  734. height: 80rpx;
  735. line-height: 80rpx;
  736. width: 100%;
  737. text-align: center;
  738. border-bottom: 1px solid #F8F8F8;
  739. }
  740. //时间切换的样式
  741. .boxtittab {
  742. position: sticky;
  743. top: var(--window-top);
  744. z-index: 999;
  745. width: 100;
  746. height: 92rpx;
  747. background: #FFFFFF;
  748. border: 1px solid #E0E0E0;
  749. display: flex;
  750. align-items: center;
  751. .tabbox {
  752. flex: 1;
  753. height: 100%;
  754. text-align: center;
  755. line-height: 92rpx;
  756. color: #666666;
  757. font-size: 28rpx;
  758. overflow: hidden;
  759. text-overflow: ellipsis;
  760. display: -webkit-box;
  761. /* 将对象作为弹性伸缩盒子模型显示 */
  762. -webkit-line-clamp: 1;
  763. /* 控制最多显示几行 */
  764. -webkit-box-orient: vertical;
  765. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  766. }
  767. }
  768. .search-box {
  769. width: 100%;
  770. height: 102rpx;
  771. background: #FFFFFF;
  772. display: flex;
  773. align-items: center;
  774. justify-content: center;
  775. .search {
  776. width: 94%;
  777. height: 70rpx;
  778. display: flex;
  779. align-items: center;
  780. background: #F8F8F8;
  781. border-radius: 33rpx;
  782. .search-img {
  783. width: 26rpx;
  784. height: 30rpx;
  785. margin-left: 20rpx;
  786. .search-img1 {
  787. width: 100%;
  788. height: 100%;
  789. margin-top: 2rpx;
  790. }
  791. }
  792. .search-text {
  793. font-size: 28rpx;
  794. font-weight: 400;
  795. color: #999999;
  796. margin-left: 10rpx;
  797. }
  798. }
  799. .search-screen {
  800. width: 40rpx;
  801. height: 40rpx;
  802. margin-left: 30rpx;
  803. .search-screen1 {
  804. width: 100%;
  805. height: 100%;
  806. }
  807. }
  808. }
  809. .content {
  810. // height: 1000rpx;/
  811. overflow: hidden;
  812. border-top: 1px solid #E0E0E0;
  813. .content-tips {
  814. background: #fff;
  815. // box-sizing: border-box;
  816. margin-top: 20rpx;
  817. overflow: hidden;
  818. .content-first {
  819. padding: 19rpx 30rpx;
  820. display: flex;
  821. justify-content: space-between;
  822. box-sizing: border-box;
  823. // border-top: 1px solid #E0E0E0;
  824. font-weight: 400;
  825. color: #292929;
  826. height: 90rpx;
  827. font-size: 30rpx;
  828. line-height: 30rpx;
  829. .left {
  830. display: flex;
  831. .img {
  832. // margin-top: 19rpx;
  833. width: 52rpx;
  834. height: 52rpx;
  835. border: 1px solid #E0E0E0;
  836. border-radius: 50%;
  837. text-align: center;
  838. line-height: 50rpx;
  839. margin-right: 20rpx;
  840. }
  841. .test {
  842. margin-top: 11rpx;
  843. // margin-left: 20rpx;
  844. font-weight: 500;
  845. color: #333333;
  846. }
  847. }
  848. .right {
  849. display: flex;
  850. .point {
  851. width: 12rpx;
  852. height: 12rpx;
  853. background: #2B6EFF;
  854. border-radius: 50%;
  855. margin-right: 9rpx;
  856. margin-top: 20rpx;
  857. }
  858. .test {
  859. margin-top: 11rpx;
  860. }
  861. }
  862. }
  863. .content-sec {
  864. border-top: 1px solid #E0E0E0;
  865. padding: 0 30rpx;
  866. padding-bottom: 30rpx;
  867. // height: 270rpx;
  868. position: relative;
  869. .content-sec-lab {
  870. margin-top: 30rpx;
  871. display: flex;
  872. font-size: 30rpx;
  873. font-weight: 400;
  874. color: #666666;
  875. line-height: 46rpx;
  876. .content-sec-lab1 {
  877. color: #333333;
  878. }
  879. .content-sec-tips {
  880. max-width: 160rpx;
  881. height: 46rpx;
  882. background: #F2F2F2;
  883. border-radius: 6rpx;
  884. text-align: center;
  885. line-height: 26rpx;
  886. overflow: hidden;
  887. text-overflow: ellipsis;
  888. white-space: nowrap;
  889. font-size: 26rpx;
  890. font-weight: 400;
  891. color: #333333;
  892. margin-right: 20rpx;
  893. box-sizing: border-box;
  894. padding: 10rpx 24rpx;
  895. }
  896. }
  897. .content-sec-num {
  898. position: absolute;
  899. width: 200rpx;
  900. height: 90rpx;
  901. background: #F4F8FD;
  902. border-radius: 12rpx;
  903. font-weight: 400;
  904. color: #2671E2;
  905. line-height: 45rpx;
  906. bottom: 30rpx;
  907. right: 30rpx;
  908. text-align: center;
  909. }
  910. }
  911. .content-last {
  912. display: flex;
  913. border-top: 1px solid #E0E0E0;
  914. // padding: 0 30rpx;
  915. height: 78rpx;
  916. .content-last-tab {
  917. width: 33.4%;
  918. text-align: center;
  919. font-size: 30rpx;
  920. font-weight: 400;
  921. color: #333333;
  922. line-height: 78rpx;
  923. border-right: 1px solid #E0E0E0;
  924. }
  925. }
  926. }
  927. }
  928. // 这是弹出层
  929. .screen {
  930. // box-sizing: border-box;
  931. // padding: 0 30rpx;
  932. .screen-counselor {
  933. display: flex;
  934. height: 106rpx;
  935. // padding: 40rpx 30rpx 36rpx 30rpx;
  936. padding: 0 30rpx;
  937. box-sizing: border-box;
  938. border-bottom: 1px solid #E0E0E0;
  939. .screen-text {
  940. margin: 40rpx 0 36rpx 0;
  941. font-size: 30rpx;
  942. font-weight: 400;
  943. color: #333333;
  944. line-height: 30rpx;
  945. }
  946. .screen-sel {
  947. display: flex;
  948. justify-content: space-between;
  949. width: 500rpx;
  950. margin-left: 60rpx;
  951. .screen-sel-img {
  952. margin: 40rpx 0 36rpx 0;
  953. width: 14rpx;
  954. height: 30rpx;
  955. }
  956. .screen-inp {
  957. margin-top: 20rpx;
  958. }
  959. }
  960. }
  961. .screen-record {
  962. height: 192rpx;
  963. // width: 100%;
  964. overflow: hidden;
  965. padding: 0 30rpx;
  966. box-sizing: border-box;
  967. border-bottom: 1px solid #E0E0E0;
  968. .screen-record-text {
  969. margin-top: 36rpx;
  970. font-size: 30rpx;
  971. font-weight: 400;
  972. color: #333333;
  973. line-height: 30rpx;
  974. }
  975. .screen-record-tab {
  976. margin-top: 30rpx;
  977. display: flex;
  978. // justify-content: space-around;
  979. .screen-record-chose {
  980. width: 156rpx;
  981. height: 60rpx;
  982. background: #2671E2;
  983. border-radius: 4rpx;
  984. border: 1px solid #2671E2;
  985. text-align: center;
  986. line-height: 60rpx;
  987. margin-right: 22rpx;
  988. color: #FFFFFF;
  989. }
  990. .screen-record-nochose {
  991. width: 156rpx;
  992. height: 60rpx;
  993. background: #FFFFFF;
  994. border-radius: 4rpx;
  995. border: 1px solid #C9C9C9;
  996. text-align: center;
  997. line-height: 60rpx;
  998. margin-right: 22rpx;
  999. }
  1000. }
  1001. }
  1002. .screen-foot {
  1003. width: 100%;
  1004. height: 88rpx;
  1005. display: flex;
  1006. .screen-foot-reset {
  1007. width: 50%;
  1008. text-align: center;
  1009. height: 88rpx;
  1010. line-height: 88rpx;
  1011. font-size: 30rpx;
  1012. font-weight: 400;
  1013. color: #666666;
  1014. }
  1015. .screen-foot-sure {
  1016. width: 50%;
  1017. text-align: center;
  1018. line-height: 88rpx;
  1019. height: 88rpx;
  1020. font-size: 30rpx;
  1021. font-weight: 400;
  1022. color: #FFFFFF;
  1023. background: #2671E2;
  1024. }
  1025. }
  1026. }
  1027. </style>