AI销管
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

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