25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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