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.
 
 
 

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