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.
 
 
 
 

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