AI销管
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.
 
 
 
 

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