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.
 
 
 
 

1248 wiersze
30 KiB

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