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.
 
 
 

702 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. type:0,
  157. };
  158. },
  159. onLoad(options) {
  160. console.log(options)
  161. if(options.datatype==3){
  162. this.activetime=5;
  163. this.starttime=options.starttime;
  164. this.endoftime=options.endoftime;
  165. this.Datesicing=this.starttime+'至'+this.endoftime;
  166. }else{
  167. this.activetime=options.datatype;
  168. this.starttime='';
  169. this.endoftime='';
  170. this.Datesicing='';
  171. }
  172. // this.keywordsId=options.keywordsId
  173. this.keywordIds=options.keywordsId
  174. this.houseId=uni.getStorageSync('buildingID').id;
  175. this.Accesstolevel()
  176. },
  177. onReachBottom() {
  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:this.type,
  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. this.type=1;
  284. if(data.results==null){
  285. console.log("没有")
  286. return
  287. }else{
  288. this.tadelist=[...this.tadelist, ...data.results];
  289. this.totalpage=data.totalRecord;
  290. }
  291. })
  292. },
  293. //获取三级
  294. Accesstolevel(){
  295. let datatype='';
  296. if(this.activetime==5){
  297. var parames={
  298. type:0,
  299. statDateStart:this.starttime,
  300. statDateEnd:this.endoftime,
  301. houseId:this.houseId
  302. }
  303. }else{
  304. datatype=this.activetime;
  305. var parames={
  306. type:0,
  307. dateType:Number(datatype),
  308. statDateStart:this.starttime,
  309. statDateEnd:this.endoftime,
  310. houseId:this.houseId
  311. }
  312. }
  313. this.$u.post("/matchKeywords/findKeywords", parames).then(data => {
  314. data.forEach(item=>{
  315. if(item.isInterval==0){
  316. item.name=item.name+item.unit+'-'+item.endName+item.unit
  317. }
  318. if(item.keywordsId==this.keywordIds){
  319. item.checked=true
  320. }else{
  321. item.checked=false
  322. }
  323. })
  324. this.semanticlist=data;
  325. this.getinit();
  326. })
  327. },
  328. //遮罩取消
  329. allcancel(){
  330. this.screeningshow1=false;
  331. this.screeningshow2=false;
  332. this.screeningshow3=false;
  333. this.screeningshow4=false;
  334. },
  335. //自定义时间确认
  336. totalTimeChange(e){
  337. this.Datesicing=e.startDate+'至'+e.endDate;
  338. this.starttime=e.startDate;
  339. this.endoftime=e.endDate;
  340. this.activetime=this.Inthemiddletime;
  341. this.totalTimeShow=false;
  342. this.tadelist=[]
  343. this.allcancel()
  344. this.Accesstolevel()
  345. },
  346. //时间选择
  347. activetimetab(index){
  348. if(index==5){
  349. this.Inthemiddletime=index;
  350. this.totalTimeShow=!this.totalTimeShow;
  351. }else{
  352. this.Datesicing='';
  353. this.activetime=index;
  354. this.tadelist=[]
  355. this.allcancel()
  356. this.Accesstolevel()
  357. }
  358. },
  359. //筛选弹框
  360. clickscreening(i){
  361. if(i==1){
  362. this.screeningshow1=!this.screeningshow1;
  363. this.screeningshow2=false;
  364. this.screeningshow3=false;
  365. this.screeningshow4=false;
  366. }else if(i==2){
  367. this.screeningshow2=!this.screeningshow2;
  368. this.screeningshow1=false;
  369. this.screeningshow3=false;
  370. this.screeningshow4=false;
  371. }else if(i==3){
  372. this.screeningshow3=!this.screeningshow3;
  373. this.screeningshow2=false;
  374. this.screeningshow1=false;
  375. this.screeningshow4=false;
  376. }else{
  377. this.screeningshow4=!this.screeningshow4;
  378. this.screeningshow2=false;
  379. this.screeningshow3=false;
  380. this.screeningshow1=false;
  381. }
  382. }
  383. }
  384. };
  385. </script>
  386. <style lang="scss" scoped>
  387. .timeactive111{
  388. color: #2671E2;
  389. }
  390. *{
  391. margin:0;
  392. padding:0;
  393. box-sizing:border-box;
  394. }
  395. .cenbox{
  396. width: 100%;
  397. height: 100%;
  398. background-color: #F8F8F8;
  399. display:flex;
  400. flex-direction:column;
  401. .screeningtop{
  402. width: 100%;
  403. height: 75rpx;
  404. background-color: #FFFFFF;
  405. border-bottom: 1px solid #E0E0E0;
  406. align-items: center;
  407. display: flex;
  408. align-items: center;
  409. position: relative;
  410. }
  411. .screeningview{
  412. flex: 1;
  413. height: 100%;
  414. display: flex;
  415. align-items: center;
  416. justify-content: center;
  417. border-right: 1px solid #E0E0E0;
  418. }
  419. .zhuti{
  420. flex:1;
  421. // soverflow:auto;
  422. }
  423. }
  424. .viewimg{
  425. width: 20rpx;
  426. height: 100%;
  427. line-height: 72rpx;
  428. margin-left: 10rpx;
  429. image{
  430. width: 20rpx;
  431. height: 12rpx;
  432. }
  433. }
  434. .cenforview{
  435. width: 100%;
  436. height: 275rpx;
  437. background: #FFFFFF;
  438. margin-top: 20rpx;
  439. .cenfortop{
  440. width: 100%;
  441. height: 146rpx;
  442. display: flex;
  443. // border-bottom: 1px solid #E0E0E0;
  444. .fortopzuo{
  445. width: 16%;
  446. padding-top: 30rpx;
  447. .topzuoimg{
  448. width: 60rpx;
  449. height: 60rpx;
  450. margin-left: 30rpx;
  451. border-radius: 50%;
  452. image{
  453. width: 100%;
  454. height: 100%;
  455. }
  456. }
  457. }
  458. .fortopyou{
  459. width: 84%;
  460. height: 146rpx;
  461. .topyouview1{
  462. width: 100%;
  463. margin-top: 28rpx;
  464. display: flex;
  465. .youview1-1{
  466. width: 25%;
  467. font-size: 28rpx;
  468. font-weight: 400;
  469. color: #333333;
  470. overflow: hidden;
  471. white-space:nowrap;
  472. text-overflow:ellipsis;
  473. }
  474. .youview1-2{
  475. width: 75%;
  476. font-size: 26rpx;
  477. font-weight: 400;
  478. color: #666666;
  479. }
  480. }
  481. .topyouview2{
  482. width: 100%;
  483. font-size: 28rpx;
  484. font-weight: 400;
  485. color: #333333;
  486. margin-top: 20rpx;
  487. }
  488. }
  489. }
  490. .cenforbottom{
  491. width: 100%;
  492. height: 128rpx;
  493. display: flex;
  494. align-items: center;
  495. .forbottomview{
  496. flex: 1;
  497. height: 128rpx;
  498. // border-right: 1px solid #E0E0E0;
  499. .bottomview1{
  500. width: 100%;
  501. height: 26rpx;
  502. font-size: 26rpx;
  503. font-weight: 400;
  504. color: #666666;
  505. line-height: 26rpx;
  506. text-align: center;
  507. margin-top: 24rpx;
  508. }
  509. .bottomview2{
  510. width: 100%;
  511. height: 30rpx;
  512. font-size: 30rpx;
  513. font-weight: 600;
  514. color: #333333;
  515. line-height: 30rpx;
  516. text-align: center;
  517. margin-top: 24rpx;
  518. }
  519. }
  520. }
  521. }
  522. .timepick{
  523. width: 100%;
  524. height: 210rpx;
  525. background: #FFFFFF;
  526. position: absolute;
  527. top: 74rpx;
  528. left: 0;
  529. z-index: 20;
  530. .tiempickbox{
  531. width: 94%;
  532. margin: 0 auto;
  533. height: 56rpx;
  534. display: flex;
  535. align-items: center;
  536. margin-top: 25rpx;
  537. }
  538. .tiempickbox>view:nth-of-type(1){
  539. width: 156rpx;
  540. height: 56rpx;
  541. border-radius: 4rpx;
  542. text-align: center;
  543. line-height: 56rpx;
  544. font-size: 28rpx;
  545. border: 1px solid #C9C9C9;
  546. }
  547. .tiempickbox>view:nth-of-type(2){
  548. width: 156rpx;
  549. height: 56rpx;
  550. border-radius: 4rpx;
  551. text-align: center;
  552. line-height: 56rpx;
  553. font-size: 28rpx;
  554. border: 1px solid #C9C9C9;
  555. margin-left: 28rpx;
  556. }
  557. .tiempickbox>view:nth-of-type(3){
  558. width: 156rpx;
  559. height: 56rpx;
  560. border-radius: 4rpx;
  561. text-align: center;
  562. line-height: 56rpx;
  563. font-size: 28rpx;
  564. border: 1px solid #C9C9C9;
  565. margin-left: 28rpx;
  566. }
  567. .tiempickbox>view:nth-of-type(4){
  568. width: 156rpx;
  569. height: 56rpx;
  570. border-radius: 4rpx;
  571. text-align: center;
  572. line-height: 56rpx;
  573. font-size: 28rpx;
  574. border: 1px solid #C9C9C9;
  575. margin-left: 28rpx;
  576. }
  577. .tiempickzidingyi{
  578. width: 94%;
  579. margin: 0 auto;
  580. margin-top: 28rpx;
  581. height: 60rpx;
  582. background: #FFFFFF;
  583. border-radius: 4rpx;
  584. border: 1px solid #C9C9C9;
  585. text-align: center;
  586. line-height: 60rpx;
  587. color: #666666;
  588. }
  589. }
  590. .call_zhezhao {
  591. position: fixed;
  592. width: 100%;
  593. height: 100%;
  594. top: 75rpx;
  595. left: 0rpx;
  596. opacity: 0.5;
  597. background-color: #666666;
  598. z-index: 10;
  599. }
  600. .timeactive{
  601. color: #FFFFFF;
  602. background-color: #2671E2;
  603. }
  604. .userinput{
  605. width: 100%;
  606. height: 126rpx;
  607. background: #FFFFFF;
  608. position: absolute;
  609. top: 74rpx;
  610. left: 0;
  611. z-index: 20;
  612. .inputdlex{
  613. width: 90%;
  614. margin: 0 auto;
  615. height: 56rpx;
  616. display: flex;
  617. align-items: center;
  618. margin-top: 30rpx;
  619. .flexzuo{
  620. width: 80%;
  621. .flexinput{
  622. width: 96%;
  623. height: 100%;
  624. border-radius: 20rpx;
  625. border: 1px solid #C9C9C9;
  626. padding-left: 20rpx;
  627. font-size: 24rpx;
  628. }
  629. }
  630. .flexyou{
  631. width: 20%;
  632. font-size: 28rpx;
  633. color: #2671E2;
  634. text-indent: 28rpx;
  635. }
  636. }
  637. }
  638. .yuyipick{
  639. width: 100%;
  640. min-height: 300rpx;
  641. max-height: 500rpx;
  642. background: #FFFFFF;
  643. overflow-y: auto;
  644. // padding-bottom: 20rpx;
  645. position: absolute;
  646. top: 74rpx;
  647. left: 0;
  648. z-index: 20;
  649. .inputdlex{
  650. width: 90%;
  651. margin: 0 auto;
  652. display: flex;
  653. flex-wrap: wrap;
  654. margin-top: 30rpx;
  655. }
  656. .inputdlex view{
  657. width: 50%;
  658. font-size: 26rpx;
  659. font-weight: 400;
  660. text-align: center;
  661. margin-top: 26rpx;
  662. }
  663. }
  664. .screen-foot{
  665. width: 100%;
  666. height: 88rpx;
  667. display: flex;
  668. margin-top: 20rpx;
  669. border-top: 1px solid #E0E0E0;
  670. .screen-foot-reset{
  671. width: 50%;
  672. text-align: center;
  673. height: 88rpx;
  674. line-height: 88rpx;
  675. font-size: 30rpx;
  676. font-weight: 400;
  677. color: #666666;
  678. }
  679. .screen-foot-sure{
  680. width: 50%;
  681. text-align: center;
  682. line-height: 88rpx;
  683. height: 88rpx;
  684. font-size: 30rpx;
  685. font-weight: 400;
  686. color: #FFFFFF;
  687. background: #2671E2;
  688. }
  689. }
  690. </style>