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
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" :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. </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. this.activeTotal = options.activeTotal
  312. this.screen.markAdvisor = options.markAdvisor
  313. this.screen.validInvalid = options.validInvalid
  314. if (options.staTime) {
  315. this.staTime = options.staTime;
  316. this.endtime = options.endtime;
  317. }
  318. },
  319. onShow() {
  320. try {
  321. this.$store.commit('stopAduio')
  322. } catch(e) {
  323. console.log(e)
  324. }
  325. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  326. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  327. this.methodsisshow = false;
  328. } else {
  329. this.methodsisshow = true;
  330. }
  331. if (this.isnorefresh == 'refresh') {
  332. this.buildingID = uni.getStorageSync('buildingID').id;
  333. this.recordList = [];
  334. this.nextPage = 1;
  335. this.isRefresh = false;
  336. this.getMyCustom()
  337. this.getFreeList();
  338. this.isnorefresh = '';
  339. }
  340. },
  341. onPullDownRefresh(){
  342. this.isRefresh = true;
  343. this.nextPage = 1;
  344. this.getMyCustom()
  345. setTimeout(function () {
  346. uni.stopPullDownRefresh();
  347. }, 1000);
  348. },
  349. onReachBottom() {
  350. if (this.totalRecord == this.nextPage) {
  351. uni.showToast({
  352. icon: 'none',
  353. title: '到底了',
  354. duration: 2000
  355. });
  356. return
  357. } else {
  358. this.nextPage += 1;
  359. this.isRefresh = false;
  360. this.getMyCustom();
  361. }
  362. },
  363. methods: {
  364. tapsoltishow() {
  365. this.soltishow = true;
  366. },
  367. taptimetuisshow() {
  368. this.timetushow = true;
  369. },
  370. taptimeisshow() {
  371. this.timeshow = true;
  372. },
  373. //选择标签
  374. selectCallback2(e) {
  375. this.orderBy = e[0].value;
  376. this.sortText = e[0].label
  377. this.nextPage = 1;
  378. this.recordList = [];
  379. this.isRefresh = false;
  380. this.getMyCustom();
  381. },
  382. //选择录音时长
  383. timetap(index, text) {
  384. if (text) this.receptionDuration = text
  385. this.timetushow = false;
  386. this.activeTotal2 = index;
  387. this.nextPage = 1;
  388. this.recordList = [];
  389. this.isRefresh = false;
  390. this.getMyCustom();
  391. },
  392. //时间选择
  393. tabtimetap(index, text) {
  394. this.timeshow = false;
  395. if(text) {
  396. this.startFilterTime = text
  397. }
  398. if (index == 4) {
  399. this.totalTimeShow = true;
  400. } else {
  401. this.activeTotal = index;
  402. this.staTime = '';
  403. this.endtime = '';
  404. this.nextPage = 1;
  405. this.recordList = [];
  406. this.isRefresh = false;
  407. this.getMyCustom();
  408. }
  409. },
  410. //自定义时间
  411. totalTimeChange(e) {
  412. this.staTime = e.startDate;
  413. this.endtime = e.endDate;
  414. this.activeTotal = 4;
  415. this.nextPage = 1;
  416. this.recordList = [];
  417. this.isRefresh = false;
  418. this.getMyCustom();
  419. },
  420. tapThevisiting(item) {
  421. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  422. if (newmenulist.jdjl_ck != true) {
  423. return
  424. }
  425. uni.showLoading({
  426. title: '加载中',
  427. mask: true
  428. });
  429. if (item.status == 0) {
  430. setTimeout(function() {
  431. uni.hideLoading();
  432. }, 2000);
  433. uni.showToast({
  434. icon: "none",
  435. title: "排队中"
  436. })
  437. return
  438. } else {
  439. const parames = {
  440. pageNum: 1,
  441. pageSize: 100,
  442. query: {
  443. customerId: item.id,
  444. }
  445. }
  446. var item = {
  447. bg: 0,
  448. customerId: item.id,
  449. }
  450. uni.setStorageSync("searchobj", item); //写入缓存
  451. uni.setStorageSync("entrance", 1); //写入缓存
  452. this.$u.post("/corpus/findByPage", parames).then(res => {
  453. if (res == null) {
  454. setTimeout(function() {
  455. uni.hideLoading();
  456. }, 2000);
  457. uni.showToast({
  458. icon: "none",
  459. title: "暂无音频"
  460. })
  461. return
  462. } else {
  463. setTimeout(function() {
  464. uni.hideLoading();
  465. }, 2000);
  466. let newobj = res[0];
  467. if (res[0].merge == 0) {
  468. uni.navigateTo({
  469. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
  470. })
  471. } else {
  472. uni.navigateTo({
  473. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  474. })
  475. }
  476. }
  477. })
  478. }
  479. },
  480. getMyCustom() {
  481. let dateType = 0;
  482. let recDurationInterval = 0;
  483. let orderBy = 0;
  484. if (this.activeTotal == 5) {
  485. dateType = null;
  486. } else if (this.activeTotal == 4) {
  487. dateType = null;
  488. } else {
  489. dateType = this.activeTotal;
  490. }
  491. if (this.activeTotal2 == 0) {
  492. recDurationInterval = null
  493. } else {
  494. recDurationInterval = this.activeTotal2
  495. }
  496. if (this.orderBy == 0) {
  497. orderBy = null;
  498. } else {
  499. orderBy = this.orderBy;
  500. }
  501. var parames = {
  502. pageNum: this.nextPage,
  503. pageSize: 10,
  504. query: {
  505. projectId: this.buildingID,
  506. time: 1,
  507. staDate: this.staTime,
  508. endDate: this.endtime,
  509. visitRecords: this.screen.visitRecord.join(","),
  510. markAdvisor: this.screen.markAdvisor,
  511. dateType: dateType,
  512. recDurationInterval: recDurationInterval,
  513. orderBy: orderBy,
  514. validInvalid:this.screen.validInvalid==2?null:this.screen.validInvalid,
  515. recording:this.screen.validInvalid==2?0:null
  516. }
  517. };
  518. if (this.screen.agentId) {
  519. parames.query.agentId = this.screen.agentId
  520. }
  521. this.$u.post("/customer/findbypage", parames).then(data => {
  522. var list = data.results || [];
  523. // this.recordList = [...this.recordList, ...list];
  524. if(this.isRefresh){
  525. this.recordList = list;
  526. }else{
  527. this.recordList = [...this.recordList, ...list];
  528. }
  529. this.totalRecord = data.totalPage;
  530. this.totalRecords = data.totalRecord;
  531. if(this.staTime && this.endtime) {
  532. this.startFilterTime = `${this.staTime}-${this.endtime}`
  533. }
  534. })
  535. },
  536. //获取顾问列表
  537. getFreeList() {
  538. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => {
  539. this.freeList = res;
  540. this.freeList.forEach(item => {
  541. item.label = item.name;
  542. item.value = item.accountId
  543. })
  544. })
  545. },
  546. // 筛选
  547. screenshow() {
  548. this.screenShow = true
  549. },
  550. actionSelectCallback(e) {
  551. this.screen.agentId = e[0].value;
  552. this.screen.counselorName = e[0].label
  553. this.recordList = [];
  554. this.nextPage = 1;
  555. this.isRefresh = false;
  556. this.getMyCustom();
  557. },
  558. reset() {
  559. this.screen = {
  560. counselorName: '',
  561. record: '0',
  562. markAdvisor: null,
  563. visitRecord: [],
  564. validInvalid: null,
  565. recording:null,
  566. visitRecords: "",
  567. }
  568. this.visitList.map(i=>{
  569. i.isShow = false
  570. })
  571. // this.screenShow = false;
  572. this.nextPage = 1;
  573. this.recordList = [];
  574. this.isRefresh = false;
  575. this.getMyCustom();
  576. },
  577. choice(index,e) {
  578. if (this.visitList[index].isShow == true) {
  579. this.visitList[index].isShow = false;
  580. for (var i = 0; i < this.screen.visitRecord.length; i++) {
  581. if (this.screen.visitRecord[i] === e) {
  582. this.screen.visitRecord.splice(i, 1);
  583. }
  584. }
  585. } else {
  586. this.visitList[index].isShow = true;
  587. this.screen.visitRecord.push(e)
  588. }
  589. },
  590. recordclick(i) {
  591. if (this.screen.visitRecord == i) {
  592. this.screen.visitRecord = null
  593. } else {
  594. this.screen.visitRecord = i
  595. }
  596. },
  597. screenvisitRecord(i) {
  598. if (this.screen.markAdvisor == i) {
  599. this.screen.markAdvisor = null
  600. } else {
  601. this.screen.markAdvisor = i
  602. }
  603. },
  604. screenvisivalidInvalid(i) {
  605. console.log(this.screen.validInvalid, i)
  606. if (this.screen.validInvalid == i) {
  607. this.screen.validInvalid = null
  608. } else {
  609. this.screen.validInvalid = i
  610. }
  611. },
  612. screensure() {
  613. this.screenShow = false;
  614. this.recordList = [];
  615. this.nextPage = 1;
  616. this.isRefresh = false;
  617. this.getMyCustom();
  618. },
  619. goSearch() {
  620. uni.navigateTo({
  621. url: '/pages/center/records/recordSearch'
  622. });
  623. },
  624. },
  625. filters: {
  626. // 加密手机号
  627. encryption(phone) {
  628. if (!phone) return
  629. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  630. }
  631. }
  632. }
  633. </script>
  634. <style lang="scss" scoped>
  635. .box {
  636. width: 100%;
  637. height: 100%;
  638. background: #F8F8F8;
  639. }
  640. .timeview {
  641. height: 90rpx;
  642. line-height: 90rpx;
  643. width: 100%;
  644. text-align: center;
  645. border-bottom: 1rpx solid #F8F8F8;
  646. }
  647. //时间切换的样式
  648. .boxtittab {
  649. position: sticky;
  650. top: var(--window-top);
  651. z-index: 999;
  652. width: 100;
  653. height: 92rpx;
  654. background: #FFFFFF;
  655. display: flex;
  656. align-items: center;
  657. .tabbox {
  658. flex-shrink: 0;
  659. flex-grow: 1;
  660. height: 100%;
  661. text-align: center;
  662. line-height: 92rpx;
  663. color: #666666;
  664. font-size: 28rpx;
  665. overflow: hidden;
  666. text-overflow: ellipsis;
  667. display: -webkit-box;
  668. /* 将对象作为弹性伸缩盒子模型显示 */
  669. -webkit-line-clamp: 1;
  670. /* 控制最多显示几行 */
  671. -webkit-box-orient: vertical;
  672. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  673. }
  674. .activeColor{
  675. color: #2671E2;
  676. }
  677. }
  678. .search-box {
  679. width: 100%;
  680. height: 102rpx;
  681. background: #FFFFFF;
  682. display: flex;
  683. align-items: center;
  684. justify-content: center;
  685. .search {
  686. width: 94%;
  687. height: 70rpx;
  688. display: flex;
  689. align-items: center;
  690. background: #F8F8F8;
  691. border-radius: 33rpx;
  692. .search-img {
  693. width: 26rpx;
  694. height: 30rpx;
  695. margin-left: 20rpx;
  696. .search-img1 {
  697. width: 100%;
  698. height: 100%;
  699. margin-top: 2rpx;
  700. }
  701. }
  702. .search-text {
  703. font-size: 28rpx;
  704. font-weight: 400;
  705. color: #999999;
  706. margin-left: 10rpx;
  707. }
  708. }
  709. .search-screen {
  710. width: 40rpx;
  711. height: 40rpx;
  712. margin-left: 30rpx;
  713. .search-screen1 {
  714. width: 100%;
  715. height: 100%;
  716. }
  717. }
  718. }
  719. .count {
  720. width: 100%;
  721. height: 82rpx;
  722. line-height: 82rpx;
  723. display: flex;
  724. align-items: center;
  725. justify-content: center;
  726. background-color: #f8f8f8;
  727. font-size: 30rpx;
  728. font-family: PingFangSC-Regular, PingFang SC;
  729. font-weight: 400;
  730. color: #333333;
  731. text {
  732. color: #E7483C;
  733. }
  734. }
  735. .content {
  736. .content-tips {
  737. background: #fff;
  738. box-sizing: border-box;
  739. overflow: hidden;
  740. margin-bottom: 20rpx;
  741. &:last-child{
  742. margin-bottom: 0
  743. }
  744. .content-first {
  745. padding: 0 30rpx;
  746. height: 92rpx;
  747. border-bottom: 1rpx solid #D8D8D8;
  748. display: flex;
  749. align-items: center;
  750. justify-content: space-between;
  751. .left {
  752. flex-shrink: 0;
  753. min-width: 50%;
  754. display: flex;
  755. align-items: center;
  756. overflow: hidden;
  757. .adviser {
  758. margin-right: 10rpx;
  759. padding: 5rpx 11rpx;
  760. border-radius: 50%;
  761. border: 1rpx solid #2671E2;
  762. font-size: 30rpx;
  763. color: #2671E2;
  764. }
  765. .img {
  766. width: 52rpx;
  767. height: 52rpx;
  768. background: #FFFFFF;
  769. border: 1px solid #C9C9C9;
  770. border-radius: 50%;
  771. text-align: center;
  772. }
  773. .name {
  774. color: #333333;
  775. font-size: 32rpx;
  776. font-weight: bold;
  777. }
  778. .status {
  779. margin-left: 19rpx;
  780. width: 110rpx;
  781. background: #FFF9F5;
  782. border-radius: 4rpx;
  783. font-size: 26rpx;
  784. font-weight: 400;
  785. color: #EC8D49;
  786. text-align: center;
  787. }
  788. }
  789. .right {
  790. max-width: 50%;
  791. display: flex;
  792. font-size: 30rpx;
  793. view,
  794. text {
  795. flex-shrink: 0;
  796. }
  797. .point {
  798. flex-shrink: 0;
  799. width: 12rpx;
  800. height: 12rpx;
  801. background: #2B6EFF;
  802. border-radius: 50%;
  803. margin-right: 9rpx;
  804. margin-top: 16rpx;
  805. }
  806. }
  807. }
  808. .content-sec {
  809. padding: 28rpx 30rpx 32rpx;
  810. display: flex;
  811. justify-content: space-between;
  812. .left {
  813. display: flex;
  814. align-items: center;
  815. .adviser {
  816. margin-right: 10rpx;
  817. padding: 5rpx 11rpx;
  818. border-radius: 50%;
  819. border: 1rpx solid #2671E2;
  820. background: #2671E2;
  821. font-size: 30rpx;
  822. color: #fff;
  823. }
  824. .cus {
  825. font-size: 30rpx;
  826. font-weight: 400;
  827. color: #333;
  828. overflow: hidden;
  829. text-overflow: ellipsis;
  830. display: -webkit-box;
  831. line-height: 23px;
  832. max-height: 46px;
  833. -webkit-line-clamp: 1;
  834. -webkit-box-orient: vertical;
  835. }
  836. .arriveNum {
  837. font-size: 30rpx;
  838. font-weight: 400;
  839. margin-left: 10rpx;
  840. }
  841. }
  842. .right {
  843. font-size: 28rpx;
  844. font-weight: 400;
  845. color: #2671E2;
  846. display: flex;
  847. align-items: center;
  848. .img {
  849. margin-right: 10rpx;
  850. width: 32rpx;
  851. height: 32rpx;
  852. }
  853. }
  854. }
  855. .content-last {
  856. padding: 0 30rpx 34rpx;
  857. font-size: 30rpx;
  858. font-weight: 400;
  859. color: #666666;
  860. display: flex;
  861. align-items: center;
  862. justify-content: space-between;
  863. .c-items {
  864. flex-shrink: 0;
  865. display: flex;
  866. align-items: center;
  867. font-size: 28rpx;
  868. .c-items-img {
  869. margin-right: 10rpx;
  870. width: 32rpx;
  871. height: 32rpx;
  872. }
  873. }
  874. }
  875. }
  876. }
  877. // 这是弹出层
  878. .screen {
  879. // box-sizing: border-box;
  880. // padding: 0 30rpx;
  881. position: absolute;
  882. .screen-counselor {
  883. display: flex;
  884. align-items: center;
  885. height: 106rpx;
  886. // padding: 40rpx 30rpx 36rpx 30rpx;
  887. padding: 0 30rpx;
  888. box-sizing: border-box;
  889. border-bottom: 1px solid #EEEEEE;
  890. .screen-text {
  891. font-size: 30rpx;
  892. font-weight: 400;
  893. color: #333333;
  894. line-height: 30rpx;
  895. }
  896. .screen-sel {
  897. display: flex;
  898. justify-content: flex-end;
  899. align-items: center;
  900. width: 500rpx;
  901. margin-left: 60rpx;
  902. .screen-sel-img {
  903. flex-shrink: 0;
  904. width: 14rpx;
  905. height: 30rpx;
  906. }
  907. .screen-inp {
  908. padding: 0 20rpx;
  909. text-align: right;
  910. }
  911. }
  912. }
  913. .screen-record {
  914. height: 192rpx;
  915. // width: 100%;
  916. overflow: hidden;
  917. padding: 0 30rpx;
  918. box-sizing: border-box;
  919. border-bottom: 1px solid #EEEEEE;
  920. .screen-record-text {
  921. margin-top: 36rpx;
  922. font-size: 30rpx;
  923. font-weight: 400;
  924. color: #333333;
  925. line-height: 30rpx;
  926. }
  927. .screen-record-tab {
  928. margin-top: 30rpx;
  929. display: flex;
  930. // justify-content: space-around;
  931. .screen-record-chose {
  932. width: 156rpx;
  933. height: 60rpx;
  934. background: #2671E2;
  935. border-radius: 4rpx;
  936. border: 1px solid #2671E2;
  937. text-align: center;
  938. line-height: 60rpx;
  939. margin-right: 22rpx;
  940. color: #FFFFFF;
  941. }
  942. .screen-record-nochose {
  943. width: 156rpx;
  944. height: 60rpx;
  945. background: #FFFFFF;
  946. border-radius: 4rpx;
  947. border: 1px solid #C9C9C9;
  948. text-align: center;
  949. line-height: 60rpx;
  950. margin-right: 22rpx;
  951. }
  952. }
  953. }
  954. .screen-foot {
  955. width: 100%;
  956. height: 100rpx;
  957. display: flex;
  958. .screen-foot-reset {
  959. width: 50%;
  960. text-align: center;
  961. height: 100rpx;
  962. line-height: 100rpx;
  963. font-size: 30rpx;
  964. font-weight: 400;
  965. color: #666666;
  966. }
  967. .screen-foot-sure {
  968. width: 50%;
  969. text-align: center;
  970. line-height: 100rpx;
  971. height: 100rpx;
  972. font-size: 30rpx;
  973. font-weight: 400;
  974. color: #FFFFFF;
  975. background: #2671E2;
  976. }
  977. }
  978. }
  979. </style>