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.

consumerDetail.vue 30 KiB

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