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.

index.vue 26 KiB

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