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.
 
 
 
 

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