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

2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624
  1. <template>
  2. <view class="box">
  3. <view class="top-search">
  4. <view class="search-box">
  5. <view class="search" @click="goSearch">
  6. <view class="search-img">
  7. <image class="search-img1" src="../../../static/images/search.png" mode=""></image>
  8. </view>
  9. <view class="search-text">输入客户姓名/手机号</view>
  10. </view>
  11. </view>
  12. <template v-if="showFilterOption">
  13. <image @click="screenShow = true" class="filter-icon" src="@/static/images/iconFilter.png" mode="">
  14. </image>
  15. </template>
  16. <template v-else>
  17. <image class="filter-icon" @click="screenShow = true"
  18. src="https://static.quhouse.com/f4feade4a19d413085b591612179457f.png" mode="" />
  19. </template>
  20. </view>
  21. <!-- 选择器 -->
  22. <view class="boxtittab">
  23. <view class="tabbox" :class="{activeColor: sortFilter!=='排序'}" @click="soltishow = true">
  24. {{ sortFilter }}
  25. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  26. </view>
  27. <view class="tabbox" :class="{activeColor: arriveFilter!=='接待时间'}" @click="timeshow = true">
  28. {{ arriveFilter }}
  29. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  30. </view>
  31. <view class="tabbox" :class="{activeColor: agentIdtext!=='接待顾问'}" @click="selectshow=true">
  32. {{ agentIdtext }}
  33. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  34. </view>
  35. <view class="tabbox" :class="{activeColor: tagSign}" @click="huaxiangShow = true">
  36. 画像标签<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  37. </view>
  38. </view>
  39. <!-- 筛选后的数量 -->
  40. <view class="count" v-if="recordList.length > 0">
  41. 筛选结果:<text>{{totalRecords}} </text>条
  42. </view>
  43. <view class="content">
  44. <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  45. <view style="width: 100%;height: 100%;padding-top: 200rpx;">
  46. <view style="width: 100%;text-align: center;">
  47. <image style="width: 220rpx;height: 200rpx;"
  48. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  49. </view>
  50. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  51. </view>
  52. </view>
  53. <view v-if="recordList.length" class="content-tips" v-for="(item,index) in recordList" :key='index'
  54. @click="gotoDetail(item.id)">
  55. <view class="content-first">
  56. <view class="left">
  57. <view v-if="item.level.length == 0"></view>
  58. <view class="img A" v-else-if="item.level == 1">A</view>
  59. <view class="img B" v-else-if="item.level == 2">B</view>
  60. <view class="img C" v-else-if="item.level == 3">C</view>
  61. <view class="img D" v-else-if="item.level == 4">D</view>
  62. <view class="test">{{item.name}}</view>
  63. </view>
  64. <view class="right">
  65. <view class="clientStageName">
  66. {{ item.fraction || 0 }}%
  67. </view>
  68. </view>
  69. </view>
  70. <view class="content-sec">
  71. <view class="content-sec-lab">
  72. <view class="content-sec-lab1">手机号码:{{ item.phone || "--" }}</view>
  73. <view class="content-sec-lab1" style="width: 44%">客户阶段:{{ item.clientStageName || '--' }}</view>
  74. </view>
  75. <view class="content-sec-lab">
  76. <view class="content-sec-lab1">负责顾问:{{ item.agentName || "--" }}</view>
  77. </view>
  78. <view class="content-sec-lab">
  79. <view class="content-sec-lab1">
  80. 挖掘执行/成功:{{ max100(item.wordFraction) }}%/{{ max100(item.wordFinishFraction) }}%</view>
  81. <view class="content-sec-lab1" style="width: 44%">
  82. 客户意向率:{{ `${item.levelFraction||'0'}%` }}
  83. </view>
  84. </view>
  85. <view class="content-sec-lab">
  86. <view class="content-sec-lab1">最近到访:{{ item.createTime || "--" }}</view>
  87. <view class="content-sec-lab1-min">
  88. 到访{{ item.visitRecord || 0 }}次/{{ item.mm || 0 }}min
  89. </view>
  90. </view>
  91. </view>
  92. <view class="content-last">
  93. <template v-if="permissions.commonly2">
  94. <view class="content-last-tab" @click.stop="gotoFollowUp(item)">
  95. <image src="/static/images/genjin-icon.png" mode="" />
  96. 写跟进
  97. </view>
  98. </template>
  99. <template v-if="CHECKAUTHORITY('khgl_bj')">
  100. <view class="content-last-tab" @click.stop="goedit(item)">
  101. <image class="icon" src="https://static.quhouse.com/5daebdec0aad4f63a62d3720437034bc.png"
  102. mode="" />
  103. 打标签
  104. </view>
  105. </template>
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 更多筛选 -->
  110. <u-popup v-model="screenShow" mode="top" height="900">
  111. <view class="screen">
  112. <scroll-view scroll-y="true" style="height: 750rpx;">
  113. <!-- 销讲业务 -->
  114. <view class="screen-record">
  115. <view class="screen-record-text" @click="showTemplate=!showTemplate">
  116. 销讲业务
  117. <image v-if="showTemplate" class="arrow"
  118. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  119. <image v-else class="arrow"
  120. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  121. </view>
  122. <view class="screen-record-tab" v-if="showTemplate">
  123. <block v-for="(item,index) in templateList" :key="index">
  124. <view class="screen-record-item"
  125. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  126. @click="choice(item)">
  127. {{item.templateName}}
  128. </view>
  129. </block>
  130. </view>
  131. </view>
  132. <!-- 接待时长 -->
  133. <view class="screen-record">
  134. <view class="screen-record-text" @click="jiedaiArrow = !jiedaiArrow">
  135. 接待时长
  136. <image v-if="jiedaiArrow" class="arrow"
  137. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  138. <image v-else class="arrow"
  139. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  140. </view>
  141. <view class="screen-record-tab" v-if="jiedaiArrow">
  142. <block v-for="(item, index) in jiedaiList" :key="index">
  143. <view class="screen-record-item" :class="[
  144. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  145. ]" @click="choice(item)">
  146. {{ item.label }}
  147. </view>
  148. </block>
  149. </view>
  150. </view>
  151. <!-- 客户等级 -->
  152. <view class="screen-record">
  153. <view class="screen-record-text" @click="levelArrow = !levelArrow">
  154. 意向等级
  155. <image v-if="levelArrow" class="arrow"
  156. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  157. <image v-else class="arrow"
  158. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  159. </view>
  160. <view class="screen-record-tab" v-if="levelArrow">
  161. <block v-for="(item, index) in levelList" :key="index">
  162. <view class="screen-record-item" :class="[
  163. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  164. ]" @click="choice(item)">
  165. {{ item.label }}
  166. </view>
  167. </block>
  168. </view>
  169. </view>
  170. <!-- 客户来源 -->
  171. <view class="screen-record">
  172. <view class="screen-record-text" @click="sourceArrow = !sourceArrow">
  173. 客户来源
  174. <image v-if="sourceArrow" class="arrow"
  175. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  176. <image v-else class="arrow"
  177. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  178. </view>
  179. <view class="screen-record-tab" v-if="sourceArrow">
  180. <block v-for="(item, index) in sourceList" :key="index">
  181. <view class="screen-record-item" :class="[
  182. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  183. ]" @click="choice(item)">
  184. {{ item.label }}
  185. </view>
  186. </block>
  187. </view>
  188. </view>
  189. <!-- 客户阶段 -->
  190. <view class="screen-record">
  191. <view class="screen-record-text" @click="jieduanArrow = !jieduanArrow">
  192. 客户阶段
  193. <image v-if="jieduanArrow" class="arrow"
  194. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  195. <image v-else class="arrow"
  196. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  197. </view>
  198. <view class="screen-record-tab" v-if="jieduanArrow">
  199. <block v-for="(item, index) in phaseList" :key="index">
  200. <view class="screen-record-item" :class="[
  201. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  202. ]" @click="choice(item)">
  203. {{ item.label }}
  204. </view>
  205. </block>
  206. </view>
  207. </view>
  208. <!-- 需求挖掘率 -->
  209. <view class="screen-record">
  210. <view class="screen-record-text" @click="wajueArrow = !wajueArrow">
  211. 挖掘执行率
  212. <image v-if="wajueArrow" class="arrow"
  213. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  214. <image v-else class="arrow"
  215. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  216. </view>
  217. <view class="screen-record-tab" v-if="wajueArrow">
  218. <block v-for="(item, index) in wajueList" :key="index">
  219. <view class="screen-record-item" :class="[
  220. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  221. ]" @click="choice(item)">
  222. {{ item.label }}
  223. </view>
  224. </block>
  225. </view>
  226. </view>
  227. <!-- 需求挖掘率 -->
  228. <view class="screen-record">
  229. <view class="screen-record-text" @click="wajueArrows=!wajueArrows">
  230. 挖掘成功率
  231. <image v-if="wajueArrows" class="arrow"
  232. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  233. <image v-else class="arrow"
  234. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  235. </view>
  236. <view class="screen-record-tab" v-if="wajueArrows">
  237. <block v-for="(item,index) in wajueLists" :key="index">
  238. <view class="screen-record-item"
  239. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  240. @click="choice(item)">
  241. {{item.label}}
  242. </view>
  243. </block>
  244. </view>
  245. </view>
  246. <!-- 销讲执行率 -->
  247. <view class="screen-record">
  248. <view class="screen-record-text" @click="xiaojiangArrow = !xiaojiangArrow">
  249. 销讲执行率
  250. <image v-if="xiaojiangArrow" class="arrow"
  251. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  252. <image v-else class="arrow"
  253. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  254. </view>
  255. <view class="screen-record-tab" v-if="xiaojiangArrow">
  256. <block v-for="(item, index) in xiaojiangList" :key="index">
  257. <view class="screen-record-item" :class="[
  258. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  259. ]" @click="choice(item)">
  260. {{ item.label }}
  261. </view>
  262. </block>
  263. </view>
  264. </view>
  265. <!-- 到访次数 -->
  266. <view class="screen-record">
  267. <view class="screen-record-text" @click="visitArrow = !visitArrow">
  268. 到访次数
  269. <image v-if="visitArrow" class="arrow"
  270. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  271. <image v-else class="arrow"
  272. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  273. </view>
  274. <view class="screen-record-tab" v-if="visitArrow">
  275. <block v-for="(item, index) in visitList" :key="index">
  276. <view class="screen-record-item" :class="[
  277. item.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  278. ]" @click="choice(item)">
  279. {{ item.label }}
  280. </view>
  281. </block>
  282. </view>
  283. </view>
  284. </scroll-view>
  285. <view class="screen-foot">
  286. <view class="screen-foot-reset" @click="reset"> 重置 </view>
  287. <view class="screen-foot-sure" @click="screensure"> 确定 </view>
  288. </view>
  289. </view>
  290. </u-popup>
  291. <!-- 选择顾问的选择框 -->
  292. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  293. <!-- 自定义时间 -->
  294. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  295. <!-- 选择接待时间 -->
  296. <u-popup v-model="timeshow" mode="bottom">
  297. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
  298. @click="tabtimetap(5, '接待时间')">
  299. 全部</view>
  300. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
  301. @click="tabtimetap(0, '今天')">
  302. 今天</view>
  303. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
  304. @click="tabtimetap(1, '昨天')">
  305. 昨天</view>
  306. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
  307. @click="tabtimetap(2, '近7天')">
  308. 近7天</view>
  309. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }"
  310. @click="tabtimetap(3, '近30天')">
  311. 近30天</view>
  312. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4)">
  313. 自定义</view>
  314. </u-popup>
  315. <!-- 排序 -->
  316. <u-popup v-model="soltishow" mode="bottom">
  317. <view class="soltishow" @tap.stop @touchmove.stop>
  318. <block v-for="(item, index) in orderBylist" :key="index">
  319. <view class="soltishow-item" :style="orderBy==item.value?'color: #2B6EFF':''"
  320. @click="selectCallback2(item)">
  321. {{ item.label }}
  322. </view>
  323. </block>
  324. </view>
  325. </u-popup>
  326. <!-- 画像标签 -->
  327. <u-popup v-model="huaxiangShow" mode="top" height="850">
  328. <view class="screen">
  329. <scroll-view scroll-y="true" style="height: 700rpx;">
  330. <view class="screen-record" v-if="item.children.length" v-for="(item,index) in huaxiangList"
  331. :key="index">
  332. <view class="screen-record-text" @click="choice(item)">
  333. {{item.name}}
  334. <image v-if="item.isShow" class="arrow"
  335. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  336. <image v-else class="arrow"
  337. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  338. </view>
  339. <view class="screen-record-tab" v-if="item.isShow">
  340. <block v-for="(subitem, ind) in item.children" :key="ind">
  341. <view class="screen-record-item" :class="[
  342. subitem.isShow ? 'screen-record-chose' : 'screen-record-nochose',
  343. ]" @click="choice(subitem)">
  344. {{ subitem.name }}
  345. </view>
  346. </block>
  347. </view>
  348. </view>
  349. </scroll-view>
  350. <view class="screen-foot">
  351. <view class="screen-foot-reset" @click="resetHuaXiang"> 重置 </view>
  352. <view class="screen-foot-sure" @click="screensure"> 确定 </view>
  353. </view>
  354. </view>
  355. </u-popup>
  356. <!-- 加载组件 -->
  357. <u-loadings v-model="LOADING"></u-loadings>
  358. </view>
  359. </template>
  360. <script>
  361. var config = require("@/config");
  362. let _this
  363. export default {
  364. data() {
  365. return {
  366. keywordsIds: [], // 画像标签
  367. sourceList: [], //客户来源
  368. templateList: [], // 销讲业务
  369. showTemplate: true, // 展示销讲业务
  370. agentIdtext: '接待顾问',
  371. phaseList: [], // 客户阶段
  372. huaxiangShow: false,
  373. wajueArrow: true,
  374. wajueArrows: true,
  375. jieduanArrow: true,
  376. sourceArrow: true,
  377. levelArrow: true,
  378. zixunArrow: true,
  379. jiedaiArrow: true,
  380. luyinArrow: true,
  381. visitArrow: true,
  382. xiaojiangArrow: true,
  383. huaxiangList: [],
  384. orderBylist: [{
  385. label: '创建时间倒序',
  386. value: '1'
  387. },
  388. {
  389. label: '创建时间正序',
  390. value: '2'
  391. },
  392. {
  393. label: '接待时间倒序',
  394. value: '3'
  395. },
  396. {
  397. label: '接待时间正序',
  398. value: '4'
  399. },
  400. {
  401. label: '执行率正序',
  402. value: '5'
  403. },
  404. {
  405. label: '执行率倒序',
  406. value: '6'
  407. },
  408. {
  409. label: '接访次数正序',
  410. value: '7'
  411. },
  412. {
  413. label: '接访次数倒序',
  414. value: '8'
  415. },
  416. ],
  417. jiedaiList: [{
  418. label: "0~15min",
  419. value: 1,
  420. isShow: false,
  421. },
  422. {
  423. label: "16~30min",
  424. value: 2,
  425. isShow: false,
  426. },
  427. {
  428. label: "31~60min",
  429. value: 3,
  430. isShow: false,
  431. },
  432. {
  433. label: "61~90min",
  434. value: 4,
  435. isShow: false,
  436. },
  437. {
  438. label: "91min及以上",
  439. value: 5,
  440. isShow: false,
  441. },
  442. ],
  443. wajueList: [{
  444. label: "31%及以下",
  445. value: 1,
  446. isShow: false,
  447. },
  448. {
  449. label: "31%~50%",
  450. value: 2,
  451. isShow: false,
  452. },
  453. {
  454. label: "51%~70%",
  455. value: 3,
  456. isShow: false,
  457. },
  458. {
  459. label: "71%及以上",
  460. value: 4,
  461. isShow: false,
  462. },
  463. ],
  464. wajueLists: [{
  465. label: '30%及以下',
  466. value: 1,
  467. isShow: false,
  468. }, {
  469. label: '31%~50%',
  470. value: 2,
  471. isShow: false,
  472. }, {
  473. label: '51%~70%',
  474. value: 3,
  475. isShow: false,
  476. }, {
  477. label: '71%及以上',
  478. value: 4,
  479. isShow: false,
  480. }],
  481. xiaojiangList: [{
  482. label: "30%及以下",
  483. value: 1,
  484. isShow: false,
  485. },
  486. {
  487. label: "31%~50%",
  488. value: 2,
  489. isShow: false,
  490. },
  491. {
  492. label: "51%~70%",
  493. value: 3,
  494. isShow: false,
  495. },
  496. {
  497. label: "71%及以上",
  498. value: 4,
  499. isShow: false,
  500. },
  501. ],
  502. value: '',
  503. screenShow: false,
  504. selectshow: false,
  505. selectTipshow: false,
  506. buildingID: '',
  507. screen: {
  508. staTime: "",
  509. endTime: "",
  510. orderBy: "", // 排序
  511. agentId: "", //顾问
  512. sourceIds: [], // 客户来源
  513. level: [], // 客户等级
  514. visitRecord: [], // 到访次数
  515. wajueVal: [], // 需求挖掘
  516. xiaojiangVal: [], //销讲执行率
  517. jiedaiVal: [], // 接待时长
  518. validInvalid: null, // 录音标识
  519. clientStage: [], // 客户阶段 clientStage
  520. },
  521. stageList: ['未知', '到访', '意向', '定金', '成交'],
  522. recordList: [],
  523. nextPage: 1,
  524. totalRecord: '',
  525. totalRecords: '', // 总条数
  526. freeList: [],
  527. userInfo: {},
  528. isnorefresh: '',
  529. activeTotal: 5,
  530. activeTotal2: 0,
  531. totalTimeShow: false,
  532. timeshow: false,
  533. soltishow: false,
  534. permissions: {
  535. commonly1: false,
  536. commonly2: false
  537. },
  538. list: [], // 客户来源列表
  539. sourceId: '', // 选中的客户来源id
  540. // 不同等级之间的颜色
  541. colorName: [
  542. '', "A", "B", "C", "D"
  543. ],
  544. // 筛选文字展示
  545. sortFilter: '排序',
  546. arriveFilter: '接待时间',
  547. visitList: [{
  548. label: '首次到访',
  549. value: 1,
  550. isShow: false,
  551. }, {
  552. label: '2次到访',
  553. value: 2,
  554. isShow: false,
  555. }, {
  556. label: '3次到访',
  557. value: 3,
  558. isShow: false,
  559. }, {
  560. label: '3次以上',
  561. value: 4,
  562. isShow: false,
  563. }, ],
  564. levelList: [{
  565. label: 'A',
  566. value: 1,
  567. isShow: false,
  568. }, {
  569. label: 'B',
  570. value: 2,
  571. isShow: false,
  572. }, {
  573. label: 'C',
  574. value: 3,
  575. isShow: false,
  576. }, {
  577. label: 'D',
  578. value: 4,
  579. isShow: false,
  580. }, ],
  581. isRefresh: false,
  582. showFilterOption: false, // 筛选
  583. tagSign: false, // 画像标签active
  584. }
  585. },
  586. // computed: {
  587. // showFilterOption() {
  588. // return this.sortFilter !== '排序' || this.arriveFilter !== '接待时间' || this.agentIdtext !== '接待顾问'
  589. // }
  590. // },
  591. onLoad(options) {
  592. this.LOADING = true
  593. this.userInfo = uni.getStorageSync("weapp_session_userInfo_data")
  594. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  595. this.permissions.commonly1 = newmenulist.khgl_ck;
  596. this.permissions.commonly2 = newmenulist.khgl_gj;
  597. _this = this
  598. },
  599. onPullDownRefresh() {
  600. this.buildingID = uni.getStorageSync('buildingID').id;
  601. this.LOADING = true
  602. this.nextPage = 1;
  603. this.isRefresh = true;
  604. this.resetFilter()
  605. this.reset()
  606. this.getFreeList()
  607. this.getFromSource();
  608. this.getMyCustom();
  609. setTimeout(() => {
  610. uni.stopPullDownRefresh()
  611. }, 2000)
  612. },
  613. onShow() {
  614. this.getTabBarBadge()
  615. this.buildingID = uni.getStorageSync('buildingID').id;
  616. this.updatebuildingID = uni.getStorageSync('updatebuildingID')
  617. if (this.isnorefresh != 'refresh' || this.updatebuildingID == 'updatebuildingID') {
  618. this.nextPage = 1;
  619. this.recordList = []
  620. this.getMyCustom()
  621. this.getFreeList()
  622. this.getWordMiningList();
  623. this.getCustomPhase();
  624. this.getFromSource();
  625. this.getMarketingBusiness(); // 销讲业务
  626. this.isRefresh = false;
  627. this.isnorefresh = 'refresh';
  628. uni.setStorageSync('updatebuildingID', '');
  629. }
  630. this.updateInit()
  631. },
  632. onReachBottom() {
  633. if (this.totalRecord == this.nextPage) {
  634. uni.showToast({
  635. icon: 'none',
  636. title: '到底了',
  637. duration: 2000
  638. });
  639. return
  640. } else {
  641. this.isRefresh = false;
  642. this.nextPage = this.nextPage + 1;
  643. this.getMyCustom();
  644. }
  645. },
  646. methods: {
  647. // 跳转编辑
  648. goedit(data) {
  649. uni.navigateTo({
  650. url: `/pages/center/consumer/edit?id=${data.id}&projectId=${data.projectId}`
  651. })
  652. },
  653. // 获取客户阶段数据
  654. getCustomPhase() {
  655. this.phaseList = [];
  656. this.$u
  657. .post("/customer/lifeTrackDefineList", {
  658. houseId: this.buildingID,
  659. })
  660. .then((res) => {
  661. if (res.length) {
  662. this.phaseList = res.map(item => {
  663. return {
  664. label: item.stageName,
  665. value: item.id,
  666. isShow: false
  667. }
  668. })
  669. } else {
  670. this.phaseList = []
  671. }
  672. });
  673. },
  674. // 获取客户来源
  675. getFromSource() {
  676. this.$u.get(config.service.sourceList, {
  677. houseId: this.buildingID
  678. })
  679. .then((res) => {
  680. if (res.length) {
  681. this.sourceList = res.map((item) => {
  682. return {
  683. label: item.sourceName,
  684. value: item.id,
  685. isShow: false
  686. }
  687. })
  688. } else {
  689. this.sourceList = []
  690. }
  691. })
  692. },
  693. max100(num) {
  694. if (num > 100) {
  695. return 100
  696. } else if (!num) {
  697. return 0;
  698. } else {
  699. return num;
  700. }
  701. },
  702. // 获取销讲业务
  703. getMarketingBusiness() {
  704. this.$u.get('/customer/marketingBusiness', {
  705. houseId: this.buildingID,
  706. }).then(res => {
  707. this.templateList = res.map(item => {
  708. return {
  709. ...item,
  710. isShow: false,
  711. }
  712. })
  713. })
  714. },
  715. updateInit() {
  716. this.$u.get(config.service.notReadNum, {
  717. id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
  718. projectId: uni.getStorageSync('buildingID').id
  719. }).then(res => {
  720. console.log(res)
  721. if (res > 0) {
  722. uni.setTabBarBadge({ //显示数字
  723. index: 4, //tabbar下标
  724. text: `${res}` //数字
  725. })
  726. } else {
  727. uni.removeTabBarBadge({
  728. index: 4
  729. })
  730. }
  731. }).catch(e => {
  732. uni.removeTabBarBadge({
  733. index: 4
  734. })
  735. })
  736. },
  737. filterFun() {
  738. },
  739. // 过滤
  740. resetFilter() {
  741. this.sortFilter = '排序';
  742. this.agentIdtext = '接待顾问';
  743. this.screen.orderBy = null;
  744. this.arriveFilter = '接待时间';
  745. this.screen.staTime = '';
  746. this.screen.endTime = '';
  747. this.nextPage = 1;
  748. this.activeTotal = 5;
  749. this.recordList = [];
  750. this.activeTotal2 = 0;
  751. },
  752. //选择排序
  753. selectCallback2(e) {
  754. this.sortFilter = e.label;
  755. this.screen.orderBy = e.value;
  756. this.nextPage = 1;
  757. this.recordList = [];
  758. this.soltishow = false;
  759. this.isRefresh = false;
  760. this.getMyCustom();
  761. },
  762. //时间选择
  763. tabtimetap(index, text) {
  764. this.timeshow = false;
  765. if (text) this.arriveFilter = text
  766. if (index == 4) {
  767. this.totalTimeShow = true;
  768. } else {
  769. this.activeTotal = index;
  770. this.screen.staTime = '';
  771. this.screen.endTime = '';
  772. this.nextPage = 1;
  773. this.isRefresh = false;
  774. this.recordList = [];
  775. this.getMyCustom();
  776. }
  777. },
  778. //自定义时间
  779. totalTimeChange(e) {
  780. this.screen.staTime = e.startDate;
  781. this.screen.endTime = e.endDate;
  782. this.activeTotal = 4;
  783. this.nextPage = 1;
  784. this.recordList = [];
  785. this.isRefresh = false;
  786. this.arriveFilter = this.screen.staTime + '-' + this.screen.endTime
  787. this.getMyCustom();
  788. },
  789. choice(item) {
  790. item.isShow = !item.isShow;
  791. },
  792. // 客户详情
  793. gotoDetail(id) {
  794. if (this.permissions.commonly1 == true) {
  795. uni.navigateTo({
  796. url: `/pages/center/consumer/consumerDetail?id=${id}`
  797. })
  798. }
  799. },
  800. getMyCustom() {
  801. this.screen.visitRecord = []
  802. this.screen.jiedaiVal = []
  803. this.screen.wajueVal = []
  804. this.screen.xiaojiangVal = []
  805. this.screen.level = []
  806. this.screen.clientStage = []
  807. this.screen.sourceIds = []
  808. let dateType = 0;
  809. if (this.activeTotal == 5 || this.activeTotal == 4) {
  810. dateType = null;
  811. } else {
  812. dateType = this.activeTotal;
  813. }
  814. // 到访次数
  815. this.visitList.forEach(i => {
  816. if (i.isShow) this.screen.visitRecord.push(i.value)
  817. })
  818. // 接待时长
  819. this.jiedaiList.forEach(i => {
  820. if (i.isShow) this.screen.jiedaiVal.push(i.value)
  821. })
  822. // 需求挖掘
  823. this.wajueList.forEach(i => {
  824. if (i.isShow) this.screen.wajueVal.push(i.value)
  825. })
  826. // 需求挖掘成功
  827. this.wajueLists.forEach(i => {
  828. if (i.isShow) this.screen.wajueVals.push(i.value)
  829. })
  830. // 销讲执行率
  831. this.xiaojiangList.forEach(i => {
  832. if (i.isShow) this.screen.xiaojiangVal.push(i.value)
  833. })
  834. // 客户等级
  835. this.levelList.forEach(i => {
  836. if (i.isShow) this.screen.level.push(i.value)
  837. })
  838. //客户阶段
  839. this.phaseList.forEach(i => {
  840. if (i.isShow) this.screen.clientStage.push(i.value)
  841. })
  842. // 客户来源
  843. this.sourceList.forEach(i => {
  844. if (i.isShow) this.screen.sourceIds.push(i.value)
  845. })
  846. var parames = {
  847. pageNum: this.nextPage,
  848. pageSize: 10,
  849. query: {
  850. projectId: this.buildingID,
  851. fractions: this.screen.xiaojiangVal.length ? this.screen.xiaojiangVal.join(',') : '', // 销讲执行率
  852. wordFractions: this.screen.wajueVal.length ? this.screen.wajueVal.join(',') : '', //需求挖掘
  853. visitRecordNum: this.screen.visitRecord.length ? this.screen.visitRecord.join(',') : '', //到访次数
  854. clientStages: this.screen.clientStage.length ? this.screen.clientStage.join(',') : '', // 客户阶段
  855. sourceIds: this.screen.sourceIds.length ? this.screen.sourceIds.join(',') : '', // 客户来源
  856. level: this.screen.level.length ? this.screen.level.join(',') : '', // 客户等级
  857. duractionNums: this.screen.jiedaiVal.length ? this.screen.jiedaiVal.join(',') : '', // 接待时长
  858. keywordsIds: this.keywordsIds.length ? this.keywordsIds.join(',') : '', // 画像标签
  859. dateType: dateType, // 接待时间
  860. staTime: this.screen.staTime,
  861. endTime: this.screen.endTime,
  862. agentId: this.screen.agentId, // 顾问
  863. orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序
  864. },
  865. };
  866. let ars = []
  867. this.templateList.forEach(item => {
  868. if (item.isShow) {
  869. ars.push(item.id)
  870. }
  871. })
  872. parames.query.marketingBusiness = ars.join(',')
  873. this.$u.post("/customer/customerManagement", parames)
  874. .then((data) => {
  875. this.LOADING = false;
  876. var list = data.records || [];
  877. list.forEach((item) => {
  878. if (this.userInfo.dataCode == 6) {
  879. item.isshow = true;
  880. } else {
  881. item.isshow = false;
  882. }
  883. });
  884. if (this.isRefresh) {
  885. this.recordList = list;
  886. } else {
  887. this.recordList = [...this.recordList, ...list];
  888. }
  889. this.totalRecord = data.pages;
  890. this.totalRecords = data.total;
  891. })
  892. .catch((e) => {
  893. this.LOADING = false;
  894. });
  895. },
  896. getMyCustom1() {
  897. let dateType = 0;
  898. let recDurationInterval = 0;
  899. let orderBy = 0;
  900. if (this.activeTotal == 5) {
  901. dateType = null;
  902. } else if (this.activeTotal == 4) {
  903. dateType = null;
  904. } else {
  905. dateType = this.activeTotal;
  906. }
  907. if (this.activeTotal2 == 0) {
  908. recDurationInterval = null
  909. } else {
  910. recDurationInterval = this.activeTotal2
  911. }
  912. if (this.orderBy == 0) {
  913. orderBy = null;
  914. } else {
  915. orderBy = this.orderBy;
  916. }
  917. var parames = {
  918. pageNum: this.nextPage,
  919. pageSize: 10,
  920. query: {
  921. projectId: this.buildingID,
  922. keywordsId: this.screen.cunsumerTipsid,
  923. agentId: this.screen.agentId,
  924. dateType: dateType,
  925. staDate: this.screen.staTime,
  926. endDate: this.screen.endTime,
  927. recDurationInterval: recDurationInterval,
  928. orderBy: orderBy,
  929. sourceId: this.sourceId
  930. }
  931. };
  932. if (this.screen.visitRecord.length > 0) {
  933. parames.query.visitRecords = this.screen.visitRecord.join(',');
  934. }
  935. if (this.screen.record.length > 0) {
  936. parames.query.level = this.screen.record.join(',');
  937. }
  938. this.$u.post("/customer/customerManagement", parames).then(data => {
  939. this.LOADING = false
  940. var list = data.results || [];
  941. list.forEach(item => {
  942. if (item.demand.cusSemanticWordsList != null) {
  943. item.demand.cusSemanticWordsList.forEach(che => {
  944. if (che.isInterval == 0) {
  945. che.name = che.name + che.unit + '-' + che.endName + che.unit;
  946. }
  947. })
  948. }
  949. })
  950. if (this.isRefresh) {
  951. this.recordList = list;
  952. } else {
  953. console.log('我在这里被打印了', this.recordList)
  954. this.recordList = [...this.recordList, ...list];
  955. }
  956. this.totalRecord = data.totalPage;
  957. this.totalRecords = data.totalRecord;
  958. }).catch(e => {
  959. this.LOADING = false
  960. })
  961. },
  962. //获取顾问列表
  963. getFreeList() {
  964. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  965. houseId: this.buildingID
  966. }).then(res => {
  967. res.forEach(item => {
  968. item.label = item.name;
  969. item.value = item.accountId
  970. })
  971. res.unshift({
  972. label: '全部',
  973. value: ''
  974. })
  975. this.freeList = res
  976. console.log(this.freeList)
  977. })
  978. },
  979. //获取画像标签
  980. getWordMiningList() {
  981. this.huaxiangList = [];
  982. this.$u.get("/corpus/findSelectedWordMiningTemplate", {
  983. houseId: this.buildingID,
  984. selected: 1
  985. })
  986. .then((res) => {
  987. // console.log(res)
  988. if (res.length) {
  989. res.forEach(item => {
  990. item.isShow = true;
  991. if (item.children.length) {
  992. item.children.forEach(subitem => {
  993. subitem.isShow = false;
  994. })
  995. }
  996. })
  997. }
  998. this.huaxiangList = res;
  999. });
  1000. },
  1001. //选择顾问
  1002. actionSelectCallback(e) {
  1003. console.log(e)
  1004. if (e[0].label == '全部') {
  1005. this.agentIdtext = '接待顾问'
  1006. this.screen.agentId = ''
  1007. } else {
  1008. this.screen.agentId = e[0].value;
  1009. this.agentIdtext = e[0].label;
  1010. }
  1011. },
  1012. //重置
  1013. reset() {
  1014. this.screen = {
  1015. agentId: "",
  1016. visitRecord: [],
  1017. record: [],
  1018. clientStage: "",
  1019. clientStageName: "",
  1020. };
  1021. this.sourceList.map((i) => {
  1022. i.isShow = false;
  1023. });
  1024. this.wajueList.map((i) => {
  1025. i.isShow = false;
  1026. });
  1027. this.wajueLists.forEach(i => {
  1028. i.isShow = false
  1029. })
  1030. this.phaseList.map((i) => {
  1031. i.isShow = false;
  1032. });
  1033. this.jiedaiList.map((i) => {
  1034. i.isShow = false;
  1035. });
  1036. this.xiaojiangList.map((i) => {
  1037. i.isShow = false;
  1038. });
  1039. this.visitList.map((i) => {
  1040. i.isShow = false;
  1041. });
  1042. this.levelList.map((i) => {
  1043. i.isShow = false;
  1044. });
  1045. this.nextPage = 1;
  1046. this.recordList = [];
  1047. this.isRefresh = false;
  1048. this.getMyCustom();
  1049. },
  1050. //重置画像标签选择
  1051. resetHuaXiang() {
  1052. if (this.huaxiangList.length) {
  1053. this.huaxiangList.forEach(item => {
  1054. item.isShow = true;
  1055. if (item.children.length) {
  1056. item.children.forEach(subitem => {
  1057. subitem.isShow = false;
  1058. })
  1059. }
  1060. })
  1061. }
  1062. },
  1063. chooseMores() {
  1064. let change1 = this.templateList.some(item => item.isShow == true)
  1065. let change2 = this.jiedaiList.some(item => item.isShow == true)
  1066. let change3 = this.levelList.some(item => item.isShow == true)
  1067. let change4 = this.sourceList.some(item => item.isShow == true)
  1068. let change5 = this.phaseList.some(item => item.isShow == true)
  1069. let change6 = this.wajueList.some(item => item.isShow == true)
  1070. let change9 = this.wajueLists.some(item => item.isShow == true)
  1071. let change7 = this.xiaojiangList.some(item => item.isShow == true)
  1072. let change8 = this.visitList.some(item => item.isShow == true)
  1073. if (change1 || change2 || change3 || change4 || change5 || change6 || change7 || change8 || change9) {
  1074. return true
  1075. } else {
  1076. return false
  1077. }
  1078. },
  1079. chooseMore() {
  1080. let a = false
  1081. this.huaxiangList.forEach(item => {
  1082. if (item.children.some(so => so.isShow == true)) {
  1083. a = true
  1084. }
  1085. })
  1086. return a
  1087. },
  1088. //筛选确认
  1089. screensure() {
  1090. this.showFilterOption = this.chooseMores()
  1091. this.tagSign = this.chooseMore()
  1092. this.nextPage = 1;
  1093. this.recordList = [];
  1094. this.keywordsIds = []
  1095. this.screenShow = false;
  1096. this.huaxiangShow = false;
  1097. this.isRefresh = false;
  1098. // 画像标签
  1099. this.huaxiangList.forEach(item => {
  1100. if (item.children.length) {
  1101. item.children.forEach(im => {
  1102. if (im.isShow) this.keywordsIds.push(im.id)
  1103. })
  1104. }
  1105. })
  1106. this.getMyCustom();
  1107. },
  1108. goSearch() {
  1109. uni.navigateTo({
  1110. url: '/pages/center/consumer/consumerSearch'
  1111. });
  1112. },
  1113. gotoFollowUp(item) {
  1114. uni.navigateTo({
  1115. url: `/pages/center/consumer/newFollowup/newFollowup?id=${item.id}&level=${item.level}&clientStageName=${item.clientStageName}`
  1116. })
  1117. },
  1118. },
  1119. filters: {
  1120. // 筛选等级展示文字
  1121. levelText(level) {
  1122. let str = '';
  1123. switch (Number(level)) {
  1124. case 1:
  1125. str = "A"
  1126. break;
  1127. case 2:
  1128. str = "B"
  1129. break;
  1130. case 3:
  1131. str = "C"
  1132. break;
  1133. case 4:
  1134. str = "D"
  1135. break;
  1136. default:
  1137. str = ''
  1138. break;
  1139. }
  1140. return str
  1141. },
  1142. // 加密手机
  1143. phoneText(mobile) {
  1144. if (!mobile) return '--'
  1145. if (_this.userInfo.showPhoneStatus == 1) return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  1146. else return mobile
  1147. },
  1148. // 格式化时间
  1149. formatTime(time) {
  1150. if (!time) return
  1151. return time.substring(5, time.length)
  1152. }
  1153. }
  1154. }
  1155. </script>
  1156. <style lang="scss" scoped>
  1157. .box {
  1158. width: 100vw;
  1159. min-height: calc(100vh - var(--window-top));
  1160. background: #F8F8F8;
  1161. display: flex;
  1162. flex-direction: column;
  1163. .top-search {
  1164. display: flex;
  1165. align-items: center;
  1166. justify-content: space-between;
  1167. background: #fff;
  1168. padding-right: 30rpx;
  1169. .filter-icon {
  1170. width: 40rpx;
  1171. height: 40rpx;
  1172. padding: 15rpx;
  1173. }
  1174. .search-box {
  1175. width: 670rpx;
  1176. height: 102rpx;
  1177. background: #ffffff;
  1178. display: flex;
  1179. align-items: center;
  1180. justify-content: center;
  1181. .search {
  1182. width: 94%;
  1183. height: 70rpx;
  1184. display: flex;
  1185. align-items: center;
  1186. background: #f8f8f8;
  1187. border-radius: 33rpx;
  1188. .search-img {
  1189. width: 26rpx;
  1190. height: 30rpx;
  1191. margin-left: 20rpx;
  1192. .search-img1 {
  1193. width: 100%;
  1194. height: 100%;
  1195. margin-top: 2rpx;
  1196. }
  1197. }
  1198. .search-text {
  1199. font-size: 28rpx;
  1200. font-weight: 400;
  1201. color: #999999;
  1202. margin-left: 10rpx;
  1203. }
  1204. }
  1205. .search-screen {
  1206. width: 40rpx;
  1207. height: 40rpx;
  1208. margin-left: 30rpx;
  1209. .search-screen1 {
  1210. width: 100%;
  1211. height: 100%;
  1212. }
  1213. }
  1214. }
  1215. }
  1216. .content {
  1217. flex-grow: 1;
  1218. }
  1219. }
  1220. .timeview {
  1221. height: 90rpx;
  1222. line-height: 90rpx;
  1223. width: 100%;
  1224. text-align: center;
  1225. border-bottom: 1rpx solid #F8F8F8;
  1226. }
  1227. //时间切换的样式
  1228. .boxtittab {
  1229. position: sticky;
  1230. top: var(--window-top);
  1231. z-index: 999;
  1232. width: 100;
  1233. height: 72rpx;
  1234. background: #FFFFFF;
  1235. flex-shrink: 0;
  1236. display: flex;
  1237. align-items: center;
  1238. .tabbox {
  1239. flex: 1;
  1240. height: 100%;
  1241. text-align: center;
  1242. line-height: 72rpx;
  1243. color: #666666;
  1244. font-size: 28rpx;
  1245. overflow: hidden;
  1246. text-overflow: ellipsis;
  1247. display: -webkit-box;
  1248. /* 将对象作为弹性伸缩盒子模型显示 */
  1249. -webkit-line-clamp: 1;
  1250. /* 控制最多显示几行 */
  1251. -webkit-box-orient: vertical;
  1252. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  1253. }
  1254. .activeColor {
  1255. color: #2671E2;
  1256. font-weight: bold;
  1257. }
  1258. }
  1259. .soltishow {
  1260. width: 100%;
  1261. min-height: 40vh;
  1262. .soltishow-item {
  1263. width: 100%;
  1264. height: 80rpx;
  1265. display: flex;
  1266. align-items: center;
  1267. justify-content: center;
  1268. }
  1269. }
  1270. .count {
  1271. width: 100%;
  1272. height: 82rpx;
  1273. line-height: 82rpx;
  1274. display: flex;
  1275. align-items: center;
  1276. justify-content: center;
  1277. background-color: #f8f8f8;
  1278. font-size: 30rpx;
  1279. font-family: PingFangSC-Regular, PingFang SC;
  1280. font-weight: 400;
  1281. color: #333333;
  1282. text {
  1283. color: #E7483C;
  1284. }
  1285. }
  1286. .content {
  1287. .content-tips {
  1288. background: #fff;
  1289. margin-bottom: 20rpx;
  1290. .content-first {
  1291. padding: 19rpx 30rpx;
  1292. display: flex;
  1293. justify-content: space-between;
  1294. align-items: center;
  1295. box-sizing: border-box;
  1296. color: #292929;
  1297. height: 90rpx;
  1298. font-size: 30rpx;
  1299. .left {
  1300. display: flex;
  1301. align-items: center;
  1302. .img {
  1303. width: 48rpx;
  1304. height: 48rpx;
  1305. line-height: 48rpx;
  1306. text-align: center;
  1307. margin-right: 16rpx;
  1308. background: #E6625B;
  1309. border-radius: 6rpx;
  1310. font-size: 28rpx;
  1311. font-family: PingFangSC-Regular, PingFang SC;
  1312. font-weight: 400;
  1313. color: #FFFFFF;
  1314. }
  1315. .A {
  1316. background: #E6625B;
  1317. }
  1318. .B {
  1319. background: #FF981E;
  1320. }
  1321. .C {
  1322. background: #F6BD16;
  1323. }
  1324. .D {
  1325. background: #E6625B;
  1326. }
  1327. .test {
  1328. height: 42rpx;
  1329. font-size: 30rpx;
  1330. font-family: PingFangSC-Medium, PingFang SC;
  1331. font-weight: 500;
  1332. color: #333333;
  1333. line-height: 42rpx;
  1334. margin-right: 16rpx;
  1335. }
  1336. }
  1337. .right {
  1338. display: flex;
  1339. align-items: center;
  1340. color: #2671E2;
  1341. font-size: 30rpx;
  1342. align-items: flex-end;
  1343. .clientStageName {
  1344. font-size: 38rpx;
  1345. font-family: PingFangSC-Regular, PingFang SC;
  1346. font-weight: bold;
  1347. // color: #FF981E;
  1348. height: 48rpx;
  1349. line-height: 48rpx;
  1350. background: #FFFFFF;
  1351. // border-radius: 4rpx;
  1352. // border: 1rpx solid #FF981E;
  1353. box-sizing: border-box;
  1354. }
  1355. .right-img {
  1356. margin: 5rpx 0 0 10rpx;
  1357. width: 14rpx;
  1358. height: 30rpx;
  1359. }
  1360. }
  1361. }
  1362. .content-sec {
  1363. border-top: 1px solid #e0e0e0;
  1364. padding: 0 30rpx;
  1365. position: relative;
  1366. .content-sec-lab {
  1367. margin-top: 28rpx;
  1368. display: flex;
  1369. justify-content: space-between;
  1370. font-size: 30rpx;
  1371. font-weight: 400;
  1372. color: #666666;
  1373. line-height: 42rpx;
  1374. .content-sec-lab1 {
  1375. color: #333333;
  1376. word-break: break-all;
  1377. }
  1378. .content-sec-lab1-min {
  1379. flex-shrink: 0;
  1380. margin-bottom: 20rpx;
  1381. padding: 0 10rpx;
  1382. background: rgba($color: #2671e2, $alpha: 1);
  1383. color: #fff;
  1384. border-radius: 8rpx;
  1385. }
  1386. .content-sec-tips {
  1387. max-width: 160rpx;
  1388. height: 46rpx;
  1389. background: #f2f2f2;
  1390. border-radius: 6rpx;
  1391. text-align: center;
  1392. line-height: 26rpx;
  1393. overflow: hidden;
  1394. text-overflow: ellipsis;
  1395. white-space: nowrap;
  1396. font-size: 26rpx;
  1397. font-weight: 400;
  1398. color: #333333;
  1399. margin-right: 20rpx;
  1400. box-sizing: border-box;
  1401. padding: 10rpx 24rpx;
  1402. }
  1403. }
  1404. .content-sec-num {
  1405. position: absolute;
  1406. width: 200rpx;
  1407. height: 90rpx;
  1408. background: #f4f8fd;
  1409. border-radius: 12rpx;
  1410. font-weight: 400;
  1411. color: #2671e2;
  1412. line-height: 45rpx;
  1413. bottom: 30rpx;
  1414. right: 30rpx;
  1415. text-align: center;
  1416. }
  1417. }
  1418. .content-last {
  1419. display: flex;
  1420. justify-content: flex-end;
  1421. align-items: center;
  1422. padding-bottom: 30rpx;
  1423. .content-last-tab {
  1424. width: 214rpx;
  1425. height: 70rpx;
  1426. line-height: 70rpx;
  1427. background: #FFFFFF;
  1428. border-radius: 8rpx;
  1429. border: 1rpx solid #2671E2;
  1430. box-sizing: border-box;
  1431. font-family: PingFangSC-Regular, PingFang SC;
  1432. font-weight: 400;
  1433. color: #2671E2;
  1434. font-size: 30rpx;
  1435. margin-right: 30rpx;
  1436. display: flex;
  1437. align-items: center;
  1438. justify-content: center;
  1439. image {
  1440. width: 40rpx;
  1441. height: 40rpx;
  1442. margin-right: 12rpx;
  1443. }
  1444. .icon {
  1445. width: 40rpx;
  1446. height: 40rpx;
  1447. margin-right: 12rpx;
  1448. }
  1449. }
  1450. }
  1451. }
  1452. }
  1453. // 这是弹出层
  1454. .screen {
  1455. .screen-record {
  1456. overflow: hidden;
  1457. padding: 0 30rpx;
  1458. box-sizing: border-box;
  1459. border-bottom: 1px solid #e0e0e0;
  1460. .screen-record-text {
  1461. font-weight: 600;
  1462. padding: 30rpx 0;
  1463. font-size: 30rpx;
  1464. color: #333333;
  1465. line-height: 30rpx;
  1466. display: flex;
  1467. align-items: center;
  1468. justify-content: space-between;
  1469. .arrow {
  1470. width: 30rpx;
  1471. height: 14rpx;
  1472. }
  1473. }
  1474. .screen-record-tab {
  1475. margin-top: 30rpx;
  1476. padding-bottom: 10rpx;
  1477. display: flex;
  1478. flex-wrap: wrap;
  1479. .screen-record-item {
  1480. min-width: 150rpx;
  1481. padding: 0 14rpx;
  1482. height: 60rpx;
  1483. border-radius: 8rpx;
  1484. text-align: center;
  1485. line-height: 60rpx;
  1486. margin: 0 22rpx 22rpx 0;
  1487. &:nth-child(4n) {
  1488. margin-right: 0;
  1489. }
  1490. }
  1491. .screen-record-chose {
  1492. background: #f1f6fd;
  1493. color: #2671e2;
  1494. }
  1495. .screen-record-nochose {
  1496. background: #f7f8fa;
  1497. color: #333;
  1498. }
  1499. }
  1500. }
  1501. .screen-foot {
  1502. width: 100%;
  1503. height: 78rpx;
  1504. display: flex;
  1505. margin: 30rpx 30rpx 0;
  1506. .screen-foot-reset {
  1507. width: 176rpx;
  1508. height: 78rpx;
  1509. line-height: 78rpx;
  1510. background: #FFFFFF;
  1511. border-radius: 8rpx;
  1512. border: 1px solid #2671E2;
  1513. margin-right: 30rpx;
  1514. font-size: 30rpx;
  1515. font-family: PingFangSC-Regular, PingFang SC;
  1516. font-weight: 400;
  1517. color: #2671E2;
  1518. text-align: center;
  1519. }
  1520. .screen-foot-sure {
  1521. width: 484rpx;
  1522. height: 78rpx;
  1523. line-height: 78rpx;
  1524. background: #2671E2;
  1525. border: 1px solid #2671E2;
  1526. border-radius: 8rpx;
  1527. font-size: 30rpx;
  1528. font-family: PingFangSC-Regular, PingFang SC;
  1529. font-weight: 400;
  1530. color: #FFFFFF;
  1531. text-align: center;
  1532. }
  1533. }
  1534. }
  1535. </style>