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.
 
 
 

701 lines
16 KiB

  1. <template>
  2. <view class="cenbox">
  3. <view class="screeningtop">
  4. <view class="screeningview" @click="clickscreening(1)">
  5. <view>近一周</view>
  6. <view class="viewimg">
  7. <image v-if="screeningshow1==false" src="../../../../static/images/down1.png" mode=""></image>
  8. <image v-if="screeningshow1==true" src="../../../../static/images/down2.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view class="screeningview" @click="clickscreening(2)">
  12. <view>客户</view>
  13. <view class="viewimg">
  14. <image v-if="screeningshow2==false" src="../../../../static/images/down1.png" mode=""></image>
  15. <image v-if="screeningshow2==true" src="../../../../static/images/down2.png" mode=""></image>
  16. </view>
  17. </view>
  18. <view class="screeningview" @click="clickscreening(3)">
  19. <view>置业顾问</view>
  20. <view class="viewimg">
  21. <image v-if="screeningshow3==false" src="../../../../static/images/down1.png" mode=""></image>
  22. <image v-if="screeningshow3==true" src="../../../../static/images/down2.png" mode=""></image>
  23. </view>
  24. </view>
  25. <view style="border: none;" class="screeningview" @click="clickscreening(4)">
  26. <view>语义词</view>
  27. <view class="viewimg">
  28. <image v-if="screeningshow4==false" src="../../../../static/images/down1.png" mode=""></image>
  29. <image v-if="screeningshow4==true" src="../../../../static/images/down2.png" mode=""></image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="zhuti">
  34. <view v-if="tadelist.length!=0" class="cenforview" v-for="(item,index) in tadelist" :key='index' @click="toinfo(item)">
  35. <view class="cenfortop">
  36. <view class="fortopzuo">
  37. <view class="topzuoimg">
  38. <image src="../../../../static/images/userorder.png" mode=""></image>
  39. </view>
  40. </view>
  41. <view class="fortopyou">
  42. <view class="topyouview1">
  43. <view class="youview1-1">{{item.agentName}}</view>
  44. <view class="youview1-2">接待开始时间:{{item.staTime}}</view>
  45. </view>
  46. <view class="topyouview2">客户姓名:{{item.name}}</view>
  47. </view>
  48. </view>
  49. <view class="cenforbottom">
  50. <view class="forbottomview">
  51. <view class="bottomview1">录音时长 (分钟)</view>
  52. <view class="bottomview2">{{item.mm}}分钟</view>
  53. </view>
  54. <view class="forbottomview">
  55. <view class="bottomview1">需求触达次数</view>
  56. <view class="bottomview2">{{item.total}}次</view>
  57. </view>
  58. <view class="forbottomview" style="border: none;">
  59. <view class="bottomview1">接访得分</view>
  60. <view class="bottomview2" v-if="item.fraction==null">0分</view>
  61. <view class="bottomview2" v-else>{{item.fraction}}分</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view v-if="tadelist.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  66. <view style="width: 100%;background: #FFFFFF;padding-top: 200rpx;">
  67. <view style="width: 100%;text-align: center;">
  68. <image style="width: 200rpx;height: 200rpx;" src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  69. </view>
  70. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 1 -->
  75. <view v-if="screeningshow1==true" class="call_zhezhao" @click="allcancel()"></view>
  76. <view v-if="screeningshow1==true" class="timepick">
  77. <view class="tiempickbox">
  78. <view :class="{ timeactive: activetime == 0 }" @click="activetimetab(0)">今日</view>
  79. <view :class="{ timeactive: activetime == 1 }" @click="activetimetab(1)">昨日</view>
  80. <view :class="{ timeactive: activetime == 2 }" @click="activetimetab(2)">近一周</view>
  81. <view :class="{ timeactive: activetime == 3 }" @click="activetimetab(3)">本月</view>
  82. </view>
  83. <view class="tiempickzidingyi" @click="activetimetab(5)">
  84. <text v-if="Datesicing.length==0">自定义时间:请选择</text>
  85. <text v-else>{{Datesicing}}</text>
  86. </view>
  87. </view>
  88. <!-- 2 -->
  89. <view v-if="screeningshow2==true" class="call_zhezhao" @click="allcancel()"></view>
  90. <view v-if="screeningshow2==true" class="userinput">
  91. <view class="inputdlex">
  92. <view class="flexzuo">
  93. <input class="flexinput" @confirm="searchinfo()" v-model="name" type="text" placeholder="请输入客户名" />
  94. </view>
  95. <view class="flexyou" @click="searchinfo()">搜索</view>
  96. </view>
  97. </view>
  98. <!-- 3 -->
  99. <view v-if="screeningshow3==true" class="call_zhezhao" @click="allcancel()"></view>
  100. <view v-if="screeningshow3==true" class="userinput">
  101. <view class="inputdlex">
  102. <view class="flexzuo">
  103. <input class="flexinput" @confirm="searchinfo()" v-model="agentName" type="text" placeholder="请输入顾问名" />
  104. </view>
  105. <view class="flexyou" @click="searchinfo()">搜索</view>
  106. </view>
  107. </view>
  108. <!-- 4 -->
  109. <view v-if="screeningshow4==true" class="call_zhezhao" @click="allcancel()"></view>
  110. <view v-if="screeningshow4==true" class="yuyipick">
  111. <view class="inputdlex">
  112. <!-- <view :class="{ timeactive111: keywordsId == item.keywordsId }" @click="semantictap(index)"
  113. v-for="(item,index) in semanticlist" :key="index">{{item.name}}</view> -->
  114. <view :class="{ timeactive111: item.checked }" @click="itemChcek(index)"
  115. v-for="(item,index) in semanticlist" :key="index">{{item.name}}</view>
  116. </view>
  117. <view class="screen-foot">
  118. <view class="screen-foot-reset" @click="reset">
  119. 重置
  120. </view>
  121. <view class="screen-foot-sure" @click="screensure">
  122. 确定
  123. </view>
  124. </view>
  125. </view>
  126. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  127. </view>
  128. </template>
  129. <script>
  130. var app = getApp();
  131. var util = require("../../../../utils/util.js");
  132. var config = require("../../../../config");
  133. export default {
  134. data() {
  135. return {
  136. screeningshow1:false,
  137. screeningshow2:false,
  138. screeningshow3:false,
  139. screeningshow4:false,
  140. activetime:2,
  141. totalTimeShow:false,
  142. Datesicing:'',
  143. Inthemiddletime:'',
  144. starttime:'',//开始时间
  145. endoftime:'',//结束时间
  146. keywordsId:'',//选中语义词id
  147. houseId:'',//楼盘id
  148. semanticlist:[],//语义词集合
  149. name:'',
  150. agentName:'',
  151. pageNum:1,
  152. pageSize:10,
  153. tadelist:[],
  154. totalpage:0,
  155. keywordIds:''
  156. };
  157. },
  158. onLoad(options) {
  159. console.log(options)
  160. if(options.datatype==3){
  161. this.activetime=5;
  162. this.starttime=options.starttime;
  163. this.endoftime=options.endoftime;
  164. this.Datesicing=this.starttime+'至'+this.endoftime;
  165. }else{
  166. this.activetime=options.datatype;
  167. this.starttime='';
  168. this.endoftime='';
  169. this.Datesicing='';
  170. }
  171. // this.keywordsId=options.keywordsId
  172. this.keywordIds=options.keywordsId
  173. this.houseId=uni.getStorageSync('buildingID').id;
  174. this.Accesstolevel()
  175. },
  176. onReachBottom() {
  177. console.log("4444444444444444444")
  178. if (this.totalpage < this.pageNum * this.pageSize) {
  179. return uni.showToast({
  180. title: "到底了",
  181. })
  182. }
  183. this.pageNum++;
  184. this.getinit();
  185. },
  186. methods: {
  187. toinfo(item){
  188. uni.navigateTo({
  189. url: `/pages/center/Piabodata/Customerportrait/Receivedetailabout?customerId=${item.id}`
  190. })
  191. },
  192. //搜索
  193. searchinfo(){
  194. this.totalpage=0;
  195. this.tadelist=[];
  196. this.pageNum=1;
  197. this.getinit()
  198. },
  199. itemChcek(index){
  200. this.semanticlist[index].checked=!this.semanticlist[index].checked
  201. this.$forceUpdate()
  202. },
  203. reset(){
  204. this.semanticlist.map(item=>{
  205. item.checked=false
  206. })
  207. this.keywordIds=''
  208. this.$forceUpdate()
  209. this.allcancel()
  210. this.totalpage=0;
  211. this.tadelist=[];
  212. this.pageNum=1;
  213. this.getinit()
  214. },
  215. screensure(){
  216. let arr=[]
  217. this.semanticlist.map(item=>{
  218. if(item.checked){
  219. arr.push(item.keywordsId)
  220. }
  221. })
  222. this.keywordIds=arr.join(',')
  223. // console.log(this.keywordIds)
  224. this.allcancel()
  225. this.totalpage=0;
  226. this.tadelist=[];
  227. this.pageNum=1;
  228. this.getinit()
  229. },
  230. //点击三级
  231. semantictap(index){
  232. this.keywordsId=this.semanticlist[index].keywordsId;
  233. this.allcancel()
  234. this.totalpage=0;
  235. this.tadelist=[];
  236. this.pageNum=1;
  237. this.getinit()
  238. },
  239. //获取列表数据
  240. getinit(){
  241. uni.showToast({
  242. title: '加载中',
  243. icon:'loading',
  244. duration: 1500
  245. });
  246. let datatype='';
  247. if(this.activetime==5){
  248. var parames={
  249. pageNum:this.pageNum,
  250. pageSize:this.pageSize,
  251. query:{
  252. staTime:this.starttime,
  253. endTime:this.endoftime,
  254. time:1,
  255. name:this.name,
  256. agentName:this.agentName,
  257. type:0,
  258. keywordIds:this.keywordIds,
  259. // keywordsId:this.keywordsId,
  260. projectId:this.houseId,
  261. }
  262. }
  263. }else{
  264. datatype=this.activetime;
  265. var parames={
  266. pageNum:this.pageNum,
  267. pageSize:this.pageSize,
  268. query:{
  269. dateType:Number(datatype),
  270. staTime:this.starttime,
  271. endTime:this.endoftime,
  272. time:1,
  273. name:this.name,
  274. agentName:this.agentName,
  275. type:0,
  276. keywordIds:this.keywordIds,
  277. // keywordsId:this.keywordsId,
  278. projectId:this.houseId,
  279. }
  280. }
  281. }
  282. this.$u.post("/matchKeywords/receptionRecord", parames).then(data => {
  283. if(data.results==null){
  284. console.log("没有")
  285. return
  286. }else{
  287. this.tadelist=[...this.tadelist, ...data.results];
  288. this.totalpage=data.totalRecord;
  289. }
  290. })
  291. },
  292. //获取三级
  293. Accesstolevel(){
  294. let datatype='';
  295. if(this.activetime==5){
  296. var parames={
  297. type:0,
  298. statDateStart:this.starttime,
  299. statDateEnd:this.endoftime,
  300. houseId:this.houseId
  301. }
  302. }else{
  303. datatype=this.activetime;
  304. var parames={
  305. type:0,
  306. dateType:Number(datatype),
  307. statDateStart:this.starttime,
  308. statDateEnd:this.endoftime,
  309. houseId:this.houseId
  310. }
  311. }
  312. this.$u.post("/matchKeywords/findKeywords", parames).then(data => {
  313. data.forEach(item=>{
  314. if(item.isInterval==0){
  315. item.name=item.name+item.unit+'-'+item.endName+item.unit
  316. }
  317. if(item.keywordsId==this.keywordIds){
  318. item.checked=true
  319. }else{
  320. item.checked=false
  321. }
  322. })
  323. this.semanticlist=data;
  324. this.getinit();
  325. })
  326. },
  327. //遮罩取消
  328. allcancel(){
  329. this.screeningshow1=false;
  330. this.screeningshow2=false;
  331. this.screeningshow3=false;
  332. this.screeningshow4=false;
  333. },
  334. //自定义时间确认
  335. totalTimeChange(e){
  336. this.Datesicing=e.startDate+'至'+e.endDate;
  337. this.starttime=e.startDate;
  338. this.endoftime=e.endDate;
  339. this.activetime=this.Inthemiddletime;
  340. this.totalTimeShow=false;
  341. this.tadelist=[]
  342. this.allcancel()
  343. this.Accesstolevel()
  344. },
  345. //时间选择
  346. activetimetab(index){
  347. if(index==5){
  348. this.Inthemiddletime=index;
  349. this.totalTimeShow=!this.totalTimeShow;
  350. }else{
  351. this.Datesicing='';
  352. this.activetime=index;
  353. this.tadelist=[]
  354. this.allcancel()
  355. this.Accesstolevel()
  356. }
  357. },
  358. //筛选弹框
  359. clickscreening(i){
  360. if(i==1){
  361. this.screeningshow1=!this.screeningshow1;
  362. this.screeningshow2=false;
  363. this.screeningshow3=false;
  364. this.screeningshow4=false;
  365. }else if(i==2){
  366. this.screeningshow2=!this.screeningshow2;
  367. this.screeningshow1=false;
  368. this.screeningshow3=false;
  369. this.screeningshow4=false;
  370. }else if(i==3){
  371. this.screeningshow3=!this.screeningshow3;
  372. this.screeningshow2=false;
  373. this.screeningshow1=false;
  374. this.screeningshow4=false;
  375. }else{
  376. this.screeningshow4=!this.screeningshow4;
  377. this.screeningshow2=false;
  378. this.screeningshow3=false;
  379. this.screeningshow1=false;
  380. }
  381. }
  382. }
  383. };
  384. </script>
  385. <style lang="scss" scoped>
  386. .timeactive111{
  387. color: #2671E2;
  388. }
  389. *{
  390. margin:0;
  391. padding:0;
  392. box-sizing:border-box;
  393. }
  394. .cenbox{
  395. width: 100%;
  396. height: 100%;
  397. background-color: #F8F8F8;
  398. display:flex;
  399. flex-direction:column;
  400. .screeningtop{
  401. width: 100%;
  402. height: 75rpx;
  403. background-color: #FFFFFF;
  404. border-bottom: 1px solid #E0E0E0;
  405. align-items: center;
  406. display: flex;
  407. align-items: center;
  408. position: relative;
  409. }
  410. .screeningview{
  411. flex: 1;
  412. height: 100%;
  413. display: flex;
  414. align-items: center;
  415. justify-content: center;
  416. border-right: 1px solid #E0E0E0;
  417. }
  418. .zhuti{
  419. flex:1;
  420. // soverflow:auto;
  421. }
  422. }
  423. .viewimg{
  424. width: 20rpx;
  425. height: 100%;
  426. line-height: 72rpx;
  427. margin-left: 10rpx;
  428. image{
  429. width: 20rpx;
  430. height: 12rpx;
  431. }
  432. }
  433. .cenforview{
  434. width: 100%;
  435. height: 275rpx;
  436. background: #FFFFFF;
  437. margin-top: 20rpx;
  438. .cenfortop{
  439. width: 100%;
  440. height: 146rpx;
  441. display: flex;
  442. // border-bottom: 1px solid #E0E0E0;
  443. .fortopzuo{
  444. width: 16%;
  445. padding-top: 30rpx;
  446. .topzuoimg{
  447. width: 60rpx;
  448. height: 60rpx;
  449. margin-left: 30rpx;
  450. border-radius: 50%;
  451. image{
  452. width: 100%;
  453. height: 100%;
  454. }
  455. }
  456. }
  457. .fortopyou{
  458. width: 84%;
  459. height: 146rpx;
  460. .topyouview1{
  461. width: 100%;
  462. margin-top: 28rpx;
  463. display: flex;
  464. .youview1-1{
  465. width: 25%;
  466. font-size: 28rpx;
  467. font-weight: 400;
  468. color: #333333;
  469. overflow: hidden;
  470. white-space:nowrap;
  471. text-overflow:ellipsis;
  472. }
  473. .youview1-2{
  474. width: 75%;
  475. font-size: 26rpx;
  476. font-weight: 400;
  477. color: #666666;
  478. }
  479. }
  480. .topyouview2{
  481. width: 100%;
  482. font-size: 28rpx;
  483. font-weight: 400;
  484. color: #333333;
  485. margin-top: 20rpx;
  486. }
  487. }
  488. }
  489. .cenforbottom{
  490. width: 100%;
  491. height: 128rpx;
  492. display: flex;
  493. align-items: center;
  494. .forbottomview{
  495. flex: 1;
  496. height: 128rpx;
  497. // border-right: 1px solid #E0E0E0;
  498. .bottomview1{
  499. width: 100%;
  500. height: 26rpx;
  501. font-size: 26rpx;
  502. font-weight: 400;
  503. color: #666666;
  504. line-height: 26rpx;
  505. text-align: center;
  506. margin-top: 24rpx;
  507. }
  508. .bottomview2{
  509. width: 100%;
  510. height: 30rpx;
  511. font-size: 30rpx;
  512. font-weight: 600;
  513. color: #333333;
  514. line-height: 30rpx;
  515. text-align: center;
  516. margin-top: 24rpx;
  517. }
  518. }
  519. }
  520. }
  521. .timepick{
  522. width: 100%;
  523. height: 210rpx;
  524. background: #FFFFFF;
  525. position: absolute;
  526. top: 74rpx;
  527. left: 0;
  528. z-index: 20;
  529. .tiempickbox{
  530. width: 94%;
  531. margin: 0 auto;
  532. height: 56rpx;
  533. display: flex;
  534. align-items: center;
  535. margin-top: 25rpx;
  536. }
  537. .tiempickbox>view:nth-of-type(1){
  538. width: 156rpx;
  539. height: 56rpx;
  540. border-radius: 4rpx;
  541. text-align: center;
  542. line-height: 56rpx;
  543. font-size: 28rpx;
  544. border: 1px solid #C9C9C9;
  545. }
  546. .tiempickbox>view:nth-of-type(2){
  547. width: 156rpx;
  548. height: 56rpx;
  549. border-radius: 4rpx;
  550. text-align: center;
  551. line-height: 56rpx;
  552. font-size: 28rpx;
  553. border: 1px solid #C9C9C9;
  554. margin-left: 28rpx;
  555. }
  556. .tiempickbox>view:nth-of-type(3){
  557. width: 156rpx;
  558. height: 56rpx;
  559. border-radius: 4rpx;
  560. text-align: center;
  561. line-height: 56rpx;
  562. font-size: 28rpx;
  563. border: 1px solid #C9C9C9;
  564. margin-left: 28rpx;
  565. }
  566. .tiempickbox>view:nth-of-type(4){
  567. width: 156rpx;
  568. height: 56rpx;
  569. border-radius: 4rpx;
  570. text-align: center;
  571. line-height: 56rpx;
  572. font-size: 28rpx;
  573. border: 1px solid #C9C9C9;
  574. margin-left: 28rpx;
  575. }
  576. .tiempickzidingyi{
  577. width: 94%;
  578. margin: 0 auto;
  579. margin-top: 28rpx;
  580. height: 60rpx;
  581. background: #FFFFFF;
  582. border-radius: 4rpx;
  583. border: 1px solid #C9C9C9;
  584. text-align: center;
  585. line-height: 60rpx;
  586. color: #666666;
  587. }
  588. }
  589. .call_zhezhao {
  590. position: fixed;
  591. width: 100%;
  592. height: 100%;
  593. top: 75rpx;
  594. left: 0rpx;
  595. opacity: 0.5;
  596. background-color: #666666;
  597. z-index: 10;
  598. }
  599. .timeactive{
  600. color: #FFFFFF;
  601. background-color: #2671E2;
  602. }
  603. .userinput{
  604. width: 100%;
  605. height: 126rpx;
  606. background: #FFFFFF;
  607. position: absolute;
  608. top: 74rpx;
  609. left: 0;
  610. z-index: 20;
  611. .inputdlex{
  612. width: 90%;
  613. margin: 0 auto;
  614. height: 56rpx;
  615. display: flex;
  616. align-items: center;
  617. margin-top: 30rpx;
  618. .flexzuo{
  619. width: 80%;
  620. .flexinput{
  621. width: 96%;
  622. height: 100%;
  623. border-radius: 20rpx;
  624. border: 1px solid #C9C9C9;
  625. padding-left: 20rpx;
  626. font-size: 24rpx;
  627. }
  628. }
  629. .flexyou{
  630. width: 20%;
  631. font-size: 28rpx;
  632. color: #2671E2;
  633. text-indent: 28rpx;
  634. }
  635. }
  636. }
  637. .yuyipick{
  638. width: 100%;
  639. min-height: 300rpx;
  640. max-height: 500rpx;
  641. background: #FFFFFF;
  642. overflow-y: auto;
  643. // padding-bottom: 20rpx;
  644. position: absolute;
  645. top: 74rpx;
  646. left: 0;
  647. z-index: 20;
  648. .inputdlex{
  649. width: 90%;
  650. margin: 0 auto;
  651. display: flex;
  652. flex-wrap: wrap;
  653. margin-top: 30rpx;
  654. }
  655. .inputdlex view{
  656. width: 50%;
  657. font-size: 26rpx;
  658. font-weight: 400;
  659. text-align: center;
  660. margin-top: 26rpx;
  661. }
  662. }
  663. .screen-foot{
  664. width: 100%;
  665. height: 88rpx;
  666. display: flex;
  667. margin-top: 20rpx;
  668. border-top: 1px solid #E0E0E0;
  669. .screen-foot-reset{
  670. width: 50%;
  671. text-align: center;
  672. height: 88rpx;
  673. line-height: 88rpx;
  674. font-size: 30rpx;
  675. font-weight: 400;
  676. color: #666666;
  677. }
  678. .screen-foot-sure{
  679. width: 50%;
  680. text-align: center;
  681. line-height: 88rpx;
  682. height: 88rpx;
  683. font-size: 30rpx;
  684. font-weight: 400;
  685. color: #FFFFFF;
  686. background: #2671E2;
  687. }
  688. }
  689. </style>