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.
 
 
 
 

1230 lines
29 KiB

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