AI销管
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

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