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 25 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047
  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" @click="taptimeisshow">
  18. {{ startFilterTime }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  19. </view>
  20. <view class="tabbox" @click="taptimetuisshow">
  21. {{ receptionDuration }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  22. </view>
  23. <view class="tabbox" @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-if="recordList.length!=0" 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. </view>
  215. </template>
  216. <script>
  217. export default {
  218. data() {
  219. return {
  220. orderBylist: [
  221. // {
  222. // label: '全部',
  223. // value: '0'
  224. // },
  225. {
  226. label: '创建时间倒序',
  227. value: '1'
  228. },
  229. {
  230. label: '创建时间正序',
  231. value: '2'
  232. },
  233. {
  234. label: '接待时间倒序',
  235. value: '3'
  236. },
  237. {
  238. label: '接待时间正序',
  239. value: '4'
  240. },
  241. {
  242. label: '执行率正序',
  243. value: '5'
  244. },
  245. {
  246. label: '执行率倒序',
  247. value: '6'
  248. },
  249. {
  250. label: '接访次数正序',
  251. value: '7'
  252. },
  253. {
  254. label: '接访次数倒序',
  255. value: '8'
  256. },
  257. ],
  258. activeTotal: 5,
  259. value: '',
  260. screenShow: false,
  261. selectshow: false,
  262. totalTimeShow: false,
  263. totalRecords: '',
  264. screen: {
  265. agentId: '', //顾问id
  266. record: '0',
  267. markAdvisor: null,
  268. visitRecord: [],
  269. validInvalid: null
  270. },
  271. freeList: [], //顾问
  272. recordList: [],
  273. buildingID: '',
  274. nextPage: 1,
  275. totalRecord: "",
  276. staTime: '',
  277. endtime: '',
  278. isnorefresh: '',
  279. activeTotal2: 0,
  280. timeshow: false,
  281. timetushow: false,
  282. soltishow: false,
  283. orderBy: '',
  284. methodsisshow: false,
  285. userInfo: {},
  286. startFilterTime: '接待时间', // s筛选状态展示
  287. receptionDuration: '接待时长', // 筛选状态展示
  288. sortText: '排序', //
  289. visitList: [{
  290. label: '首次到访',
  291. value: 1,
  292. isShow: false,
  293. }, {
  294. label: '2次到访',
  295. value: 2,
  296. isShow: false,
  297. }, {
  298. label: '3次到访',
  299. value: 3,
  300. isShow: false,
  301. }, {
  302. label: '3次以上',
  303. value: 4,
  304. isShow: false,
  305. }, ],
  306. isRefresh:false
  307. }
  308. },
  309. onLoad(options) {
  310. this.isnorefresh = options.refresh;
  311. if (options.activeTotal) {
  312. this.activeTotal = options.activeTotal
  313. }
  314. if (options.markAdvisor) {
  315. this.screen.markAdvisor = options.markAdvisor
  316. }
  317. if (options.validInvalid) {
  318. this.screen.validInvalid = options.validInvalid
  319. }
  320. if (options.staTime) {
  321. this.staTime = options.staTime;
  322. this.endtime = options.endtime;
  323. }
  324. },
  325. onShow() {
  326. try {
  327. this.$store.commit('stopAduio')
  328. } catch(e) {
  329. console.log(e)
  330. }
  331. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  332. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  333. this.methodsisshow = false;
  334. } else {
  335. this.methodsisshow = true;
  336. }
  337. if (this.isnorefresh == 'refresh') {
  338. this.buildingID = uni.getStorageSync('buildingID').id;
  339. this.recordList = [];
  340. this.nextPage = 1;
  341. this.isRefresh = false;
  342. this.getMyCustom()
  343. this.getFreeList();
  344. this.isnorefresh = '';
  345. }
  346. },
  347. onPullDownRefresh(){
  348. this.isRefresh = true;
  349. this.nextPage = 1;
  350. this.getMyCustom()
  351. setTimeout(function () {
  352. uni.stopPullDownRefresh();
  353. }, 1000);
  354. },
  355. onReachBottom() {
  356. if (this.totalRecord == this.nextPage) {
  357. uni.showToast({
  358. icon: 'none',
  359. title: '到底了',
  360. duration: 2000
  361. });
  362. return
  363. } else {
  364. this.nextPage += 1;
  365. this.isRefresh = false;
  366. this.getMyCustom();
  367. }
  368. },
  369. methods: {
  370. tapsoltishow() {
  371. this.soltishow = true;
  372. },
  373. taptimetuisshow() {
  374. this.timetushow = true;
  375. },
  376. taptimeisshow() {
  377. this.timeshow = true;
  378. },
  379. //选择标签
  380. selectCallback2(e) {
  381. this.orderBy = e[0].value;
  382. this.sortText = e[0].label
  383. this.nextPage = 1;
  384. this.recordList = [];
  385. this.isRefresh = false;
  386. this.getMyCustom();
  387. },
  388. //选择录音时长
  389. timetap(index, text) {
  390. if (text) this.receptionDuration = text
  391. this.timetushow = false;
  392. this.activeTotal2 = index;
  393. this.nextPage = 1;
  394. this.recordList = [];
  395. this.isRefresh = false;
  396. this.getMyCustom();
  397. },
  398. //时间选择
  399. tabtimetap(index, text) {
  400. this.timeshow = false;
  401. if(text) {
  402. this.startFilterTime = text
  403. }
  404. if (index == 4) {
  405. this.totalTimeShow = true;
  406. } else {
  407. this.activeTotal = index;
  408. this.staTime = '';
  409. this.endtime = '';
  410. this.nextPage = 1;
  411. this.recordList = [];
  412. this.isRefresh = false;
  413. this.getMyCustom();
  414. }
  415. },
  416. //自定义时间
  417. totalTimeChange(e) {
  418. this.staTime = e.startDate;
  419. this.endtime = e.endDate;
  420. this.activeTotal = 4;
  421. this.nextPage = 1;
  422. this.recordList = [];
  423. this.isRefresh = false;
  424. this.getMyCustom();
  425. },
  426. tapThevisiting(item) {
  427. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  428. if (newmenulist.jdjl_ck != true) {
  429. return
  430. }
  431. uni.showLoading({
  432. title: '加载中',
  433. mask: true
  434. });
  435. if (item.status == 0) {
  436. setTimeout(function() {
  437. uni.hideLoading();
  438. }, 2000);
  439. uni.showToast({
  440. icon: "none",
  441. title: "排队中"
  442. })
  443. return
  444. } else {
  445. const parames = {
  446. pageNum: 1,
  447. pageSize: 100,
  448. query: {
  449. customerId: item.id,
  450. }
  451. }
  452. var item = {
  453. bg: 0,
  454. customerId: item.id,
  455. }
  456. uni.setStorageSync("searchobj", item); //写入缓存
  457. uni.setStorageSync("entrance", 1); //写入缓存
  458. this.$u.post("/corpus/findByPage", parames).then(res => {
  459. if (res == null) {
  460. setTimeout(function() {
  461. uni.hideLoading();
  462. }, 2000);
  463. uni.showToast({
  464. icon: "none",
  465. title: "暂无音频"
  466. })
  467. return
  468. } else {
  469. setTimeout(function() {
  470. uni.hideLoading();
  471. }, 2000);
  472. let newobj = res[0];
  473. if (res[0].merge == 0) {
  474. uni.navigateTo({
  475. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
  476. })
  477. } else {
  478. uni.navigateTo({
  479. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  480. })
  481. }
  482. }
  483. })
  484. }
  485. },
  486. getMyCustom() {
  487. let dateType = 0;
  488. let recDurationInterval = 0;
  489. let orderBy = 0;
  490. if (this.activeTotal == 5) {
  491. dateType = null;
  492. } else if (this.activeTotal == 4) {
  493. dateType = null;
  494. } else {
  495. dateType = this.activeTotal;
  496. }
  497. if (this.activeTotal2 == 0) {
  498. recDurationInterval = null
  499. } else {
  500. recDurationInterval = this.activeTotal2
  501. }
  502. if (this.orderBy == 0) {
  503. orderBy = null;
  504. } else {
  505. orderBy = this.orderBy;
  506. }
  507. var parames = {
  508. pageNum: this.nextPage,
  509. pageSize: 10,
  510. query: {
  511. projectId: this.buildingID,
  512. time: 1,
  513. staDate: this.staTime,
  514. endDate: this.endtime,
  515. visitRecords: this.screen.visitRecord.join(","),
  516. markAdvisor: this.screen.markAdvisor,
  517. dateType: dateType,
  518. recDurationInterval: recDurationInterval,
  519. orderBy: orderBy,
  520. validInvalid:this.screen.validInvalid==2?null:this.screen.validInvalid,
  521. recording:this.screen.validInvalid==2?0:null
  522. }
  523. };
  524. if (this.screen.agentId) {
  525. parames.query.agentId = this.screen.agentId
  526. }
  527. this.$u.post("/customer/findbypage", parames).then(data => {
  528. var list = data.results || [];
  529. // this.recordList = [...this.recordList, ...list];
  530. if(this.isRefresh){
  531. this.recordList = list;
  532. }else{
  533. this.recordList = [...this.recordList, ...list];
  534. }
  535. this.totalRecord = data.totalPage;
  536. this.totalRecords = data.totalRecord;
  537. if(this.staTime && this.endtime) {
  538. this.startFilterTime = `${this.staTime}-${this.endtime}`
  539. }
  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: 80rpx;
  648. line-height: 80rpx;
  649. width: 100%;
  650. text-align: center;
  651. border-bottom: 1px 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. border: 1px solid #E0E0E0;
  662. display: flex;
  663. align-items: center;
  664. .tabbox {
  665. flex-shrink: 0;
  666. flex-grow: 1;
  667. height: 100%;
  668. text-align: center;
  669. line-height: 92rpx;
  670. color: #666666;
  671. font-size: 28rpx;
  672. overflow: hidden;
  673. text-overflow: ellipsis;
  674. display: -webkit-box;
  675. /* 将对象作为弹性伸缩盒子模型显示 */
  676. -webkit-line-clamp: 1;
  677. /* 控制最多显示几行 */
  678. -webkit-box-orient: vertical;
  679. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  680. }
  681. }
  682. .search-box {
  683. width: 100%;
  684. height: 102rpx;
  685. background: #FFFFFF;
  686. display: flex;
  687. align-items: center;
  688. justify-content: center;
  689. .search {
  690. width: 94%;
  691. height: 70rpx;
  692. display: flex;
  693. align-items: center;
  694. background: #F8F8F8;
  695. border-radius: 33rpx;
  696. .search-img {
  697. width: 26rpx;
  698. height: 30rpx;
  699. margin-left: 20rpx;
  700. .search-img1 {
  701. width: 100%;
  702. height: 100%;
  703. margin-top: 2rpx;
  704. }
  705. }
  706. .search-text {
  707. font-size: 28rpx;
  708. font-weight: 400;
  709. color: #999999;
  710. margin-left: 10rpx;
  711. }
  712. }
  713. .search-screen {
  714. width: 40rpx;
  715. height: 40rpx;
  716. margin-left: 30rpx;
  717. .search-screen1 {
  718. width: 100%;
  719. height: 100%;
  720. }
  721. }
  722. }
  723. .count {
  724. width: 100%;
  725. height: 90rpx;
  726. display: flex;
  727. align-items: center;
  728. justify-content: center;
  729. background-color: #FBE4E4;
  730. text {
  731. color: #F71616;
  732. }
  733. }
  734. .content {
  735. .content-tips {
  736. background: #fff;
  737. box-sizing: border-box;
  738. overflow: hidden;
  739. margin-top: 20rpx;
  740. .content-first {
  741. margin-top: 19rpx;
  742. padding: 0 30rpx;
  743. height: 92rpx;
  744. border-bottom: 1rpx solid rgba($color: #2671E2, $alpha: .1);
  745. display: flex;
  746. align-items: center;
  747. justify-content: space-between;
  748. .left {
  749. flex-shrink: 0;
  750. min-width: 50%;
  751. display: flex;
  752. align-items: center;
  753. overflow: hidden;
  754. .adviser {
  755. margin-right: 10rpx;
  756. padding: 5rpx 11rpx;
  757. border-radius: 50%;
  758. border: 1rpx solid #2671E2;
  759. font-size: 30rpx;
  760. color: #2671E2;
  761. }
  762. .img {
  763. width: 52rpx;
  764. height: 52rpx;
  765. background: #FFFFFF;
  766. border: 1px solid #C9C9C9;
  767. border-radius: 50%;
  768. text-align: center;
  769. }
  770. .name {
  771. color: #333333;
  772. font-size: 32rpx;
  773. font-weight: bold;
  774. }
  775. .status {
  776. margin-left: 19rpx;
  777. width: 110rpx;
  778. background: #FFF9F5;
  779. border-radius: 4rpx;
  780. font-size: 26rpx;
  781. font-weight: 400;
  782. color: #EC8D49;
  783. text-align: center;
  784. }
  785. }
  786. .right {
  787. max-width: 50%;
  788. display: flex;
  789. font-size: 30rpx;
  790. view,
  791. text {
  792. flex-shrink: 0;
  793. }
  794. .point {
  795. flex-shrink: 0;
  796. width: 12rpx;
  797. height: 12rpx;
  798. background: #2B6EFF;
  799. border-radius: 50%;
  800. margin-right: 9rpx;
  801. margin-top: 16rpx;
  802. }
  803. }
  804. }
  805. .content-sec {
  806. padding: 28rpx 30rpx 32rpx;
  807. display: flex;
  808. justify-content: space-between;
  809. .left {
  810. display: flex;
  811. align-items: center;
  812. .adviser {
  813. margin-right: 10rpx;
  814. padding: 5rpx 11rpx;
  815. border-radius: 50%;
  816. border: 1rpx solid #2671E2;
  817. background: #2671E2;
  818. font-size: 30rpx;
  819. color: #fff;
  820. }
  821. .cus {
  822. font-size: 30rpx;
  823. font-weight: 400;
  824. color: #666666;
  825. // line-height: 30rpx;
  826. overflow: hidden;
  827. text-overflow: ellipsis;
  828. display: -webkit-box;
  829. line-height: 23px;
  830. max-height: 46px;
  831. -webkit-line-clamp: 1;
  832. -webkit-box-orient: vertical;
  833. }
  834. .arriveNum {
  835. font-size: 30rpx;
  836. font-weight: 400;
  837. margin-left: 10rpx;
  838. }
  839. }
  840. .right {
  841. font-size: 28rpx;
  842. font-weight: 400;
  843. color: #2671E2;
  844. display: flex;
  845. align-items: center;
  846. .img {
  847. margin-right: 10rpx;
  848. width: 32rpx;
  849. height: 32rpx;
  850. }
  851. }
  852. }
  853. .content-last {
  854. padding: 0 30rpx 34rpx;
  855. font-size: 30rpx;
  856. font-weight: 400;
  857. color: #666666;
  858. display: flex;
  859. align-items: center;
  860. justify-content: space-between;
  861. .c-items {
  862. flex-shrink: 0;
  863. display: flex;
  864. align-items: center;
  865. font-size: 28rpx;
  866. .c-items-img {
  867. margin-right: 10rpx;
  868. width: 32rpx;
  869. height: 32rpx;
  870. }
  871. }
  872. }
  873. }
  874. }
  875. // 这是弹出层
  876. .screen {
  877. // box-sizing: border-box;
  878. // padding: 0 30rpx;
  879. position: absolute;
  880. .screen-counselor {
  881. display: flex;
  882. align-items: center;
  883. height: 106rpx;
  884. // padding: 40rpx 30rpx 36rpx 30rpx;
  885. padding: 0 30rpx;
  886. box-sizing: border-box;
  887. border-bottom: 1px solid #EEEEEE;
  888. .screen-text {
  889. font-size: 30rpx;
  890. font-weight: 400;
  891. color: #333333;
  892. line-height: 30rpx;
  893. }
  894. .screen-sel {
  895. display: flex;
  896. justify-content: flex-end;
  897. align-items: center;
  898. width: 500rpx;
  899. margin-left: 60rpx;
  900. .screen-sel-img {
  901. flex-shrink: 0;
  902. width: 14rpx;
  903. height: 30rpx;
  904. }
  905. .screen-inp {
  906. padding: 0 20rpx;
  907. text-align: right;
  908. }
  909. }
  910. }
  911. .screen-record {
  912. height: 192rpx;
  913. // width: 100%;
  914. overflow: hidden;
  915. padding: 0 30rpx;
  916. box-sizing: border-box;
  917. border-bottom: 1px solid #EEEEEE;
  918. .screen-record-text {
  919. margin-top: 36rpx;
  920. font-size: 30rpx;
  921. font-weight: 400;
  922. color: #333333;
  923. line-height: 30rpx;
  924. }
  925. .screen-record-tab {
  926. margin-top: 30rpx;
  927. display: flex;
  928. // justify-content: space-around;
  929. .screen-record-chose {
  930. width: 156rpx;
  931. height: 60rpx;
  932. background: #2671E2;
  933. border-radius: 4rpx;
  934. border: 1px solid #2671E2;
  935. text-align: center;
  936. line-height: 60rpx;
  937. margin-right: 22rpx;
  938. color: #FFFFFF;
  939. }
  940. .screen-record-nochose {
  941. width: 156rpx;
  942. height: 60rpx;
  943. background: #FFFFFF;
  944. border-radius: 4rpx;
  945. border: 1px solid #C9C9C9;
  946. text-align: center;
  947. line-height: 60rpx;
  948. margin-right: 22rpx;
  949. }
  950. }
  951. }
  952. .screen-foot {
  953. width: 100%;
  954. height: 100rpx;
  955. display: flex;
  956. .screen-foot-reset {
  957. width: 50%;
  958. text-align: center;
  959. height: 100rpx;
  960. line-height: 100rpx;
  961. font-size: 30rpx;
  962. font-weight: 400;
  963. color: #666666;
  964. }
  965. .screen-foot-sure {
  966. width: 50%;
  967. text-align: center;
  968. line-height: 100rpx;
  969. height: 100rpx;
  970. font-size: 30rpx;
  971. font-weight: 400;
  972. color: #FFFFFF;
  973. background: #2671E2;
  974. }
  975. }
  976. }
  977. </style>