AI销管
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.
 
 
 
 

1318 lines
34 KiB

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