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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  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-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. 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. 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. }
  681. .search-box {
  682. width: 100%;
  683. height: 102rpx;
  684. background: #FFFFFF;
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. .search {
  689. width: 94%;
  690. height: 70rpx;
  691. display: flex;
  692. align-items: center;
  693. background: #F8F8F8;
  694. border-radius: 33rpx;
  695. .search-img {
  696. width: 26rpx;
  697. height: 30rpx;
  698. margin-left: 20rpx;
  699. .search-img1 {
  700. width: 100%;
  701. height: 100%;
  702. margin-top: 2rpx;
  703. }
  704. }
  705. .search-text {
  706. font-size: 28rpx;
  707. font-weight: 400;
  708. color: #999999;
  709. margin-left: 10rpx;
  710. }
  711. }
  712. .search-screen {
  713. width: 40rpx;
  714. height: 40rpx;
  715. margin-left: 30rpx;
  716. .search-screen1 {
  717. width: 100%;
  718. height: 100%;
  719. }
  720. }
  721. }
  722. .count {
  723. width: 100%;
  724. height: 82rpx;
  725. line-height: 82rpx;
  726. display: flex;
  727. align-items: center;
  728. justify-content: center;
  729. background-color: #f8f8f8;
  730. font-size: 30rpx;
  731. font-family: PingFangSC-Regular, PingFang SC;
  732. font-weight: 400;
  733. color: #333333;
  734. text {
  735. color: #E7483C;
  736. }
  737. }
  738. .content {
  739. .content-tips {
  740. background: #fff;
  741. box-sizing: border-box;
  742. overflow: hidden;
  743. margin-bottom: 20rpx;
  744. &:last-child{
  745. margin-bottom: 0
  746. }
  747. .content-first {
  748. padding: 0 30rpx;
  749. height: 92rpx;
  750. border-bottom: 1rpx solid #D8D8D8;
  751. display: flex;
  752. align-items: center;
  753. justify-content: space-between;
  754. .left {
  755. flex-shrink: 0;
  756. min-width: 50%;
  757. display: flex;
  758. align-items: center;
  759. overflow: hidden;
  760. .adviser {
  761. margin-right: 10rpx;
  762. padding: 5rpx 11rpx;
  763. border-radius: 50%;
  764. border: 1rpx solid #2671E2;
  765. font-size: 30rpx;
  766. color: #2671E2;
  767. }
  768. .img {
  769. width: 52rpx;
  770. height: 52rpx;
  771. background: #FFFFFF;
  772. border: 1px solid #C9C9C9;
  773. border-radius: 50%;
  774. text-align: center;
  775. }
  776. .name {
  777. color: #333333;
  778. font-size: 32rpx;
  779. font-weight: bold;
  780. }
  781. .status {
  782. margin-left: 19rpx;
  783. width: 110rpx;
  784. background: #FFF9F5;
  785. border-radius: 4rpx;
  786. font-size: 26rpx;
  787. font-weight: 400;
  788. color: #EC8D49;
  789. text-align: center;
  790. }
  791. }
  792. .right {
  793. max-width: 50%;
  794. display: flex;
  795. font-size: 30rpx;
  796. view,
  797. text {
  798. flex-shrink: 0;
  799. }
  800. .point {
  801. flex-shrink: 0;
  802. width: 12rpx;
  803. height: 12rpx;
  804. background: #2B6EFF;
  805. border-radius: 50%;
  806. margin-right: 9rpx;
  807. margin-top: 16rpx;
  808. }
  809. }
  810. }
  811. .content-sec {
  812. padding: 28rpx 30rpx 32rpx;
  813. display: flex;
  814. justify-content: space-between;
  815. .left {
  816. display: flex;
  817. align-items: center;
  818. .adviser {
  819. margin-right: 10rpx;
  820. padding: 5rpx 11rpx;
  821. border-radius: 50%;
  822. border: 1rpx solid #2671E2;
  823. background: #2671E2;
  824. font-size: 30rpx;
  825. color: #fff;
  826. }
  827. .cus {
  828. font-size: 30rpx;
  829. font-weight: 400;
  830. color: #333;
  831. overflow: hidden;
  832. text-overflow: ellipsis;
  833. display: -webkit-box;
  834. line-height: 23px;
  835. max-height: 46px;
  836. -webkit-line-clamp: 1;
  837. -webkit-box-orient: vertical;
  838. }
  839. .arriveNum {
  840. font-size: 30rpx;
  841. font-weight: 400;
  842. margin-left: 10rpx;
  843. }
  844. }
  845. .right {
  846. font-size: 28rpx;
  847. font-weight: 400;
  848. color: #2671E2;
  849. display: flex;
  850. align-items: center;
  851. .img {
  852. margin-right: 10rpx;
  853. width: 32rpx;
  854. height: 32rpx;
  855. }
  856. }
  857. }
  858. .content-last {
  859. padding: 0 30rpx 34rpx;
  860. font-size: 30rpx;
  861. font-weight: 400;
  862. color: #666666;
  863. display: flex;
  864. align-items: center;
  865. justify-content: space-between;
  866. .c-items {
  867. flex-shrink: 0;
  868. display: flex;
  869. align-items: center;
  870. font-size: 28rpx;
  871. .c-items-img {
  872. margin-right: 10rpx;
  873. width: 32rpx;
  874. height: 32rpx;
  875. }
  876. }
  877. }
  878. }
  879. }
  880. // 这是弹出层
  881. .screen {
  882. // box-sizing: border-box;
  883. // padding: 0 30rpx;
  884. position: absolute;
  885. .screen-counselor {
  886. display: flex;
  887. align-items: center;
  888. height: 106rpx;
  889. // padding: 40rpx 30rpx 36rpx 30rpx;
  890. padding: 0 30rpx;
  891. box-sizing: border-box;
  892. border-bottom: 1px solid #EEEEEE;
  893. .screen-text {
  894. font-size: 30rpx;
  895. font-weight: 400;
  896. color: #333333;
  897. line-height: 30rpx;
  898. }
  899. .screen-sel {
  900. display: flex;
  901. justify-content: flex-end;
  902. align-items: center;
  903. width: 500rpx;
  904. margin-left: 60rpx;
  905. .screen-sel-img {
  906. flex-shrink: 0;
  907. width: 14rpx;
  908. height: 30rpx;
  909. }
  910. .screen-inp {
  911. padding: 0 20rpx;
  912. text-align: right;
  913. }
  914. }
  915. }
  916. .screen-record {
  917. height: 192rpx;
  918. // width: 100%;
  919. overflow: hidden;
  920. padding: 0 30rpx;
  921. box-sizing: border-box;
  922. border-bottom: 1px solid #EEEEEE;
  923. .screen-record-text {
  924. margin-top: 36rpx;
  925. font-size: 30rpx;
  926. font-weight: 400;
  927. color: #333333;
  928. line-height: 30rpx;
  929. }
  930. .screen-record-tab {
  931. margin-top: 30rpx;
  932. display: flex;
  933. // justify-content: space-around;
  934. .screen-record-chose {
  935. width: 156rpx;
  936. height: 60rpx;
  937. background: #2671E2;
  938. border-radius: 4rpx;
  939. border: 1px solid #2671E2;
  940. text-align: center;
  941. line-height: 60rpx;
  942. margin-right: 22rpx;
  943. color: #FFFFFF;
  944. }
  945. .screen-record-nochose {
  946. width: 156rpx;
  947. height: 60rpx;
  948. background: #FFFFFF;
  949. border-radius: 4rpx;
  950. border: 1px solid #C9C9C9;
  951. text-align: center;
  952. line-height: 60rpx;
  953. margin-right: 22rpx;
  954. }
  955. }
  956. }
  957. .screen-foot {
  958. width: 100%;
  959. height: 100rpx;
  960. display: flex;
  961. .screen-foot-reset {
  962. width: 50%;
  963. text-align: center;
  964. height: 100rpx;
  965. line-height: 100rpx;
  966. font-size: 30rpx;
  967. font-weight: 400;
  968. color: #666666;
  969. }
  970. .screen-foot-sure {
  971. width: 50%;
  972. text-align: center;
  973. line-height: 100rpx;
  974. height: 100rpx;
  975. font-size: 30rpx;
  976. font-weight: 400;
  977. color: #FFFFFF;
  978. background: #2671E2;
  979. }
  980. }
  981. }
  982. </style>