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