AI销管
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

1521 righe
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">挖掘成功:{{customerInfo.wordFinishFraction||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. getKeywordsList(list) {
  436. let keywords = [];
  437. if (list && list.length) {
  438. keywords = list.map((item) => item.name);
  439. } else {
  440. return "--";
  441. }
  442. return keywords.join(",");
  443. },
  444. changeshowlevel1(item, type) {
  445. console.log(item)
  446. item.show = !item.show
  447. },
  448. // 客户详情需求挖掘话术
  449. getfindKeyWordsBycusId() {
  450. this.$u
  451. .get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId)
  452. .then((res) => {
  453. // console.log(res)
  454. if (res.length) {
  455. res.forEach((item, index) => {
  456. item.show = false;
  457. if (index == 0) {
  458. item.show = true;
  459. }
  460. if (item.children && item.children.length) {
  461. item.children.forEach((obj, i) => {
  462. obj.show = false;
  463. if (i == 0 && index == 0) {
  464. obj.show = true;
  465. }
  466. });
  467. }
  468. });
  469. this.KeyWordsfractionList = res;
  470. } else {
  471. this.KeyWordsfractionList = [];
  472. }
  473. });
  474. },
  475. // 获取到访记录
  476. getVisitList() {
  477. this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId).then(res => {
  478. this.Thevisitingrecords = res
  479. })
  480. },
  481. // 获取客户信息
  482. getCustomerInfo() {
  483. const that = this;
  484. this.$u.get("/customer/findById", {
  485. id: this.customerId
  486. }).then(res => {
  487. this.LOADING = false
  488. if (res.fraction == null) {
  489. res.fraction = '0';
  490. }
  491. this.customerInfo = res;
  492. }).catch(e => {
  493. this.LOADING = false
  494. })
  495. },
  496. tabtimetap(idx) {
  497. this.activeTotal = idx
  498. if (idx == 0) {
  499. this.getVisitList()
  500. } else if (idx == 1) {
  501. this.getFollowList()
  502. } else if(idx == 2){
  503. this.getRatelist()
  504. }else{ // 需求挖掘率
  505. this.getfindKeyWordsBycusId()
  506. }
  507. },
  508. tapThevisiting(_item) {
  509. uni.showLoading({
  510. title: '加载中',
  511. mask: true
  512. });
  513. if (_item.yon != 0) {
  514. setTimeout(function() {
  515. uni.hideLoading();
  516. }, 2000);
  517. uni.showToast({
  518. icon: 'none',
  519. title: '暂无录音',
  520. duration: 2000
  521. });
  522. return
  523. } else {
  524. const parames = {
  525. pageNum: 1,
  526. pageSize: 100,
  527. query: {
  528. customerId: _item.id,
  529. }
  530. }
  531. var item = {
  532. bg: 0,
  533. customerId: _item.id,
  534. id: ''
  535. }
  536. uni.setStorageSync("entrance", 1); //写入缓存
  537. uni.setStorageSync("searchobj", item); //写入缓存
  538. this.$u.post("/corpus/findByPage", parames).then(res => {
  539. setTimeout(function() {
  540. uni.hideLoading();
  541. }, 2000);
  542. if (res == null) {
  543. uni.showToast({
  544. icon: "none",
  545. title: "暂无音频"
  546. })
  547. return
  548. }
  549. if (res[0].merge == 0) {
  550. let newobj = res[0];
  551. uni.navigateTo({
  552. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}&wordFraction=${_item.wordFraction}`
  553. })
  554. } else {
  555. let newobj = res[0];
  556. uni.navigateTo({
  557. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  558. })
  559. }
  560. })
  561. }
  562. },
  563. // 获取跟进记录
  564. getFollowList() {
  565. this.fllowList = [];
  566. this.$u.post("/customer/getCusStage", {
  567. customerId: this.customerId
  568. }).then(res => {
  569. res.forEach(item => {
  570. item.agentName = this.customerInfo.agentName
  571. })
  572. this.fllowList = res;
  573. })
  574. },
  575. // 新增跟进
  576. followRecordAdd() {
  577. uni.navigateTo({
  578. url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}&level=${this.customerInfo.level}&clientStageName=${this.customerInfo.clientStageName}`
  579. })
  580. },
  581. // 去编辑
  582. goedit() {
  583. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  584. if (newmenulist.khgl_bj == true || newmenulist.khgl_gj) {
  585. uni.navigateTo({
  586. url: `/pages/center/consumer/edit?id=${this.customerId}`
  587. })
  588. }
  589. },
  590. // 去添加提醒
  591. goRemind() {
  592. uni.navigateTo({
  593. url: `/pages/center/consumer/remind?str=${this.customerInfo.name+'/'+this.customerInfo.phone}&customerId=${this.customerId}`
  594. })
  595. },
  596. //评分点击
  597. clickaudeopal(item) {
  598. if (item.selected == 0) {
  599. uni.navigateTo({
  600. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  601. .marketingId + "&type=0" + '&from=consumerDetail'
  602. })
  603. }
  604. },
  605. changeshow(item, type) {
  606. item.show = !item.show
  607. },
  608. changeshow2(item, type) {
  609. item.show = !item.show
  610. },
  611. // 获取评分
  612. getRatelist() {
  613. this.$u.get("/customer/findzkMByCusId", {
  614. cusId: this.customerId
  615. }).then(res => {
  616. if (res.length) {
  617. let level1 = []
  618. res.forEach(item => {
  619. if (item.pid == 0) {
  620. level1.push({
  621. id: item.marketingId,
  622. rate: item.fraction,
  623. name: item.name,
  624. sort: item.sort,
  625. show: false,
  626. ratepercent: 0,
  627. children: []
  628. })
  629. }
  630. })
  631. // this.totalRate = level2rate;
  632. res.forEach(subitem => {
  633. let subitempid = subitem.pid
  634. level1.forEach(item => {
  635. if (subitempid == item.id) {
  636. if (subitem.selected == 0) {
  637. item.ratepercent += subitem.fraction
  638. }
  639. item.children.push({
  640. id: subitem.id,
  641. rate: subitem.fraction,
  642. selected: subitem.selected,
  643. name: subitem.name,
  644. show: false,
  645. marketingId: subitem.marketingId,
  646. children: []
  647. })
  648. }
  649. })
  650. })
  651. res.forEach(subitem => {
  652. let subitempid = subitem.pid
  653. level1.forEach(chen => {
  654. chen.children.forEach(zxc => {
  655. if (subitempid == zxc.marketingId) {
  656. zxc.children.push({
  657. id: subitem.id,
  658. rate: subitem.fraction,
  659. selected: subitem.selected,
  660. name: subitem.name,
  661. marketingId: subitem.marketingId,
  662. })
  663. }
  664. })
  665. })
  666. })
  667. level1[0].show = true;
  668. level1[0].children[0].show = true;
  669. this.ratelist = level1
  670. }
  671. })
  672. },
  673. },
  674. filters: {
  675. // 加密手机
  676. phoneText(mobile) {
  677. if (!mobile) return '--'
  678. if (_this.userInfo.showPhoneStatus == 1) return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  679. else return mobile
  680. },
  681. }
  682. }
  683. </script>
  684. <style lang="scss" scoped>
  685. .rotatearrow {
  686. transform: rotate(270deg);
  687. }
  688. // 评分
  689. .rate-box {
  690. padding: 10rpx 20rpx;
  691. background-color: #FFFFFF;
  692. .date {
  693. width: 300rpx;
  694. height: 33rpx;
  695. font-size: 24rpx;
  696. font-weight: 400;
  697. color: #333333;
  698. line-height: 33rpx;
  699. letter-spacing: 1rpx;
  700. margin-bottom: 8rpx;
  701. }
  702. .title {
  703. width: 100%;
  704. height: 42rpx;
  705. font-size: 30rpx;
  706. font-weight: 500;
  707. color: #333333;
  708. line-height: 42rpx;
  709. letter-spacing: 2rpx;
  710. margin-bottom: 20rpx;
  711. }
  712. .level1 {
  713. display: flex;
  714. align-items: center;
  715. .level-name {
  716. width: 104rpx;
  717. height: 33rpx;
  718. font-size: 24rpx;
  719. font-weight: 500;
  720. color: #333333;
  721. line-height: 33rpx;
  722. letter-spacing: 1rpx;
  723. margin-right: 10rpx;
  724. }
  725. .level-progress {
  726. flex: 1;
  727. border-radius: 11rpx;
  728. height: 21rpx;
  729. background-color: #BEE4FF;
  730. position: relative;
  731. .color {
  732. width: 0;
  733. position: absolute;
  734. top: 0;
  735. left: 0;
  736. height: 21rpx;
  737. border-radius: 11rpx 0 0 11rpx;
  738. background-color: #008EF2;
  739. }
  740. }
  741. .level-rate {
  742. width: 65rpx;
  743. height: 33rpx;
  744. font-size: 24rpx;
  745. font-weight: 500;
  746. color: #333333;
  747. line-height: 33rpx;
  748. letter-spacing: 1rpx;
  749. margin: 0 20rpx 0 15rpx;
  750. }
  751. .arrow {
  752. width: 37rpx;
  753. height: 21rpx;
  754. padding: 5rpx 20rpx;
  755. }
  756. .rotatearrow {
  757. transform: rotate(270deg);
  758. }
  759. }
  760. .level1-subbox {
  761. display: flex;
  762. margin-top: 20rpx;
  763. flex-wrap: wrap;
  764. .sub-name {
  765. width: 50%;
  766. display: flex;
  767. margin-bottom: 18rpx;
  768. .subitem-name {
  769. width: 104rpx;
  770. height: 33rpx;
  771. font-size: 24rpx;
  772. font-weight: 400;
  773. color: #999999;
  774. line-height: 33rpx;
  775. letter-spacing: 1rpx;
  776. margin-right: 12rpx;
  777. }
  778. .checkimg {
  779. width: 27rpx;
  780. height: 27rpx;
  781. }
  782. }
  783. }
  784. }
  785. .Level-box {
  786. padding-bottom: 2rpx;
  787. border-bottom: 1rpx solid #E0E0E0;
  788. .hhhbox {
  789. width: 100%;
  790. padding: 0 30rpx;
  791. background: #f8f8f8;
  792. .hsnrtest {
  793. height: 36rpx;
  794. font-size: 26rpx;
  795. font-weight: 400;
  796. color: #666666;
  797. line-height: 36rpx;
  798. }
  799. .Level3che {
  800. width: 100%;
  801. height: 28rpx;
  802. display: flex;
  803. line-height: 28rpx;
  804. align-items: center;
  805. margin-top: 24rpx;
  806. .title1 {
  807. flex: 1;
  808. font-size: 28rpx;
  809. color: #2671E2;
  810. font-weight: 400;
  811. }
  812. .jiantobox {
  813. width: 30rpx;
  814. height: 30rpx;
  815. display: flex;
  816. align-items: center;
  817. .arrow {
  818. width: 32rpx;
  819. height: 32rpx;
  820. }
  821. }
  822. }
  823. }
  824. .Level2che {
  825. width: 100%;
  826. height: 88rpx;
  827. display: flex;
  828. line-height: 88rpx;
  829. align-items: center;
  830. .title1 {
  831. flex: 2;
  832. font-size: 28rpx;
  833. color: #333333;
  834. font-weight: 500;
  835. }
  836. .leve1-jindu {
  837. flex: 3;
  838. display: flex;
  839. justify-content: center;
  840. align-items: center;
  841. .zhixing {
  842. width: 116rpx;
  843. height: 48rpx;
  844. line-height: 48rpx;
  845. background: #2671E2;
  846. border-radius: 4rpx;
  847. font-size: 28rpx;
  848. text-align: center;
  849. color: #FFFFFF;
  850. }
  851. .zhixing2 {
  852. width: 116rpx;
  853. height: 48rpx;
  854. line-height: 48rpx;
  855. border-radius: 4rpx;
  856. font-size: 28rpx;
  857. text-align: center;
  858. color: #FFFFFF;
  859. background: #D8D8D8;
  860. }
  861. }
  862. .jiantobox {
  863. width: 30rpx;
  864. height: 30rpx;
  865. display: flex;
  866. align-items: center;
  867. .arrow {
  868. width: 30rpx;
  869. height: 18rpx;
  870. }
  871. }
  872. }
  873. .Level1che {
  874. width: 100%;
  875. height: 98rpx;
  876. background: #fff;
  877. display: flex;
  878. line-height: 98rpx;
  879. align-items: center;
  880. padding:0 30rpx;
  881. .title1 {
  882. flex: 2;
  883. font-size: 28rpx;
  884. color: #333333;
  885. font-weight: 500;
  886. }
  887. .leve1-jindu {
  888. flex: 3;
  889. .jindutiao {
  890. width: 96%;
  891. height: 28rpx;
  892. line-height: 28rpx;
  893. border-radius: 14rpx;
  894. position: relative;
  895. background: rgba(7, 183, 157, 0.2);
  896. .huanxing {
  897. height: 100%;
  898. background: #07B79D;
  899. border-radius: 14rpx;
  900. }
  901. .text {
  902. position: absolute;
  903. top: 0rpx;
  904. right: 0rpx;
  905. font-size: 28rpx;
  906. font-weight: 400;
  907. color: #333333;
  908. }
  909. }
  910. }
  911. .jiantobox {
  912. width: 30rpx;
  913. height: 30rpx;
  914. display: flex;
  915. align-items: center;
  916. .arrow {
  917. width: 30rpx;
  918. height: 18rpx;
  919. }
  920. }
  921. }
  922. }
  923. .ratecenter {
  924. background-color: #FFFFFF;
  925. padding-bottom: 30rpx;
  926. width: 100%;
  927. .ratetetle {
  928. height: 42rpx;
  929. font-size: 30rpx;
  930. font-family: PingFangSC-Medium, PingFang SC;
  931. font-weight: 500;
  932. color: #333333;
  933. line-height: 42rpx;
  934. padding: 24rpx 30rpx;
  935. }
  936. .rateyuanbox {
  937. width: 100%;
  938. height: 210rpx;
  939. padding-bottom: 30rpx;
  940. display: flex;
  941. padding-left: 80rpx;
  942. padding-right: 80rpx;
  943. .rateyuanboxzuo {
  944. width: 30%;
  945. height: 100%;
  946. }
  947. .rateyuanboxyou {
  948. width: 40%;
  949. height: 100%;
  950. }
  951. .boxzuoview {
  952. width: 100%;
  953. height: 140rpx;
  954. line-height: 140rpx;
  955. text-align: center;
  956. }
  957. .ratetetle-desc{
  958. color: #666;
  959. font-size:30rpx;
  960. font-weight: 400;
  961. text-align: center;
  962. }
  963. }
  964. .middle-title{
  965. height: 78rpx;
  966. line-height: 78rpx;
  967. display: flex;
  968. // justify-content: space-around;
  969. align-items: center;
  970. background: #F4F8FD;
  971. font-size: 30rpx;
  972. font-family: PingFangSC-Medium, PingFang SC;
  973. font-weight: 500;
  974. color: #333333;
  975. .item-title1 {
  976. width: 450rpx;
  977. padding-left: 30rpx;
  978. }
  979. .item-title {
  980. flex: 1;
  981. }
  982. }
  983. }
  984. .box {
  985. width: 100%;
  986. height: 100%;
  987. background: #F8F8F8;
  988. }
  989. .tab {
  990. height: 88rpx;
  991. border-bottom: 1px solid #E0E0E0;
  992. background: #FFFFFF;
  993. display: flex;
  994. align-items: center;
  995. .tabbox {
  996. flex: 1;
  997. height: 100%;
  998. text-align: center;
  999. line-height: 88rpx;
  1000. color: #666666;
  1001. font-size: 30rpx;
  1002. display: flex;
  1003. justify-content: center;
  1004. .activecllasscet {
  1005. border-bottom: 6rpx solid #2671E2;
  1006. color: #2671E2;
  1007. font-weight: 600;
  1008. }
  1009. }
  1010. }
  1011. .content {
  1012. overflow: hidden;
  1013. border-top: 1rpx solid #E0E0E0;
  1014. .content-tips {
  1015. background: #fff;
  1016. margin-bottom: 20rpx;
  1017. overflow: hidden;
  1018. .content-first {
  1019. padding: 19rpx 30rpx;
  1020. display: flex;
  1021. justify-content: space-between;
  1022. box-sizing: border-box;
  1023. font-weight: 400;
  1024. color: #292929;
  1025. height: 90rpx;
  1026. font-size: 30rpx;
  1027. line-height: 30rpx;
  1028. .left {
  1029. flex-grow: 1;
  1030. display: flex;
  1031. align-items: center;
  1032. justify-content: space-between;
  1033. .img {
  1034. width: 48rpx;
  1035. height: 48rpx;
  1036. line-height: 48rpx;
  1037. text-align: center;
  1038. margin-left: 16rpx;
  1039. border-radius: 6rpx;
  1040. font-size: 28rpx;
  1041. font-family: PingFangSC-Regular, PingFang SC;
  1042. font-weight: 400;
  1043. color: #FFFFFF;
  1044. }
  1045. .test {
  1046. height: 48rpx;
  1047. font-size: 30rpx;
  1048. font-family: PingFangSC-Medium, PingFang SC;
  1049. font-weight: 500;
  1050. color: #333333;
  1051. line-height: 48rpx;
  1052. margin-right: 16rpx;
  1053. display: flex;
  1054. }
  1055. .clientStageName {
  1056. height: 48rpx;
  1057. line-height: 48rpx;
  1058. background: #FFFFFF;
  1059. border-radius: 4rpx;
  1060. border: 1rpx solid #FF981E;
  1061. box-sizing: border-box;
  1062. font-size: 28rpx;
  1063. font-family: PingFangSC-Regular, PingFang SC;
  1064. font-weight: 400;
  1065. color: #FF981E;
  1066. margin-left: 16rpx;
  1067. padding: 0 16rpx;
  1068. }
  1069. .edit {
  1070. flex-shrink: 0;
  1071. height: 40rpx;
  1072. width: 40rpx;
  1073. image {
  1074. width: 100%;
  1075. height: 100%;
  1076. }
  1077. }
  1078. }
  1079. .right {
  1080. display: flex;
  1081. .point {
  1082. width: 12rpx;
  1083. height: 12rpx;
  1084. background: #2B6EFF;
  1085. border-radius: 50%;
  1086. margin-right: 9rpx;
  1087. margin-top: 20rpx;
  1088. }
  1089. .test {
  1090. margin-top: 11rpx;
  1091. }
  1092. }
  1093. }
  1094. .content-sec {
  1095. border-top: 1px solid #E0E0E0;
  1096. padding: 0 30rpx;
  1097. position: relative;
  1098. .content-sec-lab {
  1099. margin-top: 30rpx;
  1100. display: flex;
  1101. font-size: 30rpx;
  1102. font-weight: 400;
  1103. color: #333;
  1104. line-height: 42rpx;
  1105. .content-sec-lab1 {
  1106. color: #333333;
  1107. }
  1108. .content-sec-tips {
  1109. max-width: 175rpx;
  1110. text-align: center;
  1111. line-height: 48rpx;
  1112. overflow: hidden;
  1113. text-overflow: ellipsis;
  1114. white-space: nowrap;
  1115. font-size: 26rpx;
  1116. font-weight: 400;
  1117. color: #2671E2;
  1118. margin-right: 12rpx;
  1119. box-sizing: border-box;
  1120. padding: 0 20rpx;
  1121. height: 48rpx;
  1122. background: #F4F8FD;
  1123. border-radius: 6rpx;
  1124. }
  1125. }
  1126. .content-sec-num {
  1127. position: absolute;
  1128. width: 196rpx;
  1129. height: 112rpx;
  1130. background: #F4F8FD;
  1131. border-radius: 8rpx;
  1132. top: 28rpx;
  1133. right: 30rpx;
  1134. padding: 16rpx 20rpx;
  1135. color: #2671E2;
  1136. line-height: 40rpx;
  1137. text-align: center;
  1138. }
  1139. }
  1140. .content-last {
  1141. padding: 30rpx;
  1142. margin-top: 28rpx;
  1143. .content-last-con {
  1144. width: 690rpx;
  1145. min-height: 112rpx;
  1146. background: #F8F8F8;
  1147. border-radius: 8rpx;
  1148. padding: 16rpx 20rpx;
  1149. font-size: 28rpx;
  1150. font-weight: 400;
  1151. color: #333333;
  1152. line-height: 40rpx;
  1153. }
  1154. }
  1155. }
  1156. }
  1157. .tabchange {
  1158. overflow: hidden;
  1159. .tabactive1 {
  1160. padding-bottom: 100rpx;
  1161. .content-tips {
  1162. background: #fff;
  1163. padding: 0 30rpx;
  1164. box-sizing: border-box;
  1165. overflow: hidden;
  1166. margin-bottom: 20rpx;
  1167. .content-first {
  1168. margin-top: 19rpx;
  1169. display: flex;
  1170. justify-content: space-between;
  1171. .left {
  1172. display: flex;
  1173. .img {
  1174. width: 52rpx;
  1175. height: 52rpx;
  1176. background: #FFFFFF;
  1177. border: 1rpx solid #C9C9C9;
  1178. border-radius: 50%;
  1179. text-align: center;
  1180. line-height: 52rpx;
  1181. margin-right: 20rpx;
  1182. }
  1183. .name {
  1184. font-weight: 600;
  1185. color: #333333;
  1186. margin-top: 11rpx;
  1187. }
  1188. .status {
  1189. width: 110rpx;
  1190. height: 42rpx;
  1191. background: #FFF9F5;
  1192. border-radius: 4rpx;
  1193. font-size: 26rpx;
  1194. font-weight: 400;
  1195. color: #EC8D49;
  1196. line-height: 42rpx;
  1197. text-align: center;
  1198. margin-left: 19rpx;
  1199. margin-top: 11rpx;
  1200. }
  1201. }
  1202. .right {
  1203. display: flex;
  1204. margin-top: 11rpx;
  1205. .point {
  1206. width: 12rpx;
  1207. height: 12rpx;
  1208. background: #2B6EFF;
  1209. border-radius: 50%;
  1210. margin-right: 9rpx;
  1211. margin-top: 16rpx;
  1212. }
  1213. }
  1214. }
  1215. .content-sec {
  1216. display: flex;
  1217. justify-content: space-between;
  1218. margin-top: 19rpx;
  1219. .left {
  1220. display: flex;
  1221. .cus {
  1222. font-size: 30rpx;
  1223. font-weight: 400;
  1224. color: #333;
  1225. line-height: 42rpx;
  1226. }
  1227. .arriveNum {
  1228. font-size: 30rpx;
  1229. font-weight: 400;
  1230. margin-left: 10rpx;
  1231. color: #2671E2;
  1232. }
  1233. }
  1234. .right {
  1235. height: 56rpx;
  1236. background: #F4F8FD;
  1237. border-radius: 6rpx;
  1238. text-align: center;
  1239. line-height: 56rpx;
  1240. font-weight: 400;
  1241. color: #2671E2;
  1242. font-size: 28rpx;
  1243. padding: 0 20rpx;
  1244. }
  1245. }
  1246. .content-last {
  1247. margin: 28rpx 0;
  1248. font-size: 30rpx;
  1249. font-weight: 400;
  1250. color: #333;
  1251. line-height: 30rpx;
  1252. }
  1253. }
  1254. }
  1255. .tabactive2 {
  1256. .tab2-tips {
  1257. background: #fff;
  1258. // height: 270rpx;
  1259. overflow: auto;
  1260. margin-bottom: 20rpx;
  1261. .tab2-first {
  1262. border-bottom: 1rpx solid #E0E0E0;
  1263. padding: 0 30rpx;
  1264. margin-top: 19rpx;
  1265. box-sizing: border-box;
  1266. .tab2-first-1 {
  1267. display: flex;
  1268. justify-content: space-between;
  1269. height: 52rpx;
  1270. align-items: center;
  1271. .tab2-first-left {
  1272. display: flex;
  1273. align-items: center;
  1274. height: 52rpx;
  1275. .img {
  1276. width: 52rpx;
  1277. height: 52rpx;
  1278. background: #FFFFFF;
  1279. border: 1rpx solid #C9C9C9;
  1280. border-radius: 50%;
  1281. text-align: center;
  1282. line-height: 52rpx;
  1283. }
  1284. .name {
  1285. font-weight: 600;
  1286. color: #333333;
  1287. margin-left: 20rpx;
  1288. }
  1289. .clientStageName {
  1290. height: 48rpx;
  1291. line-height: 48rpx;
  1292. background: #fff;
  1293. border-radius: 4rpx;
  1294. border: 1rpx solid #ff981e;
  1295. box-sizing: border-box;
  1296. font-size: 28rpx;
  1297. font-family: PingFangSC-Regular,PingFang SC;
  1298. font-weight: 400;
  1299. color: #ff981e;
  1300. margin-left: 16rpx;
  1301. padding: 0 16rpx;
  1302. }
  1303. }
  1304. .tab2-first-right {
  1305. font-size: 30rpx;
  1306. font-weight: 400;
  1307. color: #333;
  1308. }
  1309. }
  1310. .tab2-first-foot {
  1311. margin: 30rpx 0;
  1312. font-size: 30rpx;
  1313. font-weight: 400;
  1314. color: #333;
  1315. line-height: 42rpx;
  1316. }
  1317. }
  1318. .tab2-sec {
  1319. height: 120rpx;
  1320. padding: 30rpx;
  1321. float: right;
  1322. .tab-sec-edit {
  1323. width: 156rpx;
  1324. height: 60rpx;
  1325. background: #FFFFFF;
  1326. border-radius: 4rpx;
  1327. border: 1rpx solid #2671E2;
  1328. text-align: center;
  1329. line-height: 60rpx;
  1330. font-weight: 400;
  1331. color: #2671E2;
  1332. }
  1333. }
  1334. }
  1335. }
  1336. }
  1337. .pon-foot {
  1338. position: fixed;
  1339. width: 750rpx;
  1340. height: 100rpx;
  1341. background: #FFFFFF;
  1342. box-shadow: 0px -2rpx 8rpx 0rpx rgba(224, 224, 224, 0.5);
  1343. bottom: 0;
  1344. display: flex;
  1345. justify-content: space-around;
  1346. align-items: center;
  1347. // padding-top: 24rpx;
  1348. box-sizing: border-box;
  1349. // padding: ;
  1350. .foot-tab {
  1351. text-align: center;
  1352. width: 270rpx;
  1353. height: 70rpx;
  1354. line-height: 70rpx;
  1355. background: #2671E2;
  1356. box-shadow: 0px -2rpx 8rpx 0px rgba(224, 224, 224, 0.5);
  1357. border-radius: 6rpx;
  1358. font-size: 30rpx;
  1359. font-weight: 400;
  1360. color: #FFFFFF;
  1361. }
  1362. }
  1363. .upon-sec-tips {
  1364. // max-width:120rpx ;
  1365. height: 46rpx;
  1366. background: #F2F2F2;
  1367. border-radius: 6rpx;
  1368. text-align: center;
  1369. line-height: 26rpx;
  1370. overflow: hidden;
  1371. text-overflow: ellipsis;
  1372. white-space: nowrap;
  1373. font-size: 26rpx;
  1374. font-weight: 400;
  1375. color: #333333;
  1376. margin-right: 20rpx;
  1377. margin-top: 20rpx;
  1378. box-sizing: border-box;
  1379. padding: 10rpx 24rpx;
  1380. }
  1381. .conmsg-msg-lab-img {
  1382. width: 14rpx;
  1383. height: 30rpx;
  1384. margin-top: 6rpx;
  1385. margin-left: auto;
  1386. image {
  1387. width: 100%;
  1388. height: 100%;
  1389. }
  1390. }
  1391. .A {
  1392. background: #E6625B;
  1393. }
  1394. .B {
  1395. background: #FF981E;
  1396. }
  1397. .C {
  1398. background: #F6BD16;
  1399. }
  1400. .D {
  1401. background: #E6625B;
  1402. }
  1403. .top-box {
  1404. height: 80rpx;
  1405. line-height: 80rpx;
  1406. display: flex;
  1407. color: #2671E2;
  1408. border-bottom: 1rpx solid #ccc;
  1409. }
  1410. </style>