AI销管
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

1530 linhas
38 KiB

  1. <template>
  2. <view class="box">
  3. <view class="content">
  4. <view class="content-tips">
  5. <view class="content-first">
  6. <view class="left">
  7. <view class="test">
  8. {{customerInfo.name || '--'}}
  9. <view v-if="customerInfo.level.length==0"></view>
  10. <view class="img A" v-else-if="customerInfo.level==1">A</view>
  11. <view class="img B" v-else-if="customerInfo.level==2">B</view>
  12. <view class="img C" v-else-if="customerInfo.level==3">C</view>
  13. <view class="img D" v-else-if="customerInfo.level==4">D</view>
  14. <view v-if="customerInfo.clientStageName" class="clientStageName">{{ customerInfo.clientStageName }}</view>
  15. </view>
  16. <view class="edit" @click="goedit()" v-if="isHavePermission">
  17. <image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="content-sec">
  22. <view class="content-sec-lab">
  23. 手机号码:<view class="content-sec-lab1">
  24. {{customerInfo.phone | phoneText}}
  25. </view>
  26. </view>
  27. <view class="content-sec-lab">
  28. 顾问姓名:<view class="content-sec-lab1">{{customerInfo.agentName||'--'}}</view>
  29. </view>
  30. <view class="content-sec-lab">
  31. <view class="u-flex" style="flex:1">
  32. 挖掘执行:<view class="content-sec-lab1">{{customerInfo.wordFraction||0}}%</view>
  33. </view>
  34. <view class="u-flex" style="flex:1">
  35. 挖掘成功:<view class="content-sec-lab1">{{customerInfo.wordFinishFraction||0}}%</view>
  36. </view>
  37. </view>
  38. <view class="content-sec-lab">
  39. 添加时间:<view class="content-sec-lab1">{{customerInfo.createTime}}</view>
  40. </view>
  41. <view class="content-sec-num">
  42. <view>到访{{customerInfo.visitRecord || '--'}}次</view>
  43. <view>
  44. {{customerInfo.mm || '0'}}min/{{customerInfo.fraction || '0'}}%
  45. </view>
  46. </view>
  47. </view>
  48. <view class="content-last">
  49. <view class="content-last-con">
  50. 备注:{{customerInfo.remarks ? customerInfo.remarks : "暂无"}}
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="tabchange">
  56. <view class="tab">
  57. <view class="tabbox">
  58. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">接待记录</view>
  59. </view>
  60. <view class="tabbox">
  61. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">跟进记录</view>
  62. </view>
  63. <view class="tabbox">
  64. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">销讲执行率</view>
  65. </view>
  66. <view class="tabbox">
  67. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">挖掘执行率</view>
  68. </view>
  69. </view>
  70. <!-- 接待记录 -->
  71. <view class="tabactive1" v-if="activeTotal==0" style="min-height: 800rpx;">
  72. <view v-if="Thevisitingrecords.length==0"
  73. style="width: 100%;height: 100%;display: flex;align-items: center;">
  74. <view style="width: 100%;padding-top: 60rpx;">
  75. <view style="width: 100%;text-align: center;">
  76. <image style="width: 220rpx;height: 200rpx;"
  77. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  78. </view>
  79. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  80. </view>
  81. </view>
  82. <view v-if="Thevisitingrecords.length!=0" class="content-tips"
  83. v-for="(item,index) in Thevisitingrecords" :key="index" @click="tapThevisiting(item)">
  84. <view class="content-first">
  85. <view class="left">
  86. <view class="name">{{item.agentName || '--'}}</view>
  87. <view class="status" v-if="item.replaceReception==1">代接待</view>
  88. </view>
  89. </view>
  90. <view class="content-sec">
  91. <view class="left">
  92. <view class="cus">客户:{{item.name || ''}} |</view>
  93. <view class="arriveNum">{{item.visitRecord==1?'首':item.visitRecord || '--'}}次到访</view>
  94. </view>
  95. <view class="right">{{item.fraction || '0'}}%</view>
  96. </view>
  97. <view class="content-last">{{item.createTime}} | {{item.mm || '--'}}min</view>
  98. </view>
  99. </view>
  100. <!-- 跟进记录 -->
  101. <view class="tabactive2" v-if="activeTotal==1" style="min-height: 600rpx;">
  102. <view v-if="fllowList.length==0"
  103. style="width: 100%;height:600rpx;display: flex;align-items: center;background-color: #FFFFFF;">
  104. <view style="width: 100%;padding-top: 60rpx;">
  105. <view style="width: 100%;text-align: center;">
  106. <image style="width: 220rpx;height: 200rpx;"
  107. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  108. </view>
  109. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  110. </view>
  111. </view>
  112. <view v-if="fllowList.length!=0" class="tab2-tips" v-for="(item,index) in fllowList" :key="index">
  113. <view class="tab2-first">
  114. <view class="tab2-first-1">
  115. <view class="tab2-first-left">
  116. <view class="img">{{item.agentName.slice(0,1) || '--'}}</view>
  117. <view class="name">{{item.agentName || '||'}}</view>
  118. <view v-if="item.clientStageName" class="clientStageName">{{ item.clientStageName }}</view>
  119. </view>
  120. <view class="tab2-first-right">{{item.createTime}}</view>
  121. </view>
  122. <view class="tab2-first-foot">跟进内容:{{item.remarks || '暂无'}}</view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 销讲执行率 -->
  127. <view class="ratecenter" v-if="activeTotal==2">
  128. <view class="ratetetle">执行总览</view>
  129. <view class="rateyuanbox">
  130. <view class="rateyuanboxzuo">
  131. <view class="boxzuoview">{{customerInfo.visitRecord || '--'}}次</view>
  132. <view class="ratetetle-desc">接待次数</view>
  133. </view>
  134. <view class="rateyuanboxyou">
  135. <view class="boxzuoview" style="width: 100%;display: flex;justify-content: center;">
  136. <u-circle-progress active-color="#07B79D" width='108' :percent="customerInfo.fraction">
  137. <view style="text-align: center;color: #07B79D;">{{customerInfo.fraction}}%</view>
  138. </u-circle-progress>
  139. </view>
  140. <view class="ratetetle-desc">销讲执行率</view>
  141. </view>
  142. <view class="rateyuanboxzuo">
  143. <view class="boxzuoview">{{customerInfo.mm}}min</view>
  144. <view class="ratetetle-desc">接待时长</view>
  145. </view>
  146. </view>
  147. <view class="middle-title">
  148. <view class="item-title1">指标</view>
  149. <view class="item-title">执行率</view>
  150. </view>
  151. <view v-if="ratelist.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  152. <view style="width: 100%;padding-top: 60rpx;">
  153. <view style="width: 100%;text-align: center;">
  154. <image style="width: 220rpx;height: 200rpx;"
  155. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  156. </view>
  157. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  158. </view>
  159. </view>
  160. <view class="Level-box" v-if="ratelist.length!=0" v-for="(item,index) in ratelist" :key="index">
  161. <view class="Level1che" @click="changeshow(item,1)">
  162. <view class="title1">{{item.name}}</view>
  163. <view class="leve1-jindu">
  164. <view class="jindutiao">
  165. <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  166. <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  167. </view>
  168. </view>
  169. <view class="jiantobox">
  170. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  171. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  172. </view>
  173. </view>
  174. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  175. <view class="Level2che" @click="changeshow2(subitem,1)">
  176. <view class="title1">{{subitem.name}}</view>
  177. <view class="leve1-jindu">
  178. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  179. <view class="zhixing2" v-else>未执行</view>
  180. </view>
  181. <view class="jiantobox">
  182. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
  183. mode="" />
  184. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  185. </view>
  186. </view>
  187. <view class="hsnrtest" v-if="subitem.show">话术内容</view>
  188. <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show"
  189. v-for="(che,inc) in subitem.children" :key='inc'>
  190. <view class="title1">{{inc+1}}、{{che.name}}</view>
  191. <view class="jiantobox">
  192. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
  193. mode="" />
  194. <image v-else class="arrow" src="/static/images/no-checked.png"
  195. mode="" />
  196. </view>
  197. </view>
  198. <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
  199. </view>
  200. </view>
  201. </view>
  202. <!-- 需求挖掘执行率 -->
  203. <view class="xuqiu" v-if="activeTotal==3">
  204. <!-- 暂无数据 -->
  205. <view v-if="KeyWordsfractionList.length==0"
  206. style="width: 100%;height: 100%;display: flex;align-items: center;">
  207. <view style="width: 100%;padding-top: 60rpx;background: #fff;">
  208. <view style="width: 100%;text-align: center;">
  209. <image style="width: 220rpx;height: 200rpx;"
  210. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  211. </view>
  212. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  213. </view>
  214. </view>
  215. <!-- 需求挖掘执行率 -->
  216. <view v-if="KeyWordsfractionList.length">
  217. <view class="top-box">
  218. <view style="width:50%;text-align:center">挖掘执行:{{customerInfo.wordFraction||0}}%</view>
  219. <view style="width:50%;text-align:center">挖掘成功:{{percent||0}}%</view>
  220. </view>
  221. <view style="
  222. width: 100%;
  223. height: 80rpx;
  224. border-bottom: 1rpx solid #e0e0e0;
  225. display: flex;
  226. align-items: center;
  227. background: #fff;
  228. ">
  229. <view style="
  230. flex: 1;
  231. font-size: 28rpx;
  232. color: #333333;
  233. font-weight: 600;
  234. text-indent: 50rpx;
  235. ">指标</view>
  236. <view style="
  237. flex: 1;
  238. font-size: 28rpx;
  239. color: #333333;
  240. font-weight: 600;
  241. text-indent: 70rpx;
  242. ">执行率</view>
  243. <view style="
  244. flex: 1;
  245. font-size: 28rpx;
  246. color: #333333;
  247. font-weight: 600;
  248. text-indent: 70rpx;
  249. ">匹配标签</view>
  250. <view style="flex: 0 0 30rpx;"></view>
  251. </view>
  252. <!-- 暂无数据 -->
  253. <view v-if="KeyWordsfractionList.length == 0"
  254. style="width: 100%; height: 100%; display: flex; align-items: center">
  255. <view style="width: 100%; padding-top: 60rpx;background:#fff;">
  256. <view style="width: 100%; text-align: center">
  257. <image style="width: 220rpx; height: 200rpx"
  258. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  259. </view>
  260. <view style="
  261. text-align: center;
  262. width: 100%;
  263. margin-top: 20rpx;
  264. color: #999999;
  265. ">暂无数据</view>
  266. </view>
  267. </view>
  268. <!-- 挖掘执行话术展示 -->
  269. <view class="Level-box" v-else v-for="(item, index) in KeyWordsfractionList" :key="index">
  270. <view class="Level1che" @click="changeshowlevel1(item, 1)">
  271. <view class="title1" style="flex: 1">{{ item.name }}</view>
  272. <view class="Level1-middle" style="flex: 2; display: flex">
  273. <view class="item" style="flex: 1; text-align: center">执行{{ item.fraction || 0 }}%
  274. </view>
  275. <view class="item" style="flex:1;text-align:center;color:#2671E2"
  276. v-if="item.keywordsList&&item.keywordsList.length">已匹配({{
  277. item.keywordsList.length
  278. }})</view>
  279. <view class="item" v-else style="flex:1;text-align:center;">未匹配</view>
  280. </view>
  281. <view class="jiantobox">
  282. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png"
  283. mode="" />
  284. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  285. </view>
  286. </view>
  287. <!-- 话术在一级下 -->
  288. <view v-if="item.children&&item.children.length==0">
  289. <view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
  290. <view class="hsnrtest" style="font-size:30rpx;color: #333;line-height: 42rpx;">
  291. 客户标签:{{ getKeywordsList(item.keywordsList) }}</view>
  292. <view class="hsnrtest">话术内容:</view>
  293. <view v-if="item.modelList.length==0">暂无话术</view>
  294. <view class="Level3che" v-for="(che,inc) in item.modelList" :key='inc'>
  295. <view class="title1" @click="clickWajue(che)"
  296. :style="che.isAskQuestions==2?'color:#FF8C13':che.isAskQuestions==0?'':'color: #666'">
  297. {{inc+1}}.{{che.showFormatExpression}}
  298. </view>
  299. <view class="jiantobox">
  300. <!-- 0本次选中 1未选中 2上次选中 -->
  301. <image v-if="che.isAskQuestions==0" class="arrow"
  302. src="/static/images/rate-checked.png" mode="" />
  303. <image v-else-if="che.isAskQuestions==2" class="arrow"
  304. src="/static/images/checked-yellow.png" mode="" />
  305. <image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
  306. </view>
  307. </view>
  308. </view>
  309. </view>
  310. <!-- 话术在二级下 -->
  311. <view v-if="item.children&&item.children.length">
  312. <view class="hhhbox" v-if="item.show" v-for="(subitem, i) in item.children" :key="i">
  313. <view class="Level2che" @click="changeshow2(subitem, 1)">
  314. <view class="title1 u-line-1">{{ subitem.name }}</view>
  315. <view class="leve1-jindu">
  316. <view class="zhixing" v-if="subitem.isAskQuestions == 0">已执行</view>
  317. <view class="zhixing2" v-else>未执行</view>
  318. </view>
  319. <view class="leve1-jindu">
  320. <view class="zhixing" v-if="subitem.selected == 0">已匹配</view>
  321. <view class="zhixing2" v-else>未匹配</view>
  322. </view>
  323. <view class="jiantobox">
  324. <image v-if="!subitem.show" class="arrow rotatearrow"
  325. src="/static/images/down.png" mode="" />
  326. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  327. </view>
  328. </view>
  329. <view v-if="subitem.show" style="padding: 30rpx 0">
  330. <view class="hsnrtest" style="font-size: 30rpx;color: #333">
  331. 客户标签:{{ getKeywordsList(subitem.keywordsList) }}</view>
  332. <view class="hsnrtest">话术内容:</view>
  333. <view v-if="subitem.modelList.length==0">暂无话术</view>
  334. <view class="Level3che" v-for="(che, inc) in subitem.modelList" :key="inc">
  335. <view class="title1" @click="clickWajue(che)" :style="
  336. che.isAskQuestions == 2
  337. ? 'color:#FF8C13'
  338. : che.isAskQuestions == 0
  339. ? ''
  340. : 'color: #666'
  341. ">{{ inc + 1 }}.{{
  342. che.showFormatExpression
  343. }}</view>
  344. <view class="jiantobox">
  345. <image v-if="che.isAskQuestions == 0" class="arrow"
  346. src="/static/images/rate-checked.png" mode="" />
  347. <image v-else-if="che.isAskQuestions == 2" class="arrow"
  348. src="/static/images/checked-yellow.png" mode="" />
  349. <image v-else class="arrow" src="/static/images/rate-nocheck.png"
  350. mode="" />
  351. </view>
  352. </view>
  353. </view>
  354. </view>
  355. </view>
  356. </view>
  357. </view>
  358. </view>
  359. </view>
  360. <view class="pon-foot" v-if="buttonisshow">
  361. <!-- <view class="foot-tab" @click="goRemind">添加提醒</view>
  362. <view class="foot-tab">拨打电话</view> -->
  363. <view class="foot-tab" @click="followRecordAdd">写跟进</view>
  364. </view>
  365. <!-- closeable -->
  366. <u-popup v-model="tipshow" mode="center" width="500rpx" height="500rpx" closeable>
  367. <scroll-view scroll-y="true" style="height: 440rpx;">
  368. <view style="margin-top: 60rpx; display: flex; flex-wrap: wrap; padding-left: 20rpx;">
  369. <view class="upon-sec-tips" v-for="(item,index) in customerInfo.demand.cusSemanticWordsList"
  370. :key="index">
  371. {{item.name}}
  372. </view>
  373. </view>
  374. </scroll-view>
  375. </u-popup>
  376. <!-- 加载组件 -->
  377. <u-loadings v-model="LOADING"></u-loadings>
  378. </view>
  379. </template>
  380. <script>
  381. let _this;
  382. export default {
  383. data() {
  384. return {
  385. KeyWordsfractionList: [],
  386. activeTotal: 0,
  387. customerId: '',
  388. tipshow: false,
  389. customerInfo: {
  390. name: '',
  391. createTime: '',
  392. agentName: ''
  393. },
  394. Thevisitingrecords: [],
  395. totalRate: [],
  396. ratelist: [],
  397. fllowList: [],
  398. userInfo: {},
  399. buttonisshow: false,
  400. isHavePermission: false
  401. }
  402. },
  403. onLoad(options) {
  404. this.LOADING = true
  405. this.customerId = options.id;
  406. _this = this
  407. },
  408. onShow() {
  409. this.$store.commit('stopAduio')
  410. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  411. console.log(this.userInfo.showPhoneStatus)
  412. if (this.userInfo.dataCode == 6) {
  413. this.buttonisshow = true;
  414. } else {
  415. this.buttonisshow = false
  416. }
  417. this.getCustomerInfo()
  418. this.tabtimetap(0)
  419. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  420. if (newmenulist.khgl_bj == true || newmenulist.khgl_gj == true) {
  421. this.isHavePermission = true
  422. }
  423. },
  424. methods: {
  425. clickWajue(item) {
  426. if (item.isAskQuestions == 0) {
  427. uni.navigateTo({
  428. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item
  429. .showFormatExpression +
  430. "&skpl=" + "2" + '&UpDateEvent='
  431. })
  432. }
  433. },
  434. // 计算挖掘执行的完成率
  435. getPercent() {
  436. let countArr = this.KeyWordsfractionList.filter(item => item.selected == 0)
  437. // console.log(countArr)
  438. this.percent = (countArr.length / this.KeyWordsfractionList.length) * 100
  439. this.percent = this.percent.toFixed(0)
  440. },
  441. //挖掘率话术客户标签展示
  442. getKeywordsList(list) {
  443. let keywords = [];
  444. if (list && list.length) {
  445. keywords = list.map((item) => item.name);
  446. } else {
  447. return "--";
  448. }
  449. return keywords.join(",");
  450. },
  451. changeshowlevel1(item, type) {
  452. console.log(item)
  453. item.show = !item.show
  454. },
  455. // 客户详情需求挖掘话术
  456. getfindKeyWordsBycusId() {
  457. this.$u
  458. .get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId)
  459. .then((res) => {
  460. // console.log(res)
  461. if (res.length) {
  462. res.forEach((item, index) => {
  463. item.show = false;
  464. if (index == 0) {
  465. item.show = true;
  466. }
  467. if (item.children && item.children.length) {
  468. item.children.forEach((obj, i) => {
  469. obj.show = false;
  470. if (i == 0 && index == 0) {
  471. obj.show = true;
  472. }
  473. });
  474. }
  475. });
  476. this.KeyWordsfractionList = res;
  477. this.getPercent()
  478. } else {
  479. this.KeyWordsfractionList = [];
  480. }
  481. });
  482. },
  483. // 获取到访记录
  484. getVisitList() {
  485. this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId).then(res => {
  486. this.Thevisitingrecords = res
  487. })
  488. },
  489. // 获取客户信息
  490. getCustomerInfo() {
  491. const that = this;
  492. this.$u.get("/customer/findById", {
  493. id: this.customerId
  494. }).then(res => {
  495. this.LOADING = false
  496. if (res.fraction == null) {
  497. res.fraction = '0';
  498. }
  499. this.customerInfo = res;
  500. }).catch(e => {
  501. this.LOADING = false
  502. })
  503. },
  504. tabtimetap(idx) {
  505. this.activeTotal = idx
  506. if (idx == 0) {
  507. this.getVisitList()
  508. } else if (idx == 1) {
  509. this.getFollowList()
  510. } else if(idx == 2){
  511. this.getRatelist()
  512. }else{ // 需求挖掘率
  513. this.getfindKeyWordsBycusId()
  514. }
  515. },
  516. tapThevisiting(item) {
  517. uni.showLoading({
  518. title: '加载中',
  519. mask: true
  520. });
  521. if (item.yon != 0) {
  522. setTimeout(function() {
  523. uni.hideLoading();
  524. }, 2000);
  525. uni.showToast({
  526. icon: 'none',
  527. title: '暂无录音',
  528. duration: 2000
  529. });
  530. return
  531. } else {
  532. const parames = {
  533. pageNum: 1,
  534. pageSize: 100,
  535. query: {
  536. customerId: item.id,
  537. }
  538. }
  539. var item = {
  540. bg: 0,
  541. customerId: item.id,
  542. id: ''
  543. }
  544. uni.setStorageSync("entrance", 1); //写入缓存
  545. uni.setStorageSync("searchobj", item); //写入缓存
  546. this.$u.post("/corpus/findByPage", parames).then(res => {
  547. setTimeout(function() {
  548. uni.hideLoading();
  549. }, 2000);
  550. if (res == null) {
  551. uni.showToast({
  552. icon: "none",
  553. title: "暂无音频"
  554. })
  555. return
  556. }
  557. if (res[0].merge == 0) {
  558. let newobj = res[0];
  559. uni.navigateTo({
  560. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
  561. })
  562. } else {
  563. let newobj = res[0];
  564. uni.navigateTo({
  565. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  566. })
  567. }
  568. })
  569. }
  570. },
  571. // 获取跟进记录
  572. getFollowList() {
  573. this.fllowList = [];
  574. this.$u.post("/customer/getCusStage", {
  575. customerId: this.customerId
  576. }).then(res => {
  577. res.forEach(item => {
  578. item.agentName = this.customerInfo.agentName
  579. })
  580. this.fllowList = res;
  581. })
  582. },
  583. // 新增跟进
  584. followRecordAdd() {
  585. uni.navigateTo({
  586. url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}&level=${this.customerInfo.level}&clientStageName=${this.customerInfo.clientStageName}`
  587. })
  588. },
  589. // 去编辑
  590. goedit() {
  591. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  592. if (newmenulist.khgl_bj == true || newmenulist.khgl_gj) {
  593. uni.navigateTo({
  594. url: `/pages/center/consumer/edit?id=${this.customerId}`
  595. })
  596. }
  597. },
  598. // 去添加提醒
  599. goRemind() {
  600. uni.navigateTo({
  601. url: `/pages/center/consumer/remind?str=${this.customerInfo.name+'/'+this.customerInfo.phone}&customerId=${this.customerId}`
  602. })
  603. },
  604. //评分点击
  605. clickaudeopal(item) {
  606. if (item.selected == 0) {
  607. uni.navigateTo({
  608. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  609. .marketingId + "&type=0" + '&from=consumerDetail'
  610. })
  611. }
  612. },
  613. changeshow(item, type) {
  614. item.show = !item.show
  615. },
  616. changeshow2(item, type) {
  617. item.show = !item.show
  618. },
  619. // 获取评分
  620. getRatelist() {
  621. this.$u.get("/customer/findzkMByCusId", {
  622. cusId: this.customerId
  623. }).then(res => {
  624. if (res.length) {
  625. let level1 = []
  626. res.forEach(item => {
  627. if (item.pid == 0) {
  628. level1.push({
  629. id: item.marketingId,
  630. rate: item.fraction,
  631. name: item.name,
  632. sort: item.sort,
  633. show: false,
  634. ratepercent: 0,
  635. children: []
  636. })
  637. }
  638. })
  639. // this.totalRate = level2rate;
  640. res.forEach(subitem => {
  641. let subitempid = subitem.pid
  642. level1.forEach(item => {
  643. if (subitempid == item.id) {
  644. if (subitem.selected == 0) {
  645. item.ratepercent += subitem.fraction
  646. }
  647. item.children.push({
  648. id: subitem.id,
  649. rate: subitem.fraction,
  650. selected: subitem.selected,
  651. name: subitem.name,
  652. show: false,
  653. marketingId: subitem.marketingId,
  654. children: []
  655. })
  656. }
  657. })
  658. })
  659. res.forEach(subitem => {
  660. let subitempid = subitem.pid
  661. level1.forEach(chen => {
  662. chen.children.forEach(zxc => {
  663. if (subitempid == zxc.marketingId) {
  664. zxc.children.push({
  665. id: subitem.id,
  666. rate: subitem.fraction,
  667. selected: subitem.selected,
  668. name: subitem.name,
  669. marketingId: subitem.marketingId,
  670. })
  671. }
  672. })
  673. })
  674. })
  675. level1[0].show = true;
  676. level1[0].children[0].show = true;
  677. this.ratelist = level1
  678. }
  679. })
  680. },
  681. },
  682. filters: {
  683. // 加密手机
  684. phoneText(mobile) {
  685. if (!mobile) return '--'
  686. if (_this.userInfo.showPhoneStatus == 1) return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  687. else return mobile
  688. },
  689. }
  690. }
  691. </script>
  692. <style lang="scss" scoped>
  693. .rotatearrow {
  694. transform: rotate(270deg);
  695. }
  696. // 评分
  697. .rate-box {
  698. padding: 10rpx 20rpx;
  699. background-color: #FFFFFF;
  700. .date {
  701. width: 300rpx;
  702. height: 33rpx;
  703. font-size: 24rpx;
  704. font-weight: 400;
  705. color: #333333;
  706. line-height: 33rpx;
  707. letter-spacing: 1rpx;
  708. margin-bottom: 8rpx;
  709. }
  710. .title {
  711. width: 100%;
  712. height: 42rpx;
  713. font-size: 30rpx;
  714. font-weight: 500;
  715. color: #333333;
  716. line-height: 42rpx;
  717. letter-spacing: 2rpx;
  718. margin-bottom: 20rpx;
  719. }
  720. .level1 {
  721. display: flex;
  722. align-items: center;
  723. .level-name {
  724. width: 104rpx;
  725. height: 33rpx;
  726. font-size: 24rpx;
  727. font-weight: 500;
  728. color: #333333;
  729. line-height: 33rpx;
  730. letter-spacing: 1rpx;
  731. margin-right: 10rpx;
  732. }
  733. .level-progress {
  734. flex: 1;
  735. border-radius: 11rpx;
  736. height: 21rpx;
  737. background-color: #BEE4FF;
  738. position: relative;
  739. .color {
  740. width: 0;
  741. position: absolute;
  742. top: 0;
  743. left: 0;
  744. height: 21rpx;
  745. border-radius: 11rpx 0 0 11rpx;
  746. background-color: #008EF2;
  747. }
  748. }
  749. .level-rate {
  750. width: 65rpx;
  751. height: 33rpx;
  752. font-size: 24rpx;
  753. font-weight: 500;
  754. color: #333333;
  755. line-height: 33rpx;
  756. letter-spacing: 1rpx;
  757. margin: 0 20rpx 0 15rpx;
  758. }
  759. .arrow {
  760. width: 37rpx;
  761. height: 21rpx;
  762. padding: 5rpx 20rpx;
  763. }
  764. .rotatearrow {
  765. transform: rotate(270deg);
  766. }
  767. }
  768. .level1-subbox {
  769. display: flex;
  770. margin-top: 20rpx;
  771. flex-wrap: wrap;
  772. .sub-name {
  773. width: 50%;
  774. display: flex;
  775. margin-bottom: 18rpx;
  776. .subitem-name {
  777. width: 104rpx;
  778. height: 33rpx;
  779. font-size: 24rpx;
  780. font-weight: 400;
  781. color: #999999;
  782. line-height: 33rpx;
  783. letter-spacing: 1rpx;
  784. margin-right: 12rpx;
  785. }
  786. .checkimg {
  787. width: 27rpx;
  788. height: 27rpx;
  789. }
  790. }
  791. }
  792. }
  793. .Level-box {
  794. padding-bottom: 2rpx;
  795. border-bottom: 1rpx solid #E0E0E0;
  796. .hhhbox {
  797. width: 100%;
  798. padding: 0 30rpx;
  799. background: #f8f8f8;
  800. .hsnrtest {
  801. height: 36rpx;
  802. font-size: 26rpx;
  803. font-weight: 400;
  804. color: #666666;
  805. line-height: 36rpx;
  806. }
  807. .Level3che {
  808. width: 100%;
  809. height: 28rpx;
  810. display: flex;
  811. line-height: 28rpx;
  812. align-items: center;
  813. margin-top: 24rpx;
  814. .title1 {
  815. flex: 1;
  816. font-size: 28rpx;
  817. color: #2671E2;
  818. font-weight: 400;
  819. }
  820. .jiantobox {
  821. width: 30rpx;
  822. height: 30rpx;
  823. display: flex;
  824. align-items: center;
  825. .arrow {
  826. width: 32rpx;
  827. height: 32rpx;
  828. }
  829. }
  830. }
  831. }
  832. .Level2che {
  833. width: 100%;
  834. height: 88rpx;
  835. display: flex;
  836. line-height: 88rpx;
  837. align-items: center;
  838. .title1 {
  839. flex: 2;
  840. font-size: 28rpx;
  841. color: #333333;
  842. font-weight: 500;
  843. }
  844. .leve1-jindu {
  845. flex: 3;
  846. display: flex;
  847. justify-content: center;
  848. align-items: center;
  849. .zhixing {
  850. width: 116rpx;
  851. height: 48rpx;
  852. line-height: 48rpx;
  853. background: #2671E2;
  854. border-radius: 4rpx;
  855. font-size: 28rpx;
  856. text-align: center;
  857. color: #FFFFFF;
  858. }
  859. .zhixing2 {
  860. width: 116rpx;
  861. height: 48rpx;
  862. line-height: 48rpx;
  863. border-radius: 4rpx;
  864. font-size: 28rpx;
  865. text-align: center;
  866. color: #FFFFFF;
  867. background: #D8D8D8;
  868. }
  869. }
  870. .jiantobox {
  871. width: 30rpx;
  872. height: 30rpx;
  873. display: flex;
  874. align-items: center;
  875. .arrow {
  876. width: 30rpx;
  877. height: 18rpx;
  878. }
  879. }
  880. }
  881. .Level1che {
  882. width: 100%;
  883. height: 98rpx;
  884. background: #fff;
  885. display: flex;
  886. line-height: 98rpx;
  887. align-items: center;
  888. padding:0 30rpx;
  889. .title1 {
  890. flex: 2;
  891. font-size: 28rpx;
  892. color: #333333;
  893. font-weight: 500;
  894. }
  895. .leve1-jindu {
  896. flex: 3;
  897. .jindutiao {
  898. width: 96%;
  899. height: 28rpx;
  900. line-height: 28rpx;
  901. border-radius: 14rpx;
  902. position: relative;
  903. background: rgba(7, 183, 157, 0.2);
  904. .huanxing {
  905. height: 100%;
  906. background: #07B79D;
  907. border-radius: 14rpx;
  908. }
  909. .text {
  910. position: absolute;
  911. top: 0rpx;
  912. right: 0rpx;
  913. font-size: 28rpx;
  914. font-weight: 400;
  915. color: #333333;
  916. }
  917. }
  918. }
  919. .jiantobox {
  920. width: 30rpx;
  921. height: 30rpx;
  922. display: flex;
  923. align-items: center;
  924. .arrow {
  925. width: 30rpx;
  926. height: 18rpx;
  927. }
  928. }
  929. }
  930. }
  931. .ratecenter {
  932. background-color: #FFFFFF;
  933. padding-bottom: 30rpx;
  934. width: 100%;
  935. .ratetetle {
  936. height: 42rpx;
  937. font-size: 30rpx;
  938. font-family: PingFangSC-Medium, PingFang SC;
  939. font-weight: 500;
  940. color: #333333;
  941. line-height: 42rpx;
  942. padding: 24rpx 30rpx;
  943. }
  944. .rateyuanbox {
  945. width: 100%;
  946. height: 210rpx;
  947. padding-bottom: 30rpx;
  948. display: flex;
  949. padding-left: 80rpx;
  950. padding-right: 80rpx;
  951. .rateyuanboxzuo {
  952. width: 30%;
  953. height: 100%;
  954. }
  955. .rateyuanboxyou {
  956. width: 40%;
  957. height: 100%;
  958. }
  959. .boxzuoview {
  960. width: 100%;
  961. height: 140rpx;
  962. line-height: 140rpx;
  963. text-align: center;
  964. }
  965. .ratetetle-desc{
  966. color: #666;
  967. font-size:30rpx;
  968. font-weight: 400;
  969. text-align: center;
  970. }
  971. }
  972. .middle-title{
  973. height: 78rpx;
  974. line-height: 78rpx;
  975. display: flex;
  976. // justify-content: space-around;
  977. align-items: center;
  978. background: #F4F8FD;
  979. font-size: 30rpx;
  980. font-family: PingFangSC-Medium, PingFang SC;
  981. font-weight: 500;
  982. color: #333333;
  983. .item-title1 {
  984. width: 450rpx;
  985. padding-left: 30rpx;
  986. }
  987. .item-title {
  988. flex: 1;
  989. }
  990. }
  991. }
  992. .box {
  993. width: 100%;
  994. height: 100%;
  995. background: #F8F8F8;
  996. }
  997. .tab {
  998. height: 88rpx;
  999. border-bottom: 1px solid #E0E0E0;
  1000. background: #FFFFFF;
  1001. display: flex;
  1002. align-items: center;
  1003. .tabbox {
  1004. flex: 1;
  1005. height: 100%;
  1006. text-align: center;
  1007. line-height: 88rpx;
  1008. color: #666666;
  1009. font-size: 30rpx;
  1010. display: flex;
  1011. justify-content: center;
  1012. .activecllasscet {
  1013. border-bottom: 6rpx solid #2671E2;
  1014. color: #2671E2;
  1015. font-weight: 600;
  1016. }
  1017. }
  1018. }
  1019. .content {
  1020. overflow: hidden;
  1021. border-top: 1rpx solid #E0E0E0;
  1022. .content-tips {
  1023. background: #fff;
  1024. margin-bottom: 20rpx;
  1025. overflow: hidden;
  1026. .content-first {
  1027. padding: 19rpx 30rpx;
  1028. display: flex;
  1029. justify-content: space-between;
  1030. box-sizing: border-box;
  1031. font-weight: 400;
  1032. color: #292929;
  1033. height: 90rpx;
  1034. font-size: 30rpx;
  1035. line-height: 30rpx;
  1036. .left {
  1037. flex-grow: 1;
  1038. display: flex;
  1039. align-items: center;
  1040. justify-content: space-between;
  1041. .img {
  1042. width: 48rpx;
  1043. height: 48rpx;
  1044. line-height: 48rpx;
  1045. text-align: center;
  1046. margin-left: 16rpx;
  1047. border-radius: 6rpx;
  1048. font-size: 28rpx;
  1049. font-family: PingFangSC-Regular, PingFang SC;
  1050. font-weight: 400;
  1051. color: #FFFFFF;
  1052. }
  1053. .test {
  1054. height: 48rpx;
  1055. font-size: 30rpx;
  1056. font-family: PingFangSC-Medium, PingFang SC;
  1057. font-weight: 500;
  1058. color: #333333;
  1059. line-height: 48rpx;
  1060. margin-right: 16rpx;
  1061. display: flex;
  1062. }
  1063. .clientStageName {
  1064. height: 48rpx;
  1065. line-height: 48rpx;
  1066. background: #FFFFFF;
  1067. border-radius: 4rpx;
  1068. border: 1rpx solid #FF981E;
  1069. box-sizing: border-box;
  1070. font-size: 28rpx;
  1071. font-family: PingFangSC-Regular, PingFang SC;
  1072. font-weight: 400;
  1073. color: #FF981E;
  1074. margin-left: 16rpx;
  1075. padding: 0 16rpx;
  1076. }
  1077. .edit {
  1078. flex-shrink: 0;
  1079. height: 40rpx;
  1080. width: 40rpx;
  1081. image {
  1082. width: 100%;
  1083. height: 100%;
  1084. }
  1085. }
  1086. }
  1087. .right {
  1088. display: flex;
  1089. .point {
  1090. width: 12rpx;
  1091. height: 12rpx;
  1092. background: #2B6EFF;
  1093. border-radius: 50%;
  1094. margin-right: 9rpx;
  1095. margin-top: 20rpx;
  1096. }
  1097. .test {
  1098. margin-top: 11rpx;
  1099. }
  1100. }
  1101. }
  1102. .content-sec {
  1103. border-top: 1px solid #E0E0E0;
  1104. padding: 0 30rpx;
  1105. position: relative;
  1106. .content-sec-lab {
  1107. margin-top: 30rpx;
  1108. display: flex;
  1109. font-size: 30rpx;
  1110. font-weight: 400;
  1111. color: #333;
  1112. line-height: 42rpx;
  1113. .content-sec-lab1 {
  1114. color: #333333;
  1115. }
  1116. .content-sec-tips {
  1117. max-width: 175rpx;
  1118. text-align: center;
  1119. line-height: 48rpx;
  1120. overflow: hidden;
  1121. text-overflow: ellipsis;
  1122. white-space: nowrap;
  1123. font-size: 26rpx;
  1124. font-weight: 400;
  1125. color: #2671E2;
  1126. margin-right: 12rpx;
  1127. box-sizing: border-box;
  1128. padding: 0 20rpx;
  1129. height: 48rpx;
  1130. background: #F4F8FD;
  1131. border-radius: 6rpx;
  1132. }
  1133. }
  1134. .content-sec-num {
  1135. position: absolute;
  1136. width: 196rpx;
  1137. height: 112rpx;
  1138. background: #F4F8FD;
  1139. border-radius: 8rpx;
  1140. top: 28rpx;
  1141. right: 30rpx;
  1142. padding: 16rpx 20rpx;
  1143. color: #2671E2;
  1144. line-height: 40rpx;
  1145. text-align: center;
  1146. }
  1147. }
  1148. .content-last {
  1149. padding: 30rpx;
  1150. margin-top: 28rpx;
  1151. .content-last-con {
  1152. width: 690rpx;
  1153. min-height: 112rpx;
  1154. background: #F8F8F8;
  1155. border-radius: 8rpx;
  1156. padding: 16rpx 20rpx;
  1157. font-size: 28rpx;
  1158. font-weight: 400;
  1159. color: #333333;
  1160. line-height: 40rpx;
  1161. }
  1162. }
  1163. }
  1164. }
  1165. .tabchange {
  1166. overflow: hidden;
  1167. .tabactive1 {
  1168. padding-bottom: 100rpx;
  1169. .content-tips {
  1170. background: #fff;
  1171. padding: 0 30rpx;
  1172. box-sizing: border-box;
  1173. overflow: hidden;
  1174. margin-bottom: 20rpx;
  1175. .content-first {
  1176. margin-top: 19rpx;
  1177. display: flex;
  1178. justify-content: space-between;
  1179. .left {
  1180. display: flex;
  1181. .img {
  1182. width: 52rpx;
  1183. height: 52rpx;
  1184. background: #FFFFFF;
  1185. border: 1rpx solid #C9C9C9;
  1186. border-radius: 50%;
  1187. text-align: center;
  1188. line-height: 52rpx;
  1189. margin-right: 20rpx;
  1190. }
  1191. .name {
  1192. font-weight: 600;
  1193. color: #333333;
  1194. margin-top: 11rpx;
  1195. }
  1196. .status {
  1197. width: 110rpx;
  1198. height: 42rpx;
  1199. background: #FFF9F5;
  1200. border-radius: 4rpx;
  1201. font-size: 26rpx;
  1202. font-weight: 400;
  1203. color: #EC8D49;
  1204. line-height: 42rpx;
  1205. text-align: center;
  1206. margin-left: 19rpx;
  1207. margin-top: 11rpx;
  1208. }
  1209. }
  1210. .right {
  1211. display: flex;
  1212. margin-top: 11rpx;
  1213. .point {
  1214. width: 12rpx;
  1215. height: 12rpx;
  1216. background: #2B6EFF;
  1217. border-radius: 50%;
  1218. margin-right: 9rpx;
  1219. margin-top: 16rpx;
  1220. }
  1221. }
  1222. }
  1223. .content-sec {
  1224. display: flex;
  1225. justify-content: space-between;
  1226. margin-top: 19rpx;
  1227. .left {
  1228. display: flex;
  1229. .cus {
  1230. font-size: 30rpx;
  1231. font-weight: 400;
  1232. color: #333;
  1233. line-height: 42rpx;
  1234. }
  1235. .arriveNum {
  1236. font-size: 30rpx;
  1237. font-weight: 400;
  1238. margin-left: 10rpx;
  1239. color: #2671E2;
  1240. }
  1241. }
  1242. .right {
  1243. height: 56rpx;
  1244. background: #F4F8FD;
  1245. border-radius: 6rpx;
  1246. text-align: center;
  1247. line-height: 56rpx;
  1248. font-weight: 400;
  1249. color: #2671E2;
  1250. font-size: 28rpx;
  1251. padding: 0 20rpx;
  1252. }
  1253. }
  1254. .content-last {
  1255. margin: 28rpx 0;
  1256. font-size: 30rpx;
  1257. font-weight: 400;
  1258. color: #333;
  1259. line-height: 30rpx;
  1260. }
  1261. }
  1262. }
  1263. .tabactive2 {
  1264. .tab2-tips {
  1265. background: #fff;
  1266. // height: 270rpx;
  1267. overflow: auto;
  1268. margin-bottom: 20rpx;
  1269. .tab2-first {
  1270. border-bottom: 1rpx solid #E0E0E0;
  1271. padding: 0 30rpx;
  1272. margin-top: 19rpx;
  1273. box-sizing: border-box;
  1274. .tab2-first-1 {
  1275. display: flex;
  1276. justify-content: space-between;
  1277. height: 52rpx;
  1278. align-items: center;
  1279. .tab2-first-left {
  1280. display: flex;
  1281. align-items: center;
  1282. height: 52rpx;
  1283. .img {
  1284. width: 52rpx;
  1285. height: 52rpx;
  1286. background: #FFFFFF;
  1287. border: 1rpx solid #C9C9C9;
  1288. border-radius: 50%;
  1289. text-align: center;
  1290. line-height: 52rpx;
  1291. }
  1292. .name {
  1293. font-weight: 600;
  1294. color: #333333;
  1295. margin-left: 20rpx;
  1296. }
  1297. .clientStageName {
  1298. height: 48rpx;
  1299. line-height: 48rpx;
  1300. background: #fff;
  1301. border-radius: 4rpx;
  1302. border: 1rpx solid #ff981e;
  1303. box-sizing: border-box;
  1304. font-size: 28rpx;
  1305. font-family: PingFangSC-Regular,PingFang SC;
  1306. font-weight: 400;
  1307. color: #ff981e;
  1308. margin-left: 16rpx;
  1309. padding: 0 16rpx;
  1310. }
  1311. }
  1312. .tab2-first-right {
  1313. font-size: 30rpx;
  1314. font-weight: 400;
  1315. color: #333;
  1316. }
  1317. }
  1318. .tab2-first-foot {
  1319. margin: 30rpx 0;
  1320. font-size: 30rpx;
  1321. font-weight: 400;
  1322. color: #333;
  1323. line-height: 42rpx;
  1324. }
  1325. }
  1326. .tab2-sec {
  1327. height: 120rpx;
  1328. padding: 30rpx;
  1329. float: right;
  1330. .tab-sec-edit {
  1331. width: 156rpx;
  1332. height: 60rpx;
  1333. background: #FFFFFF;
  1334. border-radius: 4rpx;
  1335. border: 1rpx solid #2671E2;
  1336. text-align: center;
  1337. line-height: 60rpx;
  1338. font-weight: 400;
  1339. color: #2671E2;
  1340. }
  1341. }
  1342. }
  1343. }
  1344. }
  1345. .pon-foot {
  1346. position: fixed;
  1347. width: 750rpx;
  1348. height: 100rpx;
  1349. background: #FFFFFF;
  1350. box-shadow: 0px -2rpx 8rpx 0rpx rgba(224, 224, 224, 0.5);
  1351. bottom: 0;
  1352. display: flex;
  1353. justify-content: space-around;
  1354. align-items: center;
  1355. // padding-top: 24rpx;
  1356. box-sizing: border-box;
  1357. // padding: ;
  1358. .foot-tab {
  1359. text-align: center;
  1360. width: 270rpx;
  1361. height: 70rpx;
  1362. line-height: 70rpx;
  1363. background: #2671E2;
  1364. box-shadow: 0px -2rpx 8rpx 0px rgba(224, 224, 224, 0.5);
  1365. border-radius: 6rpx;
  1366. font-size: 30rpx;
  1367. font-weight: 400;
  1368. color: #FFFFFF;
  1369. }
  1370. }
  1371. .upon-sec-tips {
  1372. // max-width:120rpx ;
  1373. height: 46rpx;
  1374. background: #F2F2F2;
  1375. border-radius: 6rpx;
  1376. text-align: center;
  1377. line-height: 26rpx;
  1378. overflow: hidden;
  1379. text-overflow: ellipsis;
  1380. white-space: nowrap;
  1381. font-size: 26rpx;
  1382. font-weight: 400;
  1383. color: #333333;
  1384. margin-right: 20rpx;
  1385. margin-top: 20rpx;
  1386. box-sizing: border-box;
  1387. padding: 10rpx 24rpx;
  1388. }
  1389. .conmsg-msg-lab-img {
  1390. width: 14rpx;
  1391. height: 30rpx;
  1392. margin-top: 6rpx;
  1393. margin-left: auto;
  1394. image {
  1395. width: 100%;
  1396. height: 100%;
  1397. }
  1398. }
  1399. .A {
  1400. background: #E6625B;
  1401. }
  1402. .B {
  1403. background: #FF981E;
  1404. }
  1405. .C {
  1406. background: #F6BD16;
  1407. }
  1408. .D {
  1409. background: #E6625B;
  1410. }
  1411. .top-box {
  1412. height: 80rpx;
  1413. line-height: 80rpx;
  1414. display: flex;
  1415. color: #2671E2;
  1416. border-bottom: 1rpx solid #ccc;
  1417. }
  1418. </style>