AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 31 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. <template>
  2. <view class="box">
  3. <!-- 选择器 -->
  4. <view class="boxtittab">
  5. <view class="tabbox" :class="{activeColor: arriveFilter!=='接待时间'}" @click="timeshow = true">
  6. {{ arriveFilter }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  7. </view>
  8. <view class="tabbox" :class="{activeColor:counselorName!=='接待顾问'}" @click="selectshow=true">
  9. {{ counselorName }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  10. </view>
  11. <view class="tabbox" :class="{activeColor: sortText!=='排序'}" @click="soltishow = true">
  12. {{ sortText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  13. </view>
  14. <view class="tabbox" @click="screenShow = true">
  15. 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  16. </view>
  17. </view>
  18. <!-- 筛选后的数量 -->
  19. <view class="count" v-if="recordList.length > 0">
  20. 筛选结果:<text>{{totalRecords}}</text>条
  21. </view>
  22. <view class="content">
  23. <view v-if="recordList.length == 0"
  24. style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;">
  25. <view style="width: 100%;padding-top: 200rpx;">
  26. <view style="width: 100%;text-align: center;">
  27. <image style="width: 220rpx;height: 200rpx;"
  28. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  29. </view>
  30. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  31. </view>
  32. </view>
  33. <view v-else class="content-tips" v-for="(item,index) in recordList" :key='index'
  34. @click="tapThevisiting(item)">
  35. <view class="content-first">
  36. <view class="left">
  37. <view class="adviser">顾</view>
  38. <view class="name">{{item.agentName}}</view>
  39. </view>
  40. <view class="right" v-if="item.recording!=0">
  41. <view v-if="item.receptionStatusName" style="margin-right: 6rpx;color: red;">{{item.receptionStatusName.slice(0, 2) || ''}}</view>
  42. <text style="margin-right: 6rpx;" v-if="item.receptionStatusName"> |</text>
  43. <view v-if="methodsisshow">
  44. <text style="margin-right: 6rpx;color: red;" v-if="item.taboo==1">违禁接待</text>
  45. <text style="margin-right: 6rpx;" v-if="item.taboo==1"> |</text>
  46. </view>
  47. <view v-if="item.validInvalidName" style="margin-right: 6rpx;">{{item.validInvalidName.slice(0, 2)||''}}</view>
  48. <text style="margin-right: 6rpx;" v-if="item.validInvalidName"> |</text>
  49. <view v-if="item.markAdvisor==0" class="">未标记</view>
  50. <view v-if="item.markAdvisor==1" class="">已标记</view>
  51. </view>
  52. <view class="right" v-else>
  53. <view class="">无录音</view>
  54. </view>
  55. </view>
  56. <view class="content-sec">
  57. <view class="left">
  58. <view class="adviser">客</view>
  59. <view class="cus">{{item.name || '--'}}</view>
  60. <view class="arriveNum">{{ item.phone | encryption }}</view>
  61. </view>
  62. <view class="right">
  63. <image src="../static/img/power.png" class="img" mode=""></image>
  64. {{item.fraction || '0'}}%
  65. </view>
  66. </view>
  67. <view class="content-newadd">
  68. <view class="c-items">
  69. 挖掘执行:{{item.wordFraction||0}}%
  70. </view>
  71. <view class="c-items">
  72. 挖掘成功:{{item.wordFinishFraction||0}}%
  73. </view>
  74. <view class="c-items">
  75. 销讲业务:{{item.marketingBusiness||'xxx'}}
  76. </view>
  77. </view>
  78. <view class="content-last">
  79. <view class="c-items">
  80. <image src="../static/img/people.png" class="c-items-img" mode=""></image>
  81. {{ item.visitRecord || "--" }}次到访
  82. </view>
  83. <view class="c-items">
  84. <image src="../static/img/time.png" class="c-items-img" mode=""></image>
  85. {{ item.createTime }}
  86. </view>
  87. <view class="c-items">
  88. <image src="../static/img/voice.png" class="c-items-img" mode=""></image>
  89. {{ item.mm || '0' }}min
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <u-popup v-model="screenShow" mode="top" height="900">
  95. <view class="screen">
  96. <scroll-view scroll-y="true" style="height: 750rpx;">
  97. <!-- 销讲业务 -->
  98. <view class="screen-record">
  99. <view class="screen-record-text" @click="showTemplate=!showTemplate">
  100. 销讲业务
  101. <image v-if="showTemplate" class="arrow"
  102. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  103. <image v-else class="arrow"
  104. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  105. </view>
  106. <view class="screen-record-tab" v-if="showTemplate">
  107. <block v-for="(item,index) in templateList" :key="index">
  108. <view class="screen-record-item"
  109. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  110. @click="choice(item)">
  111. {{item.templateName}}
  112. </view>
  113. </block>
  114. </view>
  115. </view>
  116. <!-- 销讲执行率 -->
  117. <view class="screen-record">
  118. <view class="screen-record-text" @click="xiaojiangArrow=!xiaojiangArrow">
  119. 销讲执行率
  120. <image v-if="xiaojiangArrow" class="arrow"
  121. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  122. <image v-else class="arrow"
  123. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  124. </view>
  125. <view class="screen-record-tab" v-if="xiaojiangArrow">
  126. <block v-for="(item,index) in xiaojiangList" :key="index">
  127. <view class="screen-record-item"
  128. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  129. @click="choice(item)">
  130. {{item.label}}
  131. </view>
  132. </block>
  133. </view>
  134. </view>
  135. <!-- 需求挖掘率 -->
  136. <view class="screen-record">
  137. <view class="screen-record-text" @click="wajueArrow=!wajueArrow">
  138. 需求挖掘率
  139. <image v-if="wajueArrow" class="arrow"
  140. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  141. <image v-else class="arrow"
  142. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  143. </view>
  144. <view class="screen-record-tab" v-if="wajueArrow">
  145. <block v-for="(item,index) in wajueList" :key="index">
  146. <view class="screen-record-item"
  147. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  148. @click="choice(item)">
  149. {{item.label}}
  150. </view>
  151. </block>
  152. </view>
  153. </view>
  154. <!-- 接待时长 -->
  155. <view class="screen-record">
  156. <view class="screen-record-text" @click="jiedaiArrow=!jiedaiArrow">
  157. 接待时长
  158. <image v-if="jiedaiArrow" class="arrow"
  159. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  160. <image v-else class="arrow"
  161. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  162. </view>
  163. <view class="screen-record-tab" v-if="jiedaiArrow">
  164. <block v-for="(item,index) in jiedaiList" :key="index">
  165. <view class="screen-record-item"
  166. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  167. @click="choice(item)">
  168. {{item.label}}
  169. </view>
  170. </block>
  171. </view>
  172. </view>
  173. <!-- 录音标识 -->
  174. <view class="screen-record">
  175. <view class="screen-record-text" @click="luyinArrow=!luyinArrow">
  176. 录音标识
  177. <image v-if="luyinArrow" class="arrow"
  178. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  179. <image v-else class="arrow"
  180. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  181. </view>
  182. <view class="screen-record-tab" v-if="luyinArrow">
  183. <view class="screen-record-item"
  184. :class="[screen.validInvalid===0?'screen-record-chose':'screen-record-nochose']"
  185. @click="screenvisivalidInvalid(0)">
  186. 有效接待
  187. </view>
  188. <view class="screen-record-item"
  189. :class="[screen.validInvalid===1?'screen-record-chose':'screen-record-nochose']"
  190. @click="screenvisivalidInvalid(1)">
  191. 无效接待
  192. </view>
  193. <view class="screen-record-item"
  194. :class="[screen.validInvalid===2?'screen-record-chose':'screen-record-nochose']"
  195. @click="screenvisivalidInvalid(2)">
  196. 无录音
  197. </view>
  198. <view class="screen-record-item"
  199. :class="[screen.validInvalid===3?'screen-record-chose':'screen-record-nochose']"
  200. @click="screenvisivalidInvalid(3)">
  201. 无效(未审核)
  202. </view>
  203. </view>
  204. </view>
  205. <!-- 标记顾问 -->
  206. <view class="screen-record">
  207. <view class="screen-record-text" @click="markArrow=!markArrow">
  208. 标记顾问
  209. <image v-if="markArrow" class="arrow"
  210. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  211. <image v-else class="arrow"
  212. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  213. </view>
  214. <view class="screen-record-tab" v-if="markArrow">
  215. <view class="screen-record-item"
  216. :class="[screen.markAdvisor==1?'screen-record-chose':'screen-record-nochose']"
  217. @click="screenvisitRecord(1)">
  218. 标记
  219. </view>
  220. <view class="screen-record-item"
  221. :class="[screen.markAdvisor===0?'screen-record-chose':'screen-record-nochose']"
  222. @click="screenvisitRecord(0)">
  223. 未标记
  224. </view>
  225. </view>
  226. </view>
  227. <!-- 到访次数 -->
  228. <view class="screen-record">
  229. <view class="screen-record-text" @click="visitArrow=!visitArrow">
  230. 到访次数
  231. <image v-if="visitArrow" class="arrow"
  232. src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
  233. <image v-else class="arrow"
  234. src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
  235. </view>
  236. <view class="screen-record-tab" v-if="visitArrow">
  237. <block v-for="(item,index) in visitList" :key="index">
  238. <view class="screen-record-item"
  239. :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  240. @click="choice(item)">
  241. {{item.label}}
  242. </view>
  243. </block>
  244. </view>
  245. </view>
  246. </scroll-view>
  247. <view class="screen-foot">
  248. <view class="screen-foot-reset" @click="reset">
  249. 重置
  250. </view>
  251. <view class="screen-foot-sure" @click="screensure">
  252. 确定
  253. </view>
  254. </view>
  255. </view>
  256. </u-popup>
  257. <!-- 选择顾问的选择框 -->
  258. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  259. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  260. <u-popup v-model="timeshow" mode="bottom">
  261. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(5, '接待时间')">
  262. 全部</view>
  263. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(0, '今天')">
  264. 今天</view>
  265. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(1, '昨天')">
  266. 昨天</view>
  267. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(2, '近7天')">
  268. 近7天</view>
  269. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(3, '近30天')">
  270. 近30天</view>
  271. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4)">
  272. 自定义</view>
  273. </u-popup>
  274. <u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select>
  275. <!-- 加载组件 -->
  276. <u-loadings v-model="LOADING"></u-loadings>
  277. </view>
  278. </template>
  279. <script>
  280. export default {
  281. data() {
  282. return {
  283. templateList: [], // 销讲业务
  284. showTemplate: true, // 展示销讲业务
  285. orderBylist: [
  286. // {
  287. // label: '全部',
  288. // value: '0'
  289. // },
  290. {
  291. label: '创建时间倒序',
  292. value: '1'
  293. },
  294. {
  295. label: '创建时间正序',
  296. value: '2'
  297. },
  298. {
  299. label: '接待时间倒序',
  300. value: '3'
  301. },
  302. {
  303. label: '接待时间正序',
  304. value: '4'
  305. },
  306. {
  307. label: '执行率正序',
  308. value: '5'
  309. },
  310. {
  311. label: '执行率倒序',
  312. value: '6'
  313. },
  314. {
  315. label: '接访次数正序',
  316. value: '7'
  317. },
  318. {
  319. label: '接访次数倒序',
  320. value: '8'
  321. },
  322. ],
  323. jiedaiList: [{
  324. label: '0~15min',
  325. value: 1,
  326. isShow: false,
  327. }, {
  328. label: '16~30min',
  329. value: 2,
  330. isShow: false,
  331. }, {
  332. label: '31~60min',
  333. value: 3,
  334. isShow: false,
  335. }, {
  336. label: '61~90min',
  337. value: 4,
  338. isShow: false,
  339. }, {
  340. label: '91min及以上',
  341. value: 5,
  342. isShow: false,
  343. }],
  344. wajueList: [{
  345. label: '30%及以下',
  346. value: 1,
  347. isShow: false,
  348. }, {
  349. label: '31%~50%',
  350. value: 2,
  351. isShow: false,
  352. }, {
  353. label: '51%~70%',
  354. value: 3,
  355. isShow: false,
  356. }, {
  357. label: '71%及以上',
  358. value: 4,
  359. isShow: false,
  360. }],
  361. xiaojiangList: [{
  362. label: '30%及以下',
  363. value: 1,
  364. isShow: false,
  365. }, {
  366. label: '31%~50%',
  367. value: 2,
  368. isShow: false,
  369. }, {
  370. label: '51%~70%',
  371. value: 3,
  372. isShow: false,
  373. }, {
  374. label: '71%及以上',
  375. value: 4,
  376. isShow: false,
  377. }],
  378. activeTotal: 5,
  379. value: '',
  380. screenShow: false,
  381. wajueArrow: true,
  382. jiedaiArrow: true,
  383. markArrow: true,
  384. visitArrow: true,
  385. xiaojiangArrow: true,
  386. luyinArrow: true,
  387. selectshow: false,
  388. totalTimeShow: false,
  389. totalRecords: '',
  390. screen: {
  391. orderBy: '', //排序
  392. agentId: '', //顾问id
  393. markAdvisor: '', //标记顾问
  394. validInvalid: '', // 录音标识
  395. visitRecord: [], // 到访次数
  396. wajueVal: [], // 需求挖掘
  397. xiaojiangVal: [], //销讲执行率
  398. jiedaiVal: [], // 接待时长
  399. marketingBusiness: [], // 选中销讲业务id
  400. },
  401. freeList: [], //顾问
  402. recordList: [],
  403. buildingID: '',
  404. nextPage: 1,
  405. totalRecord: "",
  406. staTime: '',
  407. endtime: '',
  408. isnorefresh: '',
  409. activeTotal2: 0,
  410. timeshow: false,
  411. timetushow: false,
  412. soltishow: false,
  413. methodsisshow: false,
  414. userInfo: {},
  415. counselorName: '接待顾问',//接待顾问
  416. arriveFilter: '接待时间', // 接待时间
  417. sortText: '排序',
  418. visitList: [{
  419. label: '首次到访',
  420. value: 1,
  421. isShow: false,
  422. }, {
  423. label: '2次到访',
  424. value: 2,
  425. isShow: false,
  426. }, {
  427. label: '3次到访',
  428. value: 3,
  429. isShow: false,
  430. }, {
  431. label: '3次以上',
  432. value: 4,
  433. isShow: false,
  434. }, ],
  435. isRefresh:false
  436. }
  437. },
  438. onLoad(options) {
  439. this.LOADING = true
  440. this.isnorefresh = options.refresh;
  441. this.activeTotal = options.activeTotal
  442. this.screen.markAdvisor = options.markAdvisor
  443. this.screen.validInvalid = options.validInvalid
  444. if (options.staTime) {
  445. this.staTime = options.staTime;
  446. this.endtime = options.endtime +' 23:59:59';
  447. }
  448. },
  449. onShow() {
  450. try {
  451. this.$store.commit('stopAduio')
  452. } catch(e) {
  453. console.log(e)
  454. }
  455. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  456. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  457. this.methodsisshow = false;
  458. } else {
  459. this.methodsisshow = true;
  460. }
  461. if (this.isnorefresh == 'refresh') {
  462. this.buildingID = uni.getStorageSync('buildingID').id;
  463. this.recordList = [];
  464. this.nextPage = 1;
  465. this.isRefresh = false;
  466. this.getMyCustom()
  467. this.getFreeList();
  468. // this.getMarketingBusiness()
  469. this.isnorefresh = '';
  470. }
  471. },
  472. onPullDownRefresh(){
  473. this.isRefresh = true;
  474. this.nextPage = 1;
  475. this.getMyCustom()
  476. setTimeout(function () {
  477. uni.stopPullDownRefresh();
  478. }, 1000);
  479. },
  480. onReachBottom() {
  481. if (this.totalRecord == this.nextPage) {
  482. uni.showToast({
  483. icon: 'none',
  484. title: '到底了',
  485. duration: 2000
  486. });
  487. return
  488. } else {
  489. this.nextPage += 1;
  490. this.isRefresh = false;
  491. this.getMyCustom();
  492. }
  493. },
  494. methods: {
  495. // 获取销讲业务
  496. getMarketingBusiness() {
  497. this.$u.get('/customer/marketingBusiness', {
  498. houseId: this.buildingID,
  499. }).then(res => {
  500. this.templateList = res.map(item => {
  501. return {
  502. ...item,
  503. isShow: false,
  504. }
  505. })
  506. })
  507. },
  508. taptimetuisshow() {
  509. this.timetushow = true;
  510. },
  511. //选择标签
  512. selectCallback2(e) {
  513. this.sortText = e[0].label
  514. this.screen.orderBy = e[0].value;
  515. this.nextPage = 1;
  516. this.recordList = [];
  517. this.isRefresh = false;
  518. this.getMyCustom();
  519. },
  520. //时间选择
  521. tabtimetap(index, text) {
  522. this.timeshow = false;
  523. if(text) {
  524. this.arriveFilter = text
  525. }
  526. if (index == 4) {
  527. this.totalTimeShow = true;
  528. } else {
  529. this.activeTotal = index;
  530. this.staTime = '';
  531. this.endtime = '';
  532. this.nextPage = 1;
  533. this.recordList = [];
  534. this.isRefresh = false;
  535. this.getMyCustom();
  536. }
  537. },
  538. //自定义时间
  539. totalTimeChange(e) {
  540. this.staTime = e.startDate;
  541. this.endtime = e.endDate;
  542. this.activeTotal = 4;
  543. this.nextPage = 1;
  544. this.recordList = [];
  545. this.isRefresh = false;
  546. this.getMyCustom();
  547. },
  548. tapThevisiting(item) {
  549. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  550. if (newmenulist.jdjl_ck != true) {
  551. return
  552. }
  553. this.wordFinishFraction=item.wordFinishFraction
  554. this.wordFraction=item.wordFraction
  555. uni.showLoading({
  556. title: '加载中',
  557. mask: true
  558. });
  559. if (item.status == 0) {
  560. setTimeout(function() {
  561. uni.hideLoading();
  562. }, 2000);
  563. uni.showToast({
  564. icon: "none",
  565. title: "排队中"
  566. })
  567. return
  568. } else {
  569. const parames = {
  570. pageNum: 1,
  571. pageSize: 100,
  572. query: {
  573. customerId: item.id,
  574. }
  575. }
  576. var item = {
  577. bg: 0,
  578. customerId: item.id,
  579. }
  580. uni.setStorageSync("searchobj", item); //写入缓存
  581. uni.setStorageSync("entrance", 1); //写入缓存
  582. this.$u.post("/corpus/findByPage", parames).then(res => {
  583. if (res == null) {
  584. setTimeout(function() {
  585. uni.hideLoading();
  586. }, 2000);
  587. uni.showToast({
  588. icon: "none",
  589. title: "暂无音频"
  590. })
  591. return
  592. } else {
  593. setTimeout(function() {
  594. uni.hideLoading();
  595. }, 2000);
  596. let newobj = res[0];
  597. if (res[0].merge == 0) {
  598. uni.navigateTo({
  599. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=2&wordFraction=${this.wordFraction}&wordFinishFraction=${this.wordFinishFraction}`
  600. })
  601. } else {
  602. uni.navigateTo({
  603. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=1`
  604. })
  605. }
  606. }
  607. })
  608. }
  609. },
  610. getMyCustom() {
  611. let dateType = 0;
  612. let recDurationInterval = 0;
  613. if (this.activeTotal == 5) {
  614. dateType = null;
  615. } else if (this.activeTotal == 4) {
  616. dateType = null;
  617. } else {
  618. dateType = this.activeTotal;
  619. }
  620. if (this.activeTotal2 == 0) {
  621. recDurationInterval = null
  622. } else {
  623. recDurationInterval = this.activeTotal2
  624. }
  625. this.screen.jiedaiVal = []
  626. this.screen.wajueVal = []
  627. this.screen.xiaojiangVal = []
  628. this.screen.visitRecord = []
  629. this.screen.marketingBusiness = []
  630. // 到访次数
  631. this.visitList.forEach(i => {
  632. if (i.isShow) this.screen.visitRecord.push(i.value)
  633. })
  634. // 接待时长
  635. this.jiedaiList.forEach(i => {
  636. if (i.isShow) this.screen.jiedaiVal.push(i.value)
  637. })
  638. // 需求挖掘
  639. this.wajueList.forEach(i => {
  640. if (i.isShow) this.screen.wajueVal.push(i.value)
  641. })
  642. // 销讲执行率
  643. this.xiaojiangList.forEach(i => {
  644. if (i.isShow) this.screen.xiaojiangVal.push(i.value)
  645. })
  646. // 销讲业务
  647. this.templateList.forEach(i => {
  648. if (i.isShow) this.screen.marketingBusiness.push(i.value)
  649. })
  650. var parames = {
  651. pageNum: this.nextPage,
  652. pageSize: 10,
  653. query: {
  654. projectId: this.buildingID,
  655. time: 1,
  656. staDate: this.staTime,
  657. endDate: this.endtime,
  658. markAdvisor: this.screen.markAdvisor,
  659. dateType: dateType,
  660. recDurationInterval: recDurationInterval,
  661. orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, //排序,
  662. validInvalid:this.screen.validInvalid==2?null:this.screen.validInvalid,//录音标识
  663. recording:this.screen.validInvalid==2?0:null,
  664. visitRecords:this.screen.visitRecord.length? this.screen.visitRecord.join(","): '',//到访次数
  665. wordFractions: this.screen.wajueVal.length ? this.screen.wajueVal.join(',') : '', //需求挖掘
  666. duractionNums: this.screen.jiedaiVal.length ? this.screen.jiedaiVal.join(',') : '', //接待时长
  667. fractions: this.screen.xiaojiangVal.length ? this.screen.xiaojiangVal.join(',') : '', //销讲执行
  668. marketingBusiness: this.screen.marketingBusiness.length ? this.screen.marketingBusiness.join(',') : '', //销讲执行
  669. }
  670. };
  671. if (this.screen.agentId) {
  672. parames.query.agentId = this.screen.agentId
  673. }
  674. this.$u.post("/customer/findbypage", parames).then(data => {
  675. this.LOADING = false
  676. console.log(data)
  677. let list = data.records || [];
  678. if(this.isRefresh){
  679. this.recordList = list;
  680. }else{
  681. this.recordList = [].concat(this.recordList,list)
  682. // [...this.recordList, ...list];
  683. }
  684. this.totalRecord = data.pages;
  685. this.totalRecords = data.total;
  686. if(this.staTime && this.endtime) {
  687. this.arriveFilter = `${this.staTime}-${this.endtime}`
  688. }
  689. }).catch(e => {
  690. this.LOADING = false
  691. })
  692. },
  693. //获取顾问列表
  694. getFreeList() {
  695. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => {
  696. this.freeList = res;
  697. this.freeList.forEach(item => {
  698. item.label = item.name;
  699. item.value = item.accountId
  700. })
  701. this.freeList.unshift({
  702. label: '全部',
  703. value: ''
  704. })
  705. })
  706. },
  707. //select接待顾问
  708. actionSelectCallback(e) {
  709. if(e[0].label=='全部'){
  710. this.counselorName = '接待顾问'
  711. this.screen.agentId = ''
  712. }else{
  713. this.screen.agentId = e[0].value;
  714. this.counselorName = e[0].label
  715. }
  716. this.recordList = [];
  717. this.nextPage = 1;
  718. this.isRefresh = false;
  719. this.getMyCustom();
  720. },
  721. reset() {
  722. this.screen.agentId = ''
  723. this.screen.validInvalid = ''
  724. this.screen.markAdvisor = ''
  725. this.screen.orderBy = '';
  726. this.screen.jiedaiVal = []
  727. this.screen.wajueVal = []
  728. this.screen.xiaojiangVal = []
  729. this.screen.visitRecord = []
  730. this.screen.marketingBusiness = []
  731. this.sortText = '排序';
  732. this.arriveFilter = '接待时间';
  733. this.staTime = '';
  734. this.endTime = '';
  735. this.nextPage = 1;
  736. this.activeTotal = 5;
  737. this.recordList = [];
  738. this.counselorName = '接待顾问';
  739. this.visitList.forEach(i => {
  740. i.isShow = false
  741. })
  742. this.jiedaiList.forEach(i => {
  743. i.isShow = false
  744. })
  745. this.wajueList.forEach(i => {
  746. i.isShow = false
  747. })
  748. this.xiaojiangList.forEach(i => {
  749. i.isShow = false
  750. })
  751. this.templateList.forEach(i => {
  752. i.isShow = false
  753. })
  754. this.isRefresh = false;
  755. this.getMyCustom();
  756. },
  757. choice(item) {
  758. item.isShow = !item.isShow;
  759. },
  760. // 标记顾问
  761. screenvisitRecord(i) {
  762. if (this.screen.markAdvisor === i) {
  763. this.screen.markAdvisor = ''
  764. } else {
  765. this.screen.markAdvisor = i
  766. }
  767. },
  768. // 录音标识
  769. screenvisivalidInvalid(i) {
  770. if (this.screen.validInvalid == i) {
  771. this.screen.validInvalid = null
  772. } else {
  773. this.screen.validInvalid = i
  774. }
  775. },
  776. screensure() {
  777. this.screenShow = false;
  778. this.recordList = [];
  779. this.nextPage = 1;
  780. this.isRefresh = false;
  781. this.getMyCustom();
  782. },
  783. goSearch() {
  784. uni.navigateTo({
  785. url: '/pages/center/records/recordSearch'
  786. });
  787. },
  788. },
  789. filters: {
  790. // 加密手机号
  791. encryption(phone) {
  792. if (!phone) return
  793. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  794. }
  795. }
  796. }
  797. </script>
  798. <style lang="scss" scoped>
  799. .box {
  800. width: 100%;
  801. height: 100%;
  802. background: #F8F8F8;
  803. }
  804. .timeview {
  805. height: 90rpx;
  806. line-height: 90rpx;
  807. width: 100%;
  808. text-align: center;
  809. border-bottom: 1rpx solid #F8F8F8;
  810. }
  811. //时间切换的样式
  812. .boxtittab {
  813. position: sticky;
  814. top: var(--window-top);
  815. z-index: 999;
  816. width: 100;
  817. height: 92rpx;
  818. background: #FFFFFF;
  819. display: flex;
  820. align-items: center;
  821. .tabbox {
  822. flex-shrink: 0;
  823. flex-grow: 1;
  824. height: 100%;
  825. text-align: center;
  826. line-height: 92rpx;
  827. color: #666666;
  828. font-size: 28rpx;
  829. overflow: hidden;
  830. text-overflow: ellipsis;
  831. display: -webkit-box;
  832. /* 将对象作为弹性伸缩盒子模型显示 */
  833. -webkit-line-clamp: 1;
  834. /* 控制最多显示几行 */
  835. -webkit-box-orient: vertical;
  836. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  837. }
  838. .activeColor{
  839. font-weight: bold;
  840. color: #2671E2;
  841. }
  842. }
  843. .search-box {
  844. width: 100%;
  845. height: 102rpx;
  846. background: #FFFFFF;
  847. display: flex;
  848. align-items: center;
  849. justify-content: center;
  850. .search {
  851. width: 94%;
  852. height: 70rpx;
  853. display: flex;
  854. align-items: center;
  855. background: #F8F8F8;
  856. border-radius: 33rpx;
  857. .search-img {
  858. width: 26rpx;
  859. height: 30rpx;
  860. margin-left: 20rpx;
  861. .search-img1 {
  862. width: 100%;
  863. height: 100%;
  864. margin-top: 2rpx;
  865. }
  866. }
  867. .search-text {
  868. font-size: 28rpx;
  869. font-weight: 400;
  870. color: #999999;
  871. margin-left: 10rpx;
  872. }
  873. }
  874. .search-screen {
  875. width: 40rpx;
  876. height: 40rpx;
  877. margin-left: 30rpx;
  878. .search-screen1 {
  879. width: 100%;
  880. height: 100%;
  881. }
  882. }
  883. }
  884. .count {
  885. width: 100%;
  886. height: 82rpx;
  887. line-height: 82rpx;
  888. display: flex;
  889. align-items: center;
  890. justify-content: center;
  891. background-color: #f8f8f8;
  892. font-size: 30rpx;
  893. font-family: PingFangSC-Regular, PingFang SC;
  894. font-weight: 400;
  895. color: #333333;
  896. text {
  897. color: #E7483C;
  898. }
  899. }
  900. .content {
  901. .content-tips {
  902. background: #fff;
  903. box-sizing: border-box;
  904. overflow: hidden;
  905. margin-bottom: 20rpx;
  906. &:last-child{
  907. margin-bottom: 0
  908. }
  909. .content-first {
  910. padding: 0 30rpx;
  911. height: 92rpx;
  912. border-bottom: 1rpx solid #D8D8D8;
  913. display: flex;
  914. align-items: center;
  915. justify-content: space-between;
  916. .left {
  917. flex-shrink: 0;
  918. min-width: 40%;
  919. display: flex;
  920. align-items: center;
  921. overflow: hidden;
  922. .adviser {
  923. margin-right: 10rpx;
  924. padding: 5rpx 11rpx;
  925. border-radius: 50%;
  926. border: 1rpx solid #2671E2;
  927. font-size: 30rpx;
  928. color: #2671E2;
  929. }
  930. .img {
  931. width: 52rpx;
  932. height: 52rpx;
  933. background: #FFFFFF;
  934. border: 1px solid #C9C9C9;
  935. border-radius: 50%;
  936. text-align: center;
  937. }
  938. .name {
  939. color: #333333;
  940. font-size: 32rpx;
  941. font-weight: bold;
  942. }
  943. .status {
  944. margin-left: 19rpx;
  945. width: 110rpx;
  946. background: #FFF9F5;
  947. border-radius: 4rpx;
  948. font-size: 26rpx;
  949. font-weight: 400;
  950. color: #EC8D49;
  951. text-align: center;
  952. }
  953. }
  954. .right {
  955. flex: 1;
  956. display: flex;
  957. font-size: 30rpx;
  958. justify-content: flex-end;
  959. view,
  960. text {
  961. flex-shrink: 0;
  962. }
  963. .point {
  964. flex-shrink: 0;
  965. width: 12rpx;
  966. height: 12rpx;
  967. background: #2B6EFF;
  968. border-radius: 50%;
  969. margin-right: 9rpx;
  970. margin-top: 16rpx;
  971. }
  972. }
  973. }
  974. .content-sec {
  975. padding: 28rpx 30rpx 32rpx;
  976. display: flex;
  977. justify-content: space-between;
  978. .left {
  979. display: flex;
  980. align-items: center;
  981. .adviser {
  982. margin-right: 10rpx;
  983. padding: 5rpx 11rpx;
  984. border-radius: 50%;
  985. border: 1rpx solid #2671E2;
  986. background: #2671E2;
  987. font-size: 30rpx;
  988. color: #fff;
  989. }
  990. .cus {
  991. font-size: 30rpx;
  992. font-weight: 400;
  993. color: #333;
  994. overflow: hidden;
  995. text-overflow: ellipsis;
  996. display: -webkit-box;
  997. line-height: 23px;
  998. max-height: 46px;
  999. -webkit-line-clamp: 1;
  1000. -webkit-box-orient: vertical;
  1001. }
  1002. .arriveNum {
  1003. font-size: 30rpx;
  1004. font-weight: 400;
  1005. margin-left: 10rpx;
  1006. }
  1007. }
  1008. .right {
  1009. font-size: 28rpx;
  1010. font-weight: 400;
  1011. color: #2671E2;
  1012. display: flex;
  1013. align-items: center;
  1014. .img {
  1015. margin-right: 10rpx;
  1016. width: 32rpx;
  1017. height: 32rpx;
  1018. }
  1019. }
  1020. }
  1021. .content-newadd{
  1022. padding: 0 30rpx 34rpx;
  1023. display: flex;
  1024. align-items: center;
  1025. justify-content: space-between;
  1026. font-size: 30rpx;
  1027. color: #333;
  1028. }
  1029. .content-last {
  1030. padding: 0 30rpx 34rpx;
  1031. font-size: 30rpx;
  1032. font-weight: 400;
  1033. color: #666666;
  1034. display: flex;
  1035. align-items: center;
  1036. justify-content: space-between;
  1037. .c-items {
  1038. flex-shrink: 0;
  1039. display: flex;
  1040. align-items: center;
  1041. font-size: 28rpx;
  1042. .c-items-img {
  1043. margin-right: 10rpx;
  1044. width: 32rpx;
  1045. height: 32rpx;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. }
  1051. // 这是弹出层
  1052. .screen {
  1053. width: 750rpx;
  1054. .screen-counselor {
  1055. display: flex;
  1056. height: 106rpx;
  1057. padding: 0 30rpx;
  1058. box-sizing: border-box;
  1059. border-bottom: 1px solid #EEEEEE;
  1060. .screen-text {
  1061. margin: 40rpx 0 36rpx 0;
  1062. font-size: 30rpx;
  1063. font-weight: 400;
  1064. color: #333333;
  1065. line-height: 30rpx;
  1066. }
  1067. .screen-sel {
  1068. display: flex;
  1069. justify-content: space-between;
  1070. width: 500rpx;
  1071. margin-left: 60rpx;
  1072. .screen-sel-img {
  1073. margin: 40rpx 0 36rpx 0;
  1074. width: 14rpx;
  1075. height: 30rpx;
  1076. }
  1077. .screen-inp {
  1078. margin-top: 20rpx;
  1079. }
  1080. }
  1081. }
  1082. .screen-record {
  1083. overflow: hidden;
  1084. padding: 0 30rpx;
  1085. box-sizing: border-box;
  1086. border-bottom: 1px solid #e0e0e0;
  1087. .screen-record-text {
  1088. padding: 30rpx 0;
  1089. font-size: 30rpx;
  1090. font-weight: 600;
  1091. color: #333333;
  1092. line-height: 30rpx;
  1093. display: flex;
  1094. align-items: center;
  1095. justify-content: space-between;
  1096. .arrow {
  1097. width: 30rpx;
  1098. height: 14rpx;
  1099. }
  1100. }
  1101. .screen-record-tab {
  1102. margin-top: 30rpx;
  1103. padding-bottom: 10rpx;
  1104. display: flex;
  1105. flex-wrap: wrap;
  1106. .screen-record-item {
  1107. min-width: 150rpx;
  1108. padding: 0 14rpx;
  1109. height: 60rpx;
  1110. border-radius: 8rpx;
  1111. text-align: center;
  1112. line-height: 60rpx;
  1113. margin: 0 22rpx 22rpx 0;
  1114. &:nth-child(4n) {
  1115. margin-right: 0;
  1116. }
  1117. }
  1118. .screen-record-chose {
  1119. background: #F1F6FD;
  1120. color: #2671E2;
  1121. }
  1122. .screen-record-nochose {
  1123. background: #F7F8FA;
  1124. color: #333;
  1125. }
  1126. }
  1127. }
  1128. .screen-foot {
  1129. width: 100%;
  1130. height: 78rpx;
  1131. display: flex;
  1132. margin: 30rpx 30rpx 0;
  1133. .screen-foot-reset {
  1134. width: 176rpx;
  1135. height: 78rpx;
  1136. line-height: 78rpx;
  1137. background: #FFFFFF;
  1138. border-radius: 8rpx;
  1139. border: 1px solid #2671E2;
  1140. margin-right: 30rpx;
  1141. font-size: 30rpx;
  1142. font-family: PingFangSC-Regular, PingFang SC;
  1143. font-weight: 400;
  1144. color: #2671E2;
  1145. text-align: center;
  1146. }
  1147. .screen-foot-sure {
  1148. width: 484rpx;
  1149. height: 78rpx;
  1150. line-height: 78rpx;
  1151. background: #2671E2;
  1152. border: 1px solid #2671E2;
  1153. border-radius: 8rpx;
  1154. font-size: 30rpx;
  1155. font-family: PingFangSC-Regular, PingFang SC;
  1156. font-weight: 400;
  1157. color: #FFFFFF;
  1158. text-align: center;
  1159. }
  1160. }
  1161. }
  1162. </style>