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.
 
 
 

1132 lines
29 KiB

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