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.
 
 
 

1164 lines
30 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" :style="sortFilter=='排序'?'color:#666':'color:#409eff'">
  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" :style="arriveFilter=='接待时间'?'color:#666':'color:#409eff'">
  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" :style="counselorName=='接待顾问'?'color:#666':'color:#409eff'">
  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="900">
  100. <view class="screen">
  101. <scroll-view scroll-y="true" style="height: 750rpx;">
  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: '31%~50%',
  369. value: 2,
  370. isShow: false,
  371. }, {
  372. label: '51%~70%',
  373. value: 3,
  374. isShow: false,
  375. }, {
  376. label: '71%及以上',
  377. value: 4,
  378. isShow: false,
  379. }
  380. ],
  381. xiaojiangList:[
  382. {
  383. label: '30%及以下',
  384. value: 1,
  385. isShow: false,
  386. }, {
  387. label: '31%~50%',
  388. value: 2,
  389. isShow: false,
  390. }, {
  391. label: '51%~70%',
  392. value: 3,
  393. isShow: false,
  394. }, {
  395. label: '71%及以上',
  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. keywordsId: '',
  448. isRefresh: false,
  449. // 筛选文字展示
  450. sortFilter: '排序',
  451. arriveFilter: '接待时间',
  452. counselorName: '接待顾问',
  453. source: ''//从挖掘分析页跳转来的
  454. }
  455. },
  456. onLoad(options) {
  457. this.LOADING = true
  458. this.isnorefresh = options.refresh;
  459. if (options.source) {
  460. this.source = options.source
  461. }
  462. if (options.activeTotal) {
  463. this.activeTotal = Number(options.activeTotal)
  464. }
  465. if (options.markAdvisor) {
  466. this.screen.markAdvisor = Number(options.markAdvisor)
  467. }
  468. if (options.validInvalid) {
  469. this.screen.validInvalid = Number(options.validInvalid)
  470. }
  471. if (options.keywordsId) {
  472. this.keywordsId = Number(options.keywordsId)
  473. }
  474. if (options.staTime) {
  475. this.staTime = options.staTime;
  476. this.endTime = options.endtime;
  477. }
  478. if(this.keywordsName){
  479. }
  480. },
  481. onShow() {
  482. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  483. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  484. this.methodsisshow = false;
  485. } else {
  486. this.methodsisshow = true;
  487. }
  488. if (this.isnorefresh == 'refresh') {
  489. this.buildingID = uni.getStorageSync('buildingID').id;
  490. this.recordList = [];
  491. this.nextPage = 1;
  492. this.isRefresh = false;
  493. this.getRecordsList()
  494. this.getFreeList();
  495. this.isnorefresh = '';
  496. }
  497. },
  498. onPullDownRefresh() {
  499. this.isRefresh = true;
  500. this.nextPage = 1;
  501. this.getRecordsList()
  502. setTimeout(function() {
  503. uni.stopPullDownRefresh();
  504. }, 1000);
  505. },
  506. onReachBottom() {
  507. if (this.totalRecord == this.nextPage) {
  508. uni.showToast({
  509. icon: 'none',
  510. title: '到底了',
  511. duration: 2000
  512. });
  513. return
  514. } else {
  515. this.nextPage += 1;
  516. this.getRecordsList();
  517. this.isRefresh = false;
  518. }
  519. },
  520. methods: {
  521. choice(item) {
  522. item.isShow = !item.isShow;
  523. },
  524. //选择排序
  525. selectCallback2(e) {
  526. this.sortFilter = e[0].label;
  527. this.screen.orderBy = e[0].value;
  528. this.nextPage = 1;
  529. this.recordList = [];
  530. this.isRefresh = false;
  531. this.getRecordsList();
  532. },
  533. //时间选择 -到访-接待时间
  534. tabtimetap(index, text) {
  535. this.timeshow = false;
  536. if (text) this.arriveFilter = text
  537. if (index == 4) {
  538. this.totalTimeShow = true;
  539. } else {
  540. this.activeTotal = index;
  541. this.nextPage = 1;
  542. this.recordList = [];
  543. this.isRefresh = false;
  544. this.getRecordsList();
  545. }
  546. },
  547. //自定义时间
  548. totalTimeChange(e) {
  549. this.staTime = e.startDate;
  550. this.endTime = e.endDate;
  551. this.activeTotal = 4;
  552. this.nextPage = 1;
  553. this.recordList = [];
  554. this.isRefresh = false;
  555. this.getRecordsList();
  556. },
  557. tapThevisiting(item) {
  558. uni.showLoading({
  559. title: '加载中',
  560. mask: true
  561. });
  562. if (item.status == 0) {
  563. setTimeout(function() {
  564. uni.hideLoading();
  565. }, 2000);
  566. uni.showToast({
  567. icon: "none",
  568. title: "排队中"
  569. })
  570. return
  571. } else {
  572. // if(this.source=='wajue'){
  573. // let parames1 = {
  574. // marketingId: this.keywordsId,
  575. // customerId: item.id,
  576. // type: '1'
  577. // }
  578. // this.$u.post("/corpus/pinWordMatching", parames1).then(res => {
  579. // let items = JSON.parse(res[0].transferContent)
  580. // uni.setStorageSync("searchobj", items); //写入缓存
  581. // }).catch(e => {
  582. // })
  583. // }
  584. const parames = {
  585. pageNum: 1,
  586. pageSize: 100,
  587. query: {
  588. customerId: item.id,
  589. }
  590. }
  591. var item1 = {
  592. bg: 0,
  593. customerId: item.id,
  594. wordFraction: item.wordFraction
  595. }
  596. uni.setStorageSync("searchobj", item1); //写入缓存
  597. uni.setStorageSync("entrance", 1); //写入缓存
  598. this.$u.post("/corpus/findByPage", parames).then(res => {
  599. if (res == null) {
  600. setTimeout(function() {
  601. uni.hideLoading();
  602. }, 2000);
  603. uni.showToast({
  604. icon: "none",
  605. title: "暂无音频"
  606. })
  607. return
  608. } else {
  609. setTimeout(function() {
  610. uni.hideLoading();
  611. }, 2000);
  612. let newobj = res[0];
  613. if (res[0].merge == 0) {
  614. uni.navigateTo({
  615. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}&wordFraction=${item.wordFraction}`
  616. })
  617. } else {
  618. uni.navigateTo({
  619. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  620. })
  621. }
  622. }
  623. })
  624. }
  625. },
  626. // 获取接待记录列表
  627. getRecordsList() {
  628. this.screen.visitRecord = []
  629. this.screen.jiedaiVal = []
  630. this.screen.wajueVal = []
  631. this.screen.xiaojiangVal = []
  632. let dateType = 0;
  633. if ((this.activeTotal == 15)||(this.activeTotal == 4)) {// 选择全部和自定义
  634. dateType = null;
  635. }else {
  636. dateType = this.activeTotal;
  637. this.staTime = ''
  638. this.endTime = ''
  639. }
  640. // 到访次数
  641. this.visitList.forEach(i => {
  642. if(i.isShow) this.screen.visitRecord.push(i.value)
  643. })
  644. // 接待时长
  645. this.jiedaiList.forEach(i => {
  646. if(i.isShow) this.screen.jiedaiVal.push(i.value)
  647. })
  648. // 需求挖掘
  649. this.wajueList.forEach(i => {
  650. if(i.isShow) this.screen.wajueVal.push(i.value)
  651. })
  652. // 销讲执行率
  653. this.xiaojiangList.forEach(i => {
  654. if(i.isShow) this.screen.xiaojiangVal.push(i.value)
  655. })
  656. var parames = {
  657. pageNum: this.nextPage,
  658. pageSize: 10,
  659. query: {
  660. projectId: this.buildingID,
  661. keywordsId: this.keywordsId,
  662. staTime: this.staTime,// 接待时间
  663. endTime: this.endTime,// 接待时间
  664. agentId: this.screen.agentId, // 顾问ID
  665. visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数
  666. wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘
  667. duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长
  668. fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲
  669. markAdvisor: this.screen.markAdvisor,//标记顾问
  670. dateType: dateType,//时间类型
  671. orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序
  672. validInvalid: this.screen.validInvalid,//录音标识
  673. clientStage: this.screen.clientStage,// 客户阶段
  674. recording: this.screen.validInvalid == 2 ? 0 : null // 录音
  675. }
  676. };
  677. if (this.screen.agentId) {
  678. parames.query.agentId = this.screen.agentId
  679. }
  680. this.$u.post("/customer/findbypage", parames).then(data => {
  681. this.LOADING = false
  682. if (this.staTime && this.endTime) {
  683. this.arriveFilter = `${this.staTime}-${this.endTime}`
  684. }
  685. var list = data.results || [];
  686. if (this.isRefresh) {
  687. this.recordList = list;
  688. } else {
  689. this.recordList = [...this.recordList, ...list];
  690. }
  691. this.totalRecord = data.totalPage;
  692. this.totalRecords = data.totalRecord;
  693. }).catch(e => {
  694. this.LOADING = false
  695. })
  696. },
  697. //获取顾问列表
  698. getFreeList() {
  699. if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己
  700. this.freeList = [{
  701. label: this.userInfo.name,
  702. value: this.userInfo.accountId
  703. }]
  704. }else{
  705. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  706. houseId: this.buildingID
  707. }).then(res => {
  708. this.freeList = res;
  709. this.freeList.forEach(item => {
  710. item.label = item.name;
  711. item.value = item.accountId
  712. })
  713. this.freeList.unshift({
  714. label:'全部',
  715. value: ''
  716. })
  717. })
  718. }
  719. },
  720. actionSelectCallback(e) {
  721. this.screen.agentId = e[0].value;
  722. this.counselorName = e[0].label;
  723. this.recordList = [];
  724. this.nextPage = 1;
  725. this.isRefresh = false;
  726. this.getRecordsList();
  727. },
  728. reset() {
  729. this.screen.agentId =''
  730. this.screen.jiedaiVal =''
  731. this.screen.validInvalid = ''
  732. this.screen.markAdvisor = ''
  733. this.screen.orderBy = '';
  734. this.sortFilter = '排序';
  735. this.arriveFilter = '到访时间';
  736. this.staTime = '';
  737. this.endTime = '';
  738. this.nextPage = 1;
  739. this.activeTotal = 15;
  740. this.recordList = [];
  741. this.counselorName = '接待顾问';
  742. this.visitList.map(i => {
  743. i.isShow = false
  744. })
  745. this.jiedaiList.map(i => {
  746. i.isShow = false
  747. })
  748. this.wajueList.map(i => {
  749. i.isShow = false
  750. })
  751. this.xiaojiangList.map(i => {
  752. i.isShow = false
  753. })
  754. this.nextPage = 1;
  755. this.recordList = [];
  756. this.getRecordsList();
  757. },
  758. //标记顾问
  759. screenvisitRecord(i) {
  760. // console.log(i)
  761. if (this.screen.markAdvisor === i) {
  762. this.screen.markAdvisor = ''
  763. } else {
  764. this.screen.markAdvisor = i
  765. }
  766. },
  767. // 录音标识
  768. screenvisivalidInvalid(i) {
  769. // console.log(this.screen.validInvalid, i)
  770. if (this.screen.validInvalid === i) {
  771. this.screen.validInvalid = ''
  772. } else {
  773. this.screen.validInvalid = i
  774. }
  775. },
  776. screensure() {
  777. this.screenShow = false;
  778. this.recordList = [];
  779. this.nextPage = 1;
  780. this.isRefresh = false;
  781. this.getRecordsList();
  782. },
  783. goSearch() {
  784. uni.navigateTo({
  785. url: '/pages/center/records/recordSearch'
  786. });
  787. },
  788. },
  789. }
  790. </script>
  791. <style lang="scss" scoped>
  792. .box {
  793. width: 100%;
  794. height: 100%;
  795. background: #F8F8F8;
  796. }
  797. .count {
  798. width: 100%;
  799. height: 60rpx;
  800. display: flex;
  801. align-items: center;
  802. justify-content: center;
  803. background-color: #fff;
  804. text {
  805. color: #F71616;
  806. }
  807. }
  808. .timeview {
  809. height: 80rpx;
  810. line-height: 80rpx;
  811. width: 100%;
  812. text-align: center;
  813. border-bottom: 1px solid #F8F8F8;
  814. }
  815. //时间切换的样式
  816. .boxtittab {
  817. position: sticky;
  818. top: var(--window-top);
  819. z-index: 999;
  820. width: 100;
  821. height: 92rpx;
  822. background: #FFFFFF;
  823. border-bottom: 1px solid #E0E0E0;
  824. display: flex;
  825. align-items: center;
  826. .tabbox {
  827. flex: 1;
  828. height: 100%;
  829. text-align: center;
  830. line-height: 92rpx;
  831. color: #666666;
  832. font-size: 28rpx;
  833. overflow: hidden;
  834. text-overflow: ellipsis;
  835. display: -webkit-box;
  836. /* 将对象作为弹性伸缩盒子模型显示 */
  837. -webkit-line-clamp: 1;
  838. /* 控制最多显示几行 */
  839. -webkit-box-orient: vertical;
  840. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  841. }
  842. }
  843. .search-box {
  844. width: 100%;
  845. height: 102rpx;
  846. background: #FFFFFF;
  847. display: flex;
  848. align-items: center;
  849. justify-content: center;
  850. .search {
  851. width: 94%;
  852. height: 70rpx;
  853. display: flex;
  854. align-items: center;
  855. background: #F8F8F8;
  856. border-radius: 33rpx;
  857. .search-img {
  858. width: 26rpx;
  859. height: 30rpx;
  860. margin-left: 20rpx;
  861. .search-img1 {
  862. width: 100%;
  863. height: 100%;
  864. margin-top: 2rpx;
  865. }
  866. }
  867. .search-text {
  868. font-size: 28rpx;
  869. font-weight: 400;
  870. color: #999999;
  871. margin-left: 10rpx;
  872. }
  873. }
  874. .search-screen {
  875. width: 40rpx;
  876. height: 40rpx;
  877. margin-left: 30rpx;
  878. .search-screen1 {
  879. width: 100%;
  880. height: 100%;
  881. }
  882. }
  883. }
  884. .content {
  885. .content-tips {
  886. background: #fff;
  887. box-sizing: border-box;
  888. overflow: hidden;
  889. margin-top: 20rpx;
  890. padding: 30rpx;
  891. .content-first {
  892. display: flex;
  893. justify-content: space-between;
  894. .left {
  895. display: flex;
  896. align-items: center;
  897. .img {
  898. width: 52rpx;
  899. height: 52rpx;
  900. background: #FFFFFF;
  901. border: 1px solid #C9C9C9;
  902. border-radius: 50%;
  903. text-align: center;
  904. line-height: 52rpx;
  905. }
  906. .name {
  907. font-weight: 600;
  908. color: #333333;
  909. margin-right: 10rpx;
  910. font-size: 30rpx;
  911. }
  912. .status {
  913. width: 110rpx;
  914. height: 42rpx;
  915. background: #FFF9F5;
  916. border-radius: 4rpx;
  917. font-size: 26rpx;
  918. font-weight: 400;
  919. color: #EC8D49;
  920. line-height: 42rpx;
  921. text-align: center;
  922. margin: 0 10rpx;
  923. }
  924. .normal-status{
  925. color:red;
  926. }
  927. }
  928. .right {
  929. display: flex;
  930. margin-top: 11rpx;
  931. .point {
  932. width: 12rpx;
  933. height: 12rpx;
  934. background: #2B6EFF;
  935. border-radius: 50%;
  936. margin-right: 9rpx;
  937. margin-top: 16rpx;
  938. }
  939. }
  940. }
  941. .content-sec {
  942. display: flex;
  943. justify-content: space-between;
  944. margin: 24rpx 0;
  945. .left {
  946. flex: 1;
  947. height: 40rpx;
  948. font-size: 28rpx;
  949. font-family: PingFangSC-Medium, PingFang SC;
  950. font-weight: 500;
  951. color: #333333;
  952. line-height: 40rpx;
  953. }
  954. .right{
  955. flex: 1;
  956. height: 40rpx;
  957. font-size: 28rpx;
  958. font-family: PingFangSC-Regular, PingFang SC;
  959. font-weight: 400;
  960. color: #333333;
  961. line-height: 40rpx;
  962. text-align: right;
  963. }
  964. }
  965. .content-time {
  966. font-size: 28rpx;
  967. font-family: PingFangSC-Regular, PingFang SC;
  968. font-weight: 400;
  969. color: #333333;
  970. line-height: 40rpx;
  971. padding: 20rpx 0 24rpx;
  972. border-bottom: 1px solid #E0E0E0;
  973. }
  974. .content-last {
  975. display: flex;
  976. justify-content: space-around;
  977. .cont-item{
  978. display: flex;
  979. flex-direction: column;
  980. align-items: center;
  981. justify-content: center;
  982. .count{
  983. height: 42rpx;
  984. font-size: 30rpx;
  985. font-family: PingFangSC-Regular, PingFang SC;
  986. font-weight: 400;
  987. color: #000000;
  988. line-height: 42rpx;
  989. margin-bottom: 16rpx;
  990. }
  991. .text{
  992. height: 32rpx;
  993. font-size: 24rpx;
  994. font-family: PingFangSC-Regular, PingFang SC;
  995. font-weight: 400;
  996. color: #666666;
  997. line-height: 32rpx;
  998. }
  999. }
  1000. }
  1001. }
  1002. }
  1003. // 这是弹出层
  1004. .screen {
  1005. width: 750rpx;
  1006. .screen-counselor {
  1007. display: flex;
  1008. height: 106rpx;
  1009. padding: 0 30rpx;
  1010. box-sizing: border-box;
  1011. border-bottom: 1px solid #EEEEEE;
  1012. .screen-text {
  1013. margin: 40rpx 0 36rpx 0;
  1014. font-size: 30rpx;
  1015. font-weight: 400;
  1016. color: #333333;
  1017. line-height: 30rpx;
  1018. }
  1019. .screen-sel {
  1020. display: flex;
  1021. justify-content: space-between;
  1022. width: 500rpx;
  1023. margin-left: 60rpx;
  1024. .screen-sel-img {
  1025. margin: 40rpx 0 36rpx 0;
  1026. width: 14rpx;
  1027. height: 30rpx;
  1028. }
  1029. .screen-inp {
  1030. margin-top: 20rpx;
  1031. }
  1032. }
  1033. }
  1034. .screen-record {
  1035. overflow: hidden;
  1036. padding: 0 30rpx;
  1037. box-sizing: border-box;
  1038. border-bottom: 1px solid #e0e0e0;
  1039. .screen-record-text {
  1040. padding: 30rpx 0;
  1041. font-size: 30rpx;
  1042. font-weight: 600;
  1043. color: #333333;
  1044. line-height: 30rpx;
  1045. display: flex;
  1046. align-items: center;
  1047. justify-content: space-between;
  1048. .arrow{
  1049. width: 30rpx;
  1050. height: 14rpx;
  1051. }
  1052. }
  1053. .screen-record-tab {
  1054. margin-top: 30rpx;
  1055. padding-bottom: 10rpx;
  1056. display: flex;
  1057. flex-wrap: wrap;
  1058. .screen-record-item{
  1059. min-width: 150rpx;
  1060. padding: 0 14rpx;
  1061. height: 60rpx;
  1062. border-radius: 8rpx;
  1063. text-align: center;
  1064. line-height: 60rpx;
  1065. margin: 0 22rpx 22rpx 0;
  1066. &:nth-child(4n){
  1067. margin-right: 0;
  1068. }
  1069. }
  1070. .screen-record-chose {
  1071. background: #F1F6FD;
  1072. color: #2671E2;
  1073. }
  1074. .screen-record-nochose {
  1075. background: #F7F8FA;
  1076. color: #333;
  1077. }
  1078. }
  1079. }
  1080. .screen-foot {
  1081. width: 100%;
  1082. height: 78rpx;
  1083. display: flex;
  1084. margin: 30rpx 30rpx 0;
  1085. .screen-foot-reset {
  1086. width: 176rpx;
  1087. height: 78rpx;
  1088. line-height: 78rpx;
  1089. background: #FFFFFF;
  1090. border-radius: 8rpx;
  1091. border: 1px solid #2671E2;
  1092. margin-right: 30rpx;
  1093. font-size: 30rpx;
  1094. font-family: PingFangSC-Regular, PingFang SC;
  1095. font-weight: 400;
  1096. color: #2671E2;
  1097. text-align: center;
  1098. }
  1099. .screen-foot-sure {
  1100. width: 484rpx;
  1101. height: 78rpx;
  1102. line-height: 78rpx;
  1103. background: #2671E2;
  1104. border: 1px solid #2671E2;
  1105. border-radius: 8rpx;
  1106. font-size: 30rpx;
  1107. font-family: PingFangSC-Regular, PingFang SC;
  1108. font-weight: 400;
  1109. color: #FFFFFF;
  1110. text-align: center;
  1111. }
  1112. }
  1113. }
  1114. </style>