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 30 KiB

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