AI销管
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

1225 linhas
29 KiB

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