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.
 
 
 

1189 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. <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: false,
  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 + ' 23:59:59';
  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. visitRecords: this.screen.visitRecord.join(','),//到访次数
  686. visitRecords: this.screen.zixunVal.join(','),//咨询
  687. visitRecords: this.screen.wajueVal.join(','),//挖掘
  688. visitRecords: this.screen.jiedaiVal.join(','),//接待时长
  689. visitRecords: this.screen.xiaojiangVal.join(','),//销讲
  690. markAdvisor: this.screen.markAdvisor,//标记
  691. dateType: dateType,
  692. recDurationInterval: recDurationInterval,
  693. orderBy: this.orderBy==0?null:this.orderBy,//排序
  694. validInvalid: this.screen.validInvalid,
  695. clientStage: this.screen.clientStage,
  696. recording: this.screen.validInvalid == 2 ? 0 : null
  697. }
  698. };
  699. if (this.screen.agentId) {
  700. parames.query.agentId = this.screen.agentId
  701. }
  702. this.$u.post("/customer/findbypage", parames).then(data => {
  703. this.LOADING = false
  704. if (this.staTime && this.endtime) {
  705. this.arriveFilter = `${this.staTime}-${this.endtime}`
  706. }
  707. var list = data.results || [];
  708. if (this.isRefresh) {
  709. this.recordList = list;
  710. } else {
  711. this.recordList = [...this.recordList, ...list];
  712. }
  713. this.totalRecord = data.totalPage;
  714. this.totalRecords = data.totalRecord;
  715. }).catch(e => {
  716. this.LOADING = false
  717. })
  718. },
  719. //获取顾问列表
  720. getFreeList() {
  721. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  722. houseId: this.buildingID
  723. }).then(res => {
  724. this.freeList = res;
  725. this.freeList.forEach(item => {
  726. item.label = item.name;
  727. item.value = item.accountId
  728. })
  729. })
  730. },
  731. actionSelectCallback(e) {
  732. this.screen.agentId = e[0].value;
  733. this.counselorName = e[0].label;
  734. this.recordList = [];
  735. this.nextPage = 1;
  736. this.isRefresh = false;
  737. this.getMyCustom();
  738. },
  739. reset() {
  740. this.screen = {
  741. record: '0',
  742. markAdvisor: null,//标记顾问
  743. visitRecord: [],// 到访次数
  744. zixunVal: null,// 咨询业务
  745. wajueVal: null,// 需求挖掘率
  746. jiedaiVal: null,// 接待时长
  747. xiaojiangVal: null,// 销讲执行率
  748. validInvalid: null,
  749. clientStage: '',
  750. clientStageName: '',
  751. recording: null,
  752. visitRecords: ""
  753. }
  754. this.visitList.map(i => {
  755. i.isShow = false
  756. })
  757. this.jiedaiList.map(i => {
  758. i.isShow = false
  759. })
  760. this.zixunList.map(i => {
  761. i.isShow = false
  762. })
  763. this.xiaojiangList.map(i => {
  764. i.isShow = false
  765. })
  766. this.nextPage = 1;
  767. this.recordList = [];
  768. this.getMyCustom();
  769. },
  770. recordclick(i) {
  771. if (this.screen.visitRecord == i) {
  772. this.screen.visitRecord = null
  773. } else {
  774. this.screen.visitRecord = i
  775. }
  776. },
  777. screenvisitRecord(i) {
  778. if (this.screen.markAdvisor == i) {
  779. this.screen.markAdvisor = null
  780. } else {
  781. this.screen.markAdvisor = i
  782. }
  783. },
  784. screenvisivalidInvalid(i) {
  785. console.log(this.screen.validInvalid, i)
  786. if (this.screen.validInvalid == i) {
  787. this.screen.validInvalid = null
  788. } else {
  789. this.screen.validInvalid = i
  790. }
  791. },
  792. //咨询业务
  793. screenzixunClick(i) {
  794. console.log(this.screen.zixunVal, i)
  795. if (this.screen.zixunVal == i) {
  796. this.screen.zixunVal = null
  797. } else {
  798. this.screen.zixunVal = i
  799. }
  800. },
  801. // 需求挖掘选择
  802. screenwajueValClick(i) {
  803. // console.log(this.screen.wajueVal, i)
  804. if (this.screen.wajueVal == i) {
  805. this.screen.wajueVal = null
  806. } else {
  807. this.screen.wajueVal = i
  808. }
  809. },
  810. screensure() {
  811. this.screenShow = false;
  812. this.recordList = [];
  813. this.nextPage = 1;
  814. this.isRefresh = false;
  815. this.getMyCustom();
  816. },
  817. goSearch() {
  818. uni.navigateTo({
  819. url: '/pages/center/records/recordSearch'
  820. });
  821. },
  822. },
  823. }
  824. </script>
  825. <style lang="scss" scoped>
  826. .box {
  827. width: 100%;
  828. height: 100%;
  829. background: #F8F8F8;
  830. }
  831. .count {
  832. width: 100%;
  833. height: 60rpx;
  834. display: flex;
  835. align-items: center;
  836. justify-content: center;
  837. background-color: #fff;
  838. text {
  839. color: #F71616;
  840. }
  841. }
  842. .timeview {
  843. height: 80rpx;
  844. line-height: 80rpx;
  845. width: 100%;
  846. text-align: center;
  847. border-bottom: 1px solid #F8F8F8;
  848. }
  849. //时间切换的样式
  850. .boxtittab {
  851. position: sticky;
  852. top: var(--window-top);
  853. z-index: 999;
  854. width: 100;
  855. height: 92rpx;
  856. background: #FFFFFF;
  857. border-bottom: 1px solid #E0E0E0;
  858. display: flex;
  859. align-items: center;
  860. .tabbox {
  861. flex: 1;
  862. height: 100%;
  863. text-align: center;
  864. line-height: 92rpx;
  865. color: #666666;
  866. font-size: 28rpx;
  867. overflow: hidden;
  868. text-overflow: ellipsis;
  869. display: -webkit-box;
  870. /* 将对象作为弹性伸缩盒子模型显示 */
  871. -webkit-line-clamp: 1;
  872. /* 控制最多显示几行 */
  873. -webkit-box-orient: vertical;
  874. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  875. }
  876. }
  877. .search-box {
  878. width: 100%;
  879. height: 102rpx;
  880. background: #FFFFFF;
  881. display: flex;
  882. align-items: center;
  883. justify-content: center;
  884. .search {
  885. width: 94%;
  886. height: 70rpx;
  887. display: flex;
  888. align-items: center;
  889. background: #F8F8F8;
  890. border-radius: 33rpx;
  891. .search-img {
  892. width: 26rpx;
  893. height: 30rpx;
  894. margin-left: 20rpx;
  895. .search-img1 {
  896. width: 100%;
  897. height: 100%;
  898. margin-top: 2rpx;
  899. }
  900. }
  901. .search-text {
  902. font-size: 28rpx;
  903. font-weight: 400;
  904. color: #999999;
  905. margin-left: 10rpx;
  906. }
  907. }
  908. .search-screen {
  909. width: 40rpx;
  910. height: 40rpx;
  911. margin-left: 30rpx;
  912. .search-screen1 {
  913. width: 100%;
  914. height: 100%;
  915. }
  916. }
  917. }
  918. .content {
  919. .content-tips {
  920. background: #fff;
  921. box-sizing: border-box;
  922. overflow: hidden;
  923. margin-top: 20rpx;
  924. padding: 30rpx;
  925. .content-first {
  926. display: flex;
  927. justify-content: space-between;
  928. .left {
  929. display: flex;
  930. align-items: center;
  931. .img {
  932. width: 52rpx;
  933. height: 52rpx;
  934. background: #FFFFFF;
  935. border: 1px solid #C9C9C9;
  936. border-radius: 50%;
  937. text-align: center;
  938. line-height: 52rpx;
  939. }
  940. .name {
  941. font-weight: 600;
  942. color: #333333;
  943. margin-right: 10rpx;
  944. }
  945. .status {
  946. width: 110rpx;
  947. height: 42rpx;
  948. background: #FFF9F5;
  949. border-radius: 4rpx;
  950. font-size: 26rpx;
  951. font-weight: 400;
  952. color: #EC8D49;
  953. line-height: 42rpx;
  954. text-align: center;
  955. margin: 0 10rpx;
  956. }
  957. .normal-status{
  958. color:red;
  959. }
  960. }
  961. .right {
  962. display: flex;
  963. margin-top: 11rpx;
  964. .point {
  965. width: 12rpx;
  966. height: 12rpx;
  967. background: #2B6EFF;
  968. border-radius: 50%;
  969. margin-right: 9rpx;
  970. margin-top: 16rpx;
  971. }
  972. }
  973. }
  974. .content-sec {
  975. display: flex;
  976. justify-content: space-between;
  977. margin: 24rpx 0;
  978. .left {
  979. flex: 1;
  980. height: 40rpx;
  981. font-size: 28rpx;
  982. font-family: PingFangSC-Medium, PingFang SC;
  983. font-weight: 500;
  984. color: #333333;
  985. line-height: 40rpx;
  986. }
  987. .right{
  988. flex: 1;
  989. height: 40rpx;
  990. font-size: 28rpx;
  991. font-family: PingFangSC-Regular, PingFang SC;
  992. font-weight: 400;
  993. color: #333333;
  994. line-height: 40rpx;
  995. text-align: right;
  996. }
  997. }
  998. .content-time {
  999. font-size: 28rpx;
  1000. font-family: PingFangSC-Regular, PingFang SC;
  1001. font-weight: 400;
  1002. color: #333333;
  1003. line-height: 40rpx;
  1004. padding: 20rpx 0 24rpx;
  1005. border-bottom: 1px solid #E0E0E0;
  1006. }
  1007. .content-last {
  1008. display: flex;
  1009. justify-content: space-around;
  1010. .cont-item{
  1011. display: flex;
  1012. flex-direction: column;
  1013. align-items: center;
  1014. justify-content: center;
  1015. .count{
  1016. height: 42rpx;
  1017. font-size: 30rpx;
  1018. font-family: PingFangSC-Regular, PingFang SC;
  1019. font-weight: 400;
  1020. color: #000000;
  1021. line-height: 42rpx;
  1022. margin-bottom: 16rpx;
  1023. }
  1024. .text{
  1025. height: 32rpx;
  1026. font-size: 24rpx;
  1027. font-family: PingFangSC-Regular, PingFang SC;
  1028. font-weight: 400;
  1029. color: #666666;
  1030. line-height: 32rpx;
  1031. }
  1032. }
  1033. }
  1034. }
  1035. }
  1036. // 这是弹出层
  1037. .screen {
  1038. width: 750rpx;
  1039. .screen-counselor {
  1040. display: flex;
  1041. height: 106rpx;
  1042. padding: 0 30rpx;
  1043. box-sizing: border-box;
  1044. border-bottom: 1px solid #EEEEEE;
  1045. .screen-text {
  1046. margin: 40rpx 0 36rpx 0;
  1047. font-size: 30rpx;
  1048. font-weight: 400;
  1049. color: #333333;
  1050. line-height: 30rpx;
  1051. }
  1052. .screen-sel {
  1053. display: flex;
  1054. justify-content: space-between;
  1055. width: 500rpx;
  1056. margin-left: 60rpx;
  1057. .screen-sel-img {
  1058. margin: 40rpx 0 36rpx 0;
  1059. width: 14rpx;
  1060. height: 30rpx;
  1061. }
  1062. .screen-inp {
  1063. margin-top: 20rpx;
  1064. }
  1065. }
  1066. }
  1067. .screen-record {
  1068. overflow: hidden;
  1069. padding: 0 30rpx;
  1070. box-sizing: border-box;
  1071. border-bottom: 1px solid #e0e0e0;
  1072. .screen-record-text {
  1073. padding: 30rpx 0;
  1074. font-size: 30rpx;
  1075. font-weight: 400;
  1076. color: #333333;
  1077. line-height: 30rpx;
  1078. display: flex;
  1079. align-items: center;
  1080. justify-content: space-between;
  1081. .arrow{
  1082. width: 30rpx;
  1083. height: 14rpx;
  1084. }
  1085. }
  1086. .screen-record-tab {
  1087. margin-top: 30rpx;
  1088. padding-bottom: 10rpx;
  1089. display: flex;
  1090. flex-wrap: wrap;
  1091. .screen-record-item{
  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>