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.
 
 
 

1124 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. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  677. houseId: this.buildingID
  678. }).then(res => {
  679. this.freeList = res;
  680. this.freeList.forEach(item => {
  681. item.label = item.name;
  682. item.value = item.accountId
  683. })
  684. this.freeList.unshift({
  685. label:'全部',
  686. value: ''
  687. })
  688. })
  689. },
  690. actionSelectCallback(e) {
  691. this.screen.agentId = e[0].value;
  692. this.counselorName = e[0].label;
  693. this.recordList = [];
  694. this.nextPage = 1;
  695. this.isRefresh = false;
  696. this.getMyCustom();
  697. },
  698. reset() {
  699. this.screen.agentId =''
  700. this.screen.jiedaiVal =''
  701. this.screen.validInvalid = ''
  702. this.screen.markAdvisor = ''
  703. this.screen.orderBy = '';
  704. this.sortFilter = '排序';
  705. this.arriveFilter = '到访时间';
  706. this.staTime = '';
  707. this.endTime = '';
  708. this.nextPage = 1;
  709. this.activeTotal = 15;
  710. this.recordList = [];
  711. this.counselorName = '接待顾问';
  712. this.visitList.map(i => {
  713. i.isShow = false
  714. })
  715. this.jiedaiList.map(i => {
  716. i.isShow = false
  717. })
  718. this.wajueList.map(i => {
  719. i.isShow = false
  720. })
  721. this.xiaojiangList.map(i => {
  722. i.isShow = false
  723. })
  724. this.nextPage = 1;
  725. this.recordList = [];
  726. this.getMyCustom();
  727. },
  728. //标记顾问
  729. screenvisitRecord(i) {
  730. // console.log(i)
  731. if (this.screen.markAdvisor === i) {
  732. this.screen.markAdvisor = ''
  733. } else {
  734. this.screen.markAdvisor = i
  735. }
  736. },
  737. // 录音标识
  738. screenvisivalidInvalid(i) {
  739. // console.log(this.screen.validInvalid, i)
  740. if (this.screen.validInvalid === i) {
  741. this.screen.validInvalid = ''
  742. } else {
  743. this.screen.validInvalid = i
  744. }
  745. },
  746. screensure() {
  747. this.screenShow = false;
  748. this.recordList = [];
  749. this.nextPage = 1;
  750. this.isRefresh = false;
  751. this.getMyCustom();
  752. },
  753. goSearch() {
  754. uni.navigateTo({
  755. url: '/pages/center/records/recordSearch'
  756. });
  757. },
  758. },
  759. }
  760. </script>
  761. <style lang="scss" scoped>
  762. .box {
  763. width: 100%;
  764. height: 100%;
  765. background: #F8F8F8;
  766. }
  767. .count {
  768. width: 100%;
  769. height: 60rpx;
  770. display: flex;
  771. align-items: center;
  772. justify-content: center;
  773. background-color: #fff;
  774. text {
  775. color: #F71616;
  776. }
  777. }
  778. .timeview {
  779. height: 80rpx;
  780. line-height: 80rpx;
  781. width: 100%;
  782. text-align: center;
  783. border-bottom: 1px solid #F8F8F8;
  784. }
  785. //时间切换的样式
  786. .boxtittab {
  787. position: sticky;
  788. top: var(--window-top);
  789. z-index: 999;
  790. width: 100;
  791. height: 92rpx;
  792. background: #FFFFFF;
  793. border-bottom: 1px solid #E0E0E0;
  794. display: flex;
  795. align-items: center;
  796. .tabbox {
  797. flex: 1;
  798. height: 100%;
  799. text-align: center;
  800. line-height: 92rpx;
  801. color: #666666;
  802. font-size: 28rpx;
  803. overflow: hidden;
  804. text-overflow: ellipsis;
  805. display: -webkit-box;
  806. /* 将对象作为弹性伸缩盒子模型显示 */
  807. -webkit-line-clamp: 1;
  808. /* 控制最多显示几行 */
  809. -webkit-box-orient: vertical;
  810. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  811. }
  812. }
  813. .search-box {
  814. width: 100%;
  815. height: 102rpx;
  816. background: #FFFFFF;
  817. display: flex;
  818. align-items: center;
  819. justify-content: center;
  820. .search {
  821. width: 94%;
  822. height: 70rpx;
  823. display: flex;
  824. align-items: center;
  825. background: #F8F8F8;
  826. border-radius: 33rpx;
  827. .search-img {
  828. width: 26rpx;
  829. height: 30rpx;
  830. margin-left: 20rpx;
  831. .search-img1 {
  832. width: 100%;
  833. height: 100%;
  834. margin-top: 2rpx;
  835. }
  836. }
  837. .search-text {
  838. font-size: 28rpx;
  839. font-weight: 400;
  840. color: #999999;
  841. margin-left: 10rpx;
  842. }
  843. }
  844. .search-screen {
  845. width: 40rpx;
  846. height: 40rpx;
  847. margin-left: 30rpx;
  848. .search-screen1 {
  849. width: 100%;
  850. height: 100%;
  851. }
  852. }
  853. }
  854. .content {
  855. .content-tips {
  856. background: #fff;
  857. box-sizing: border-box;
  858. overflow: hidden;
  859. margin-top: 20rpx;
  860. padding: 30rpx;
  861. .content-first {
  862. display: flex;
  863. justify-content: space-between;
  864. .left {
  865. display: flex;
  866. align-items: center;
  867. .img {
  868. width: 52rpx;
  869. height: 52rpx;
  870. background: #FFFFFF;
  871. border: 1px solid #C9C9C9;
  872. border-radius: 50%;
  873. text-align: center;
  874. line-height: 52rpx;
  875. }
  876. .name {
  877. font-weight: 600;
  878. color: #333333;
  879. margin-right: 10rpx;
  880. }
  881. .status {
  882. width: 110rpx;
  883. height: 42rpx;
  884. background: #FFF9F5;
  885. border-radius: 4rpx;
  886. font-size: 26rpx;
  887. font-weight: 400;
  888. color: #EC8D49;
  889. line-height: 42rpx;
  890. text-align: center;
  891. margin: 0 10rpx;
  892. }
  893. .normal-status{
  894. color:red;
  895. }
  896. }
  897. .right {
  898. display: flex;
  899. margin-top: 11rpx;
  900. .point {
  901. width: 12rpx;
  902. height: 12rpx;
  903. background: #2B6EFF;
  904. border-radius: 50%;
  905. margin-right: 9rpx;
  906. margin-top: 16rpx;
  907. }
  908. }
  909. }
  910. .content-sec {
  911. display: flex;
  912. justify-content: space-between;
  913. margin: 24rpx 0;
  914. .left {
  915. flex: 1;
  916. height: 40rpx;
  917. font-size: 28rpx;
  918. font-family: PingFangSC-Medium, PingFang SC;
  919. font-weight: 500;
  920. color: #333333;
  921. line-height: 40rpx;
  922. }
  923. .right{
  924. flex: 1;
  925. height: 40rpx;
  926. font-size: 28rpx;
  927. font-family: PingFangSC-Regular, PingFang SC;
  928. font-weight: 400;
  929. color: #333333;
  930. line-height: 40rpx;
  931. text-align: right;
  932. }
  933. }
  934. .content-time {
  935. font-size: 28rpx;
  936. font-family: PingFangSC-Regular, PingFang SC;
  937. font-weight: 400;
  938. color: #333333;
  939. line-height: 40rpx;
  940. padding: 20rpx 0 24rpx;
  941. border-bottom: 1px solid #E0E0E0;
  942. }
  943. .content-last {
  944. display: flex;
  945. justify-content: space-around;
  946. .cont-item{
  947. display: flex;
  948. flex-direction: column;
  949. align-items: center;
  950. justify-content: center;
  951. .count{
  952. height: 42rpx;
  953. font-size: 30rpx;
  954. font-family: PingFangSC-Regular, PingFang SC;
  955. font-weight: 400;
  956. color: #000000;
  957. line-height: 42rpx;
  958. margin-bottom: 16rpx;
  959. }
  960. .text{
  961. height: 32rpx;
  962. font-size: 24rpx;
  963. font-family: PingFangSC-Regular, PingFang SC;
  964. font-weight: 400;
  965. color: #666666;
  966. line-height: 32rpx;
  967. }
  968. }
  969. }
  970. }
  971. }
  972. // 这是弹出层
  973. .screen {
  974. width: 750rpx;
  975. .screen-counselor {
  976. display: flex;
  977. height: 106rpx;
  978. padding: 0 30rpx;
  979. box-sizing: border-box;
  980. border-bottom: 1px solid #EEEEEE;
  981. .screen-text {
  982. margin: 40rpx 0 36rpx 0;
  983. font-size: 30rpx;
  984. font-weight: 400;
  985. color: #333333;
  986. line-height: 30rpx;
  987. }
  988. .screen-sel {
  989. display: flex;
  990. justify-content: space-between;
  991. width: 500rpx;
  992. margin-left: 60rpx;
  993. .screen-sel-img {
  994. margin: 40rpx 0 36rpx 0;
  995. width: 14rpx;
  996. height: 30rpx;
  997. }
  998. .screen-inp {
  999. margin-top: 20rpx;
  1000. }
  1001. }
  1002. }
  1003. .screen-record {
  1004. overflow: hidden;
  1005. padding: 0 30rpx;
  1006. box-sizing: border-box;
  1007. border-bottom: 1px solid #e0e0e0;
  1008. .screen-record-text {
  1009. padding: 30rpx 0;
  1010. font-size: 30rpx;
  1011. font-weight: 400;
  1012. color: #333333;
  1013. line-height: 30rpx;
  1014. display: flex;
  1015. align-items: center;
  1016. justify-content: space-between;
  1017. .arrow{
  1018. width: 30rpx;
  1019. height: 14rpx;
  1020. }
  1021. }
  1022. .screen-record-tab {
  1023. margin-top: 30rpx;
  1024. padding-bottom: 10rpx;
  1025. display: flex;
  1026. flex-wrap: wrap;
  1027. .screen-record-item{
  1028. min-width: 150rpx;
  1029. padding: 0 14rpx;
  1030. height: 60rpx;
  1031. border-radius: 8rpx;
  1032. text-align: center;
  1033. line-height: 60rpx;
  1034. margin: 0 22rpx 22rpx 0;
  1035. &:nth-child(4n){
  1036. margin-right: 0;
  1037. }
  1038. }
  1039. .screen-record-chose {
  1040. background: #F1F6FD;
  1041. color: #2671E2;
  1042. }
  1043. .screen-record-nochose {
  1044. background: #F7F8FA;
  1045. color: #333;
  1046. }
  1047. }
  1048. }
  1049. .screen-foot {
  1050. width: 100%;
  1051. height: 78rpx;
  1052. display: flex;
  1053. margin: 30rpx 30rpx 0;
  1054. .screen-foot-reset {
  1055. width: 176rpx;
  1056. height: 78rpx;
  1057. line-height: 78rpx;
  1058. background: #FFFFFF;
  1059. border-radius: 8rpx;
  1060. border: 1px solid #2671E2;
  1061. margin-right: 30rpx;
  1062. font-size: 30rpx;
  1063. font-family: PingFangSC-Regular, PingFang SC;
  1064. font-weight: 400;
  1065. color: #2671E2;
  1066. text-align: center;
  1067. }
  1068. .screen-foot-sure {
  1069. width: 484rpx;
  1070. height: 78rpx;
  1071. line-height: 78rpx;
  1072. background: #2671E2;
  1073. border: 1px solid #2671E2;
  1074. border-radius: 8rpx;
  1075. font-size: 30rpx;
  1076. font-family: PingFangSC-Regular, PingFang SC;
  1077. font-weight: 400;
  1078. color: #FFFFFF;
  1079. text-align: center;
  1080. }
  1081. }
  1082. }
  1083. </style>