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.
 
 
 
 

1319 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.houseId) this.buildingID = options.houseId
  497. if (options.staTime) {
  498. this.staTime = options.staTime;
  499. this.endtime = options.endtime + ' 23:59:59';
  500. }
  501. },
  502. onShow() {
  503. try {
  504. this.$store.commit('stopAduio')
  505. } catch (e) {
  506. console.log(e)
  507. }
  508. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  509. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  510. this.methodsisshow = false;
  511. } else {
  512. this.methodsisshow = true;
  513. }
  514. if (this.isnorefresh == 'refresh') {
  515. if (!this.buildingID) this.buildingID = uni.getStorageSync('buildingID').id;
  516. this.recordList = [];
  517. this.nextPage = 1;
  518. this.isRefresh = false;
  519. this.getMyCustom()
  520. this.getFreeList();
  521. this.getMarketingBusiness()
  522. this.isnorefresh = '';
  523. }
  524. },
  525. onPullDownRefresh() {
  526. this.isRefresh = true;
  527. this.nextPage = 1;
  528. this.getMyCustom()
  529. setTimeout(function() {
  530. uni.stopPullDownRefresh();
  531. }, 1000);
  532. },
  533. onReachBottom() {
  534. if (this.totalRecord == this.nextPage) {
  535. uni.showToast({
  536. icon: 'none',
  537. title: '到底了',
  538. duration: 2000
  539. });
  540. return
  541. } else {
  542. this.nextPage += 1;
  543. this.isRefresh = false;
  544. this.getMyCustom();
  545. }
  546. },
  547. methods: {
  548. // 获取销讲业务
  549. getMarketingBusiness() {
  550. this.$u.get('/customer/marketingBusiness', {
  551. houseId: this.buildingID,
  552. }).then(res => {
  553. this.templateList = res.map(item => {
  554. return {
  555. ...item,
  556. isShow: false,
  557. }
  558. })
  559. console.log(this.templateList, 'this.templateList')
  560. })
  561. },
  562. taptimetuisshow() {
  563. this.timetushow = true;
  564. },
  565. //选择标签
  566. selectCallback2(e) {
  567. this.sortText = e[0].label
  568. this.screen.orderBy = e[0].value;
  569. this.nextPage = 1;
  570. this.recordList = [];
  571. this.isRefresh = false;
  572. this.getMyCustom();
  573. },
  574. //时间选择
  575. tabtimetap(index, text) {
  576. this.timeshow = false;
  577. if (text) {
  578. this.arriveFilter = text
  579. }
  580. if (index == 4) {
  581. this.totalTimeShow = true;
  582. } else {
  583. this.activeTotal = index;
  584. this.staTime = '';
  585. this.endtime = '';
  586. this.nextPage = 1;
  587. this.recordList = [];
  588. this.isRefresh = false;
  589. this.getMyCustom();
  590. }
  591. },
  592. //自定义时间
  593. totalTimeChange(e) {
  594. this.staTime = e.startDate;
  595. this.endtime = e.endDate;
  596. this.activeTotal = 4;
  597. this.nextPage = 1;
  598. this.recordList = [];
  599. this.isRefresh = false;
  600. this.getMyCustom();
  601. },
  602. tapThevisiting(item) {
  603. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  604. if (newmenulist.jdjl_ck != true) {
  605. return
  606. }
  607. this.wordFinishFraction = item.wordFinishFraction
  608. this.wordFraction = item.wordFraction
  609. uni.showLoading({
  610. title: '加载中',
  611. mask: true
  612. });
  613. if (item.status == 0) {
  614. setTimeout(() => {
  615. uni.hideLoading();
  616. }, 2000);
  617. uni.showToast({
  618. icon: "none",
  619. title: "排队中"
  620. })
  621. return
  622. } else {
  623. const parames = {
  624. pageNum: 1,
  625. pageSize: 100,
  626. query: {
  627. customerId: item.id,
  628. }
  629. }
  630. var item = {
  631. bg: 0,
  632. customerId: item.id,
  633. }
  634. uni.setStorageSync("searchobj", item); //写入缓存
  635. uni.setStorageSync("entrance", 1); //写入缓存
  636. this.$u.post("/corpus/findByPage", parames).then(res => {
  637. if (res == null) {
  638. setTimeout(() => {
  639. uni.hideLoading();
  640. }, 2000);
  641. if (this.CHECKAUTHORITY('sbrz')) {
  642. uni.navigateTo({
  643. url: `/pages/mine/equipmentLog?id=${item.customerId}`
  644. })
  645. } else {
  646. uni.showToast({
  647. icon: "none",
  648. title: "暂无音频"
  649. })
  650. }
  651. return
  652. } else {
  653. setTimeout(() => {
  654. uni.hideLoading();
  655. }, 2000);
  656. let newobj = res[0];
  657. if (res[0].merge == 0) {
  658. uni.navigateTo({
  659. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=2&wordFraction=${this.wordFraction}&wordFinishFraction=${this.wordFinishFraction}`
  660. })
  661. } else {
  662. uni.navigateTo({
  663. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=1`
  664. })
  665. }
  666. }
  667. })
  668. }
  669. },
  670. getMyCustom() {
  671. let dateType = 0;
  672. let recDurationInterval = 0;
  673. if (this.activeTotal == 5) {
  674. dateType = null;
  675. } else if (this.activeTotal == 4) {
  676. dateType = null;
  677. } else {
  678. dateType = this.activeTotal;
  679. }
  680. if (this.activeTotal2 == 0) {
  681. recDurationInterval = null
  682. } else {
  683. recDurationInterval = this.activeTotal2
  684. }
  685. this.screen.jiedaiVal = []
  686. this.screen.wajueVal = []
  687. this.screen.wajueVals = []
  688. this.screen.xiaojiangVal = []
  689. this.screen.visitRecord = []
  690. this.screen.marketingBusiness = []
  691. // 到访次数
  692. this.visitList.forEach(i => {
  693. if (i.isShow) this.screen.visitRecord.push(i.value)
  694. })
  695. // 接待时长
  696. this.jiedaiList.forEach(i => {
  697. if (i.isShow) this.screen.jiedaiVal.push(i.value)
  698. })
  699. // 需求挖掘
  700. this.wajueList.forEach(i => {
  701. if (i.isShow) this.screen.wajueVal.push(i.value)
  702. })
  703. // 需求挖掘成功
  704. this.wajueLists.forEach(i => {
  705. if (i.isShow) this.screen.wajueVals.push(i.value)
  706. })
  707. // 销讲执行率
  708. this.xiaojiangList.forEach(i => {
  709. if (i.isShow) this.screen.xiaojiangVal.push(i.value)
  710. })
  711. // 销讲业务
  712. this.templateList.forEach(i => {
  713. if (i.isShow) this.screen.marketingBusiness.push(i.id)
  714. })
  715. var parames = {
  716. pageNum: this.nextPage,
  717. pageSize: 10,
  718. query: {
  719. projectId: this.buildingID,
  720. time: 1,
  721. staDate: this.staTime,
  722. endDate: this.endtime,
  723. markAdvisor: this.screen.markAdvisor,
  724. dateType: dateType,
  725. recDurationInterval: recDurationInterval,
  726. orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, //排序,
  727. validInvalid: this.screen.validInvalid == 2 ? null : this.screen.validInvalid, //录音标识
  728. recording: this.screen.validInvalid == 2 ? 0 : null,
  729. visitRecords: this.screen.visitRecord.length ? this.screen.visitRecord.join(",") : '', //到访次数
  730. wordFractions: this.screen.wajueVal.length ? this.screen.wajueVal.join(',') : '', //需求挖掘
  731. wordFinishFractions: this.screen.wajueVals.length ? this.screen.wajueVals.join(',') : '', //需求挖掘
  732. duractionNums: this.screen.jiedaiVal.length ? this.screen.jiedaiVal.join(',') : '', //接待时长
  733. fractions: this.screen.xiaojiangVal.length ? this.screen.xiaojiangVal.join(',') : '', //销讲执行
  734. marketingBusiness: this.screen.marketingBusiness.length ? this.screen.marketingBusiness.join(
  735. ',') : '', //销讲执行
  736. }
  737. };
  738. if (this.screen.agentId) {
  739. parames.query.agentId = this.screen.agentId
  740. }
  741. this.$u.post("/customer/findbypage", parames).then(data => {
  742. this.LOADING = false
  743. // console.log(data)
  744. let list = data.records || [];
  745. if (this.isRefresh) {
  746. this.recordList = list;
  747. } else {
  748. this.recordList = [].concat(this.recordList, list)
  749. }
  750. this.totalRecord = data.pages;
  751. this.totalRecords = data.total;
  752. if (this.staTime && this.endtime) {
  753. this.arriveFilter = `${this.staTime}-${this.endtime}`
  754. }
  755. }).catch(e => {
  756. this.LOADING = false
  757. })
  758. },
  759. //获取顾问列表
  760. getFreeList() {
  761. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  762. houseId: this.buildingID
  763. }).then(res => {
  764. this.freeList = res;
  765. this.freeList.forEach(item => {
  766. item.label = item.name;
  767. item.value = item.accountId
  768. })
  769. this.freeList.unshift({
  770. label: '全部',
  771. value: ''
  772. })
  773. })
  774. },
  775. //select接待顾问
  776. actionSelectCallback(e) {
  777. if (e[0].label == '全部') {
  778. this.counselorName = '接待顾问'
  779. this.screen.agentId = ''
  780. } else {
  781. this.screen.agentId = e[0].value;
  782. this.counselorName = e[0].label
  783. }
  784. this.recordList = [];
  785. this.nextPage = 1;
  786. this.isRefresh = false;
  787. this.getMyCustom();
  788. },
  789. reset() {
  790. this.screen.agentId = ''
  791. this.screen.validInvalid = ''
  792. this.screen.markAdvisor = ''
  793. this.screen.orderBy = '';
  794. this.screen.jiedaiVal = []
  795. this.screen.wajueVal = []
  796. this.screen.wajueVals = []
  797. this.screen.xiaojiangVal = []
  798. this.screen.visitRecord = []
  799. this.screen.marketingBusiness = []
  800. this.sortText = '排序';
  801. this.arriveFilter = '接待时间';
  802. this.staTime = '';
  803. this.endTime = '';
  804. this.nextPage = 1;
  805. this.activeTotal = 5;
  806. this.recordList = [];
  807. this.counselorName = '接待顾问';
  808. this.visitList.forEach(i => {
  809. i.isShow = false
  810. })
  811. this.jiedaiList.forEach(i => {
  812. i.isShow = false
  813. })
  814. this.wajueList.forEach(i => {
  815. i.isShow = false
  816. })
  817. this.xiaojiangList.forEach(i => {
  818. i.isShow = false
  819. })
  820. this.templateList.forEach(i => {
  821. i.isShow = false
  822. })
  823. this.isRefresh = false;
  824. this.getMyCustom();
  825. },
  826. chooseMores() {
  827. let change1 = this.templateList.some(item => item.isShow == true)
  828. let change2 = this.xiaojiangList.some(item => item.isShow == true)
  829. let change3 = this.wajueList.some(item => item.isShow == true)
  830. let change8 = this.wajueLists.some(item => item.isShow == true)
  831. let change4 = this.jiedaiList.some(item => item.isShow == true)
  832. let change5 = this.screen.validInvalid != null && this.screen.validInvalid != ''
  833. let change6 = this.screen.markAdvisor != null && this.screen.markAdvisor != ''
  834. let change7 = this.visitList.some(item => item.isShow == true)
  835. console.log(change1, change2, change3, change4, change5, change6, change7)
  836. if (change1 || change2 || change3 || change4 || change5 || change6 || change7 || change8) {
  837. return true
  838. } else {
  839. return false
  840. }
  841. },
  842. choice(item) {
  843. item.isShow = !item.isShow;
  844. },
  845. // 标记顾问
  846. screenvisitRecord(i) {
  847. if (this.screen.markAdvisor === i) {
  848. this.screen.markAdvisor = ''
  849. } else {
  850. this.screen.markAdvisor = i
  851. }
  852. },
  853. // 录音标识
  854. screenvisivalidInvalid(i) {
  855. if (this.screen.validInvalid == i) {
  856. this.screen.validInvalid = null
  857. } else {
  858. this.screen.validInvalid = i
  859. }
  860. },
  861. screensure() {
  862. this.chooseMore = this.chooseMores()
  863. this.screenShow = false;
  864. this.recordList = [];
  865. this.nextPage = 1;
  866. this.isRefresh = false;
  867. this.getMyCustom();
  868. },
  869. goSearch() {
  870. uni.navigateTo({
  871. url: '/pages/center/records/recordSearch'
  872. });
  873. },
  874. },
  875. filters: {
  876. // 加密手机号
  877. encryption(phone) {
  878. if (!phone) return
  879. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  880. }
  881. }
  882. }
  883. </script>
  884. <style lang="scss" scoped>
  885. .box {
  886. width: 100%;
  887. height: 100%;
  888. background: #F8F8F8;
  889. }
  890. .timeview {
  891. height: 90rpx;
  892. line-height: 90rpx;
  893. width: 100%;
  894. text-align: center;
  895. border-bottom: 1rpx solid #F8F8F8;
  896. }
  897. //时间切换的样式
  898. .boxtittab {
  899. position: sticky;
  900. top: var(--window-top);
  901. z-index: 999;
  902. width: 100;
  903. height: 92rpx;
  904. background: #FFFFFF;
  905. display: flex;
  906. align-items: center;
  907. .tabbox {
  908. flex-shrink: 0;
  909. flex-grow: 1;
  910. height: 100%;
  911. text-align: center;
  912. line-height: 92rpx;
  913. color: #666666;
  914. font-size: 28rpx;
  915. overflow: hidden;
  916. text-overflow: ellipsis;
  917. display: -webkit-box;
  918. /* 将对象作为弹性伸缩盒子模型显示 */
  919. -webkit-line-clamp: 1;
  920. /* 控制最多显示几行 */
  921. -webkit-box-orient: vertical;
  922. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  923. }
  924. .activeColor {
  925. font-weight: bold;
  926. color: #2671E2;
  927. }
  928. }
  929. .search-box {
  930. width: 100%;
  931. height: 102rpx;
  932. background: #FFFFFF;
  933. display: flex;
  934. align-items: center;
  935. justify-content: center;
  936. .search {
  937. width: 94%;
  938. height: 70rpx;
  939. display: flex;
  940. align-items: center;
  941. background: #F8F8F8;
  942. border-radius: 33rpx;
  943. .search-img {
  944. width: 26rpx;
  945. height: 30rpx;
  946. margin-left: 20rpx;
  947. .search-img1 {
  948. width: 100%;
  949. height: 100%;
  950. margin-top: 2rpx;
  951. }
  952. }
  953. .search-text {
  954. font-size: 28rpx;
  955. font-weight: 400;
  956. color: #999999;
  957. margin-left: 10rpx;
  958. }
  959. }
  960. .search-screen {
  961. width: 40rpx;
  962. height: 40rpx;
  963. margin-left: 30rpx;
  964. .search-screen1 {
  965. width: 100%;
  966. height: 100%;
  967. }
  968. }
  969. }
  970. .count {
  971. width: 100%;
  972. height: 82rpx;
  973. line-height: 82rpx;
  974. display: flex;
  975. align-items: center;
  976. justify-content: center;
  977. background-color: #f8f8f8;
  978. font-size: 30rpx;
  979. font-family: PingFangSC-Regular, PingFang SC;
  980. font-weight: 400;
  981. color: #333333;
  982. text {
  983. color: #E7483C;
  984. }
  985. }
  986. .content {
  987. .content-tips {
  988. background: #fff;
  989. box-sizing: border-box;
  990. overflow: hidden;
  991. margin-bottom: 20rpx;
  992. &:last-child {
  993. margin-bottom: 0
  994. }
  995. .content-first {
  996. padding: 0 30rpx;
  997. height: 92rpx;
  998. border-bottom: 1rpx solid #D8D8D8;
  999. display: flex;
  1000. align-items: center;
  1001. justify-content: space-between;
  1002. .left {
  1003. flex-shrink: 0;
  1004. min-width: 40%;
  1005. display: flex;
  1006. align-items: center;
  1007. overflow: hidden;
  1008. .adviser {
  1009. margin-right: 10rpx;
  1010. padding: 5rpx 11rpx;
  1011. border-radius: 50%;
  1012. border: 1rpx solid #2671E2;
  1013. font-size: 30rpx;
  1014. color: #2671E2;
  1015. }
  1016. .img {
  1017. width: 52rpx;
  1018. height: 52rpx;
  1019. background: #FFFFFF;
  1020. border: 1px solid #C9C9C9;
  1021. border-radius: 50%;
  1022. text-align: center;
  1023. }
  1024. .name {
  1025. color: #333333;
  1026. font-size: 32rpx;
  1027. font-weight: bold;
  1028. }
  1029. .status {
  1030. margin-left: 19rpx;
  1031. width: 110rpx;
  1032. background: #FFF9F5;
  1033. border-radius: 4rpx;
  1034. font-size: 26rpx;
  1035. font-weight: 400;
  1036. color: #EC8D49;
  1037. text-align: center;
  1038. }
  1039. }
  1040. .right {
  1041. flex: 1;
  1042. display: flex;
  1043. font-size: 30rpx;
  1044. justify-content: flex-end;
  1045. view,
  1046. text {
  1047. flex-shrink: 0;
  1048. }
  1049. .point {
  1050. flex-shrink: 0;
  1051. width: 12rpx;
  1052. height: 12rpx;
  1053. background: #2B6EFF;
  1054. border-radius: 50%;
  1055. margin-right: 9rpx;
  1056. margin-top: 16rpx;
  1057. }
  1058. }
  1059. }
  1060. .content-sec {
  1061. padding: 28rpx 30rpx 32rpx;
  1062. display: flex;
  1063. justify-content: space-between;
  1064. .left {
  1065. display: flex;
  1066. align-items: center;
  1067. .adviser {
  1068. margin-right: 10rpx;
  1069. padding: 5rpx 11rpx;
  1070. border-radius: 50%;
  1071. border: 1rpx solid #2671E2;
  1072. background: #2671E2;
  1073. font-size: 30rpx;
  1074. color: #fff;
  1075. }
  1076. .cus {
  1077. font-size: 30rpx;
  1078. font-weight: 400;
  1079. color: #333;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. display: -webkit-box;
  1083. line-height: 23px;
  1084. max-height: 46px;
  1085. -webkit-line-clamp: 1;
  1086. -webkit-box-orient: vertical;
  1087. }
  1088. .arriveNum {
  1089. font-size: 30rpx;
  1090. font-weight: 400;
  1091. margin-left: 10rpx;
  1092. }
  1093. }
  1094. .right {
  1095. font-size: 28rpx;
  1096. font-weight: 400;
  1097. display: flex;
  1098. align-items: center;
  1099. }
  1100. }
  1101. .content-newadd {
  1102. padding: 0 30rpx 34rpx;
  1103. display: flex;
  1104. align-items: center;
  1105. justify-content: space-between;
  1106. font-size: 30rpx;
  1107. color: #333;
  1108. }
  1109. .content-last {
  1110. padding: 0 30rpx 34rpx;
  1111. font-size: 30rpx;
  1112. font-weight: 400;
  1113. color: #666666;
  1114. display: flex;
  1115. align-items: center;
  1116. justify-content: space-between;
  1117. .c-items {
  1118. flex-shrink: 0;
  1119. display: flex;
  1120. align-items: center;
  1121. font-size: 28rpx;
  1122. .c-items-img {
  1123. margin-right: 10rpx;
  1124. width: 32rpx;
  1125. height: 32rpx;
  1126. }
  1127. }
  1128. }
  1129. }
  1130. }
  1131. // 这是弹出层
  1132. .screen {
  1133. width: 750rpx;
  1134. .screen-counselor {
  1135. display: flex;
  1136. height: 106rpx;
  1137. padding: 0 30rpx;
  1138. box-sizing: border-box;
  1139. border-bottom: 1px solid #EEEEEE;
  1140. .screen-text {
  1141. margin: 40rpx 0 36rpx 0;
  1142. font-size: 30rpx;
  1143. font-weight: 400;
  1144. color: #333333;
  1145. line-height: 30rpx;
  1146. }
  1147. .screen-sel {
  1148. display: flex;
  1149. justify-content: space-between;
  1150. width: 500rpx;
  1151. margin-left: 60rpx;
  1152. .screen-sel-img {
  1153. margin: 40rpx 0 36rpx 0;
  1154. width: 14rpx;
  1155. height: 30rpx;
  1156. }
  1157. .screen-inp {
  1158. margin-top: 20rpx;
  1159. }
  1160. }
  1161. }
  1162. .screen-record {
  1163. overflow: hidden;
  1164. padding: 0 30rpx;
  1165. box-sizing: border-box;
  1166. border-bottom: 1px solid #e0e0e0;
  1167. .screen-record-text {
  1168. padding: 30rpx 0;
  1169. font-size: 30rpx;
  1170. font-weight: 600;
  1171. color: #333333;
  1172. line-height: 30rpx;
  1173. display: flex;
  1174. align-items: center;
  1175. justify-content: space-between;
  1176. .arrow {
  1177. width: 30rpx;
  1178. height: 14rpx;
  1179. }
  1180. }
  1181. .screen-record-tab {
  1182. margin-top: 30rpx;
  1183. padding-bottom: 10rpx;
  1184. display: flex;
  1185. flex-wrap: wrap;
  1186. .screen-record-item {
  1187. min-width: 150rpx;
  1188. padding: 0 14rpx;
  1189. height: 60rpx;
  1190. border-radius: 8rpx;
  1191. text-align: center;
  1192. line-height: 60rpx;
  1193. margin: 0 22rpx 22rpx 0;
  1194. &:nth-child(4n) {
  1195. margin-right: 0;
  1196. }
  1197. }
  1198. .screen-record-chose {
  1199. background: #F1F6FD;
  1200. color: #2671E2;
  1201. }
  1202. .screen-record-nochose {
  1203. background: #F7F8FA;
  1204. color: #333;
  1205. }
  1206. }
  1207. }
  1208. .screen-foot {
  1209. width: 100%;
  1210. height: 78rpx;
  1211. display: flex;
  1212. margin: 30rpx 30rpx 0;
  1213. .screen-foot-reset {
  1214. width: 176rpx;
  1215. height: 78rpx;
  1216. line-height: 78rpx;
  1217. background: #FFFFFF;
  1218. border-radius: 8rpx;
  1219. border: 1px solid #2671E2;
  1220. margin-right: 30rpx;
  1221. font-size: 30rpx;
  1222. font-family: PingFangSC-Regular, PingFang SC;
  1223. font-weight: 400;
  1224. color: #2671E2;
  1225. text-align: center;
  1226. }
  1227. .screen-foot-sure {
  1228. width: 484rpx;
  1229. height: 78rpx;
  1230. line-height: 78rpx;
  1231. background: #2671E2;
  1232. border: 1px solid #2671E2;
  1233. border-radius: 8rpx;
  1234. font-size: 30rpx;
  1235. font-family: PingFangSC-Regular, PingFang SC;
  1236. font-weight: 400;
  1237. color: #FFFFFF;
  1238. text-align: center;
  1239. }
  1240. }
  1241. }
  1242. </style>