AI销管
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

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