index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div class="assignAwait">
  3. <van-nav-bar class="navBar" title="客资任务" left-arrow @click-left="onClickLeft" />
  4. <div class="container">
  5. <van-list v-model="loading" :finished="finished" finished-text="--已经到底了--">
  6. <div class="newCarList" v-for="(item, index) in list" :key="index">
  7. <van-cell is-link>
  8. <div class="newlist" @click="approveFn(item)">
  9. <div class="title">
  10. <p class="textLeft">{{ item.name }}</p>
  11. </div>
  12. <div class="info">
  13. 客资线索:<span v-if="item.cid == 3">申请代理</span
  14. ><span v-if="item.cid == 4">开设门店</span
  15. ><span v-if="item.cid == 5">批量采购</span>
  16. </div>
  17. <div class="info">联系电话:{{ item.phone }}</div>
  18. <div class="info" v-if="item.createTime">首次接入时间:{{ item.createTime }}</div>
  19. <div class="info" v-if="item.latestClueTime">
  20. 最后一次跟进时间:{{ item.latestClueTime }}
  21. </div>
  22. </div>
  23. </van-cell>
  24. </div>
  25. <van-empty description="" v-if="list.length == 0" />
  26. </van-list>
  27. </div>
  28. </div>
  29. </template>
  30. <script>
  31. import { selectNotAllocationList } from '@/api/assignAwait';
  32. export default {
  33. name: 'assignAwait',
  34. data() {
  35. return {
  36. disabled: false,
  37. loading: false,
  38. list: [],
  39. finished: true,
  40. };
  41. },
  42. activated() {
  43. this.approveList();
  44. },
  45. methods: {
  46. approveFn(row) {
  47. this.list = [];
  48. this.$router.push({
  49. path: '/assignPage',
  50. query: { id: row.customerClueInfoId },
  51. });
  52. },
  53. approveList() {
  54. let loading1 = this.$toast.loading({
  55. duration: 0,
  56. message: '数据加载中...',
  57. forbidClick: true,
  58. });
  59. selectNotAllocationList().then((res) => {
  60. loading1.clear();
  61. this.disabled = false;
  62. this.loading = false;
  63. this.list = res.data;
  64. });
  65. },
  66. onClickLeft() {
  67. this.$router.push('/My/index');
  68. },
  69. },
  70. };
  71. </script>
  72. <style scoped lang="scss">
  73. .assignAwait {
  74. height: 100%;
  75. width: 100%;
  76. display: flex;
  77. flex-direction: column;
  78. .header {
  79. position: sticky;
  80. top: 0px;
  81. z-index: 10;
  82. }
  83. .newCarList {
  84. margin: 14px;
  85. border-radius: 8px;
  86. overflow: hidden;
  87. }
  88. .newCarList .van-cell {
  89. border-radius: 6px;
  90. overflow: hidden;
  91. }
  92. .newCarList .newlist .title {
  93. line-height: 32px;
  94. }
  95. .newCarList .van-cell__right-icon {
  96. top: -4px;
  97. }
  98. .newCarList .newlist {
  99. box-sizing: border-box;
  100. }
  101. .newCarList .newlist .title {
  102. font-size: 14px;
  103. font-weight: bold;
  104. color: #333;
  105. line-height: 14px;
  106. }
  107. .newCarList .newlist .info {
  108. font-size: 14px;
  109. color: #999;
  110. line-height: 26px;
  111. }
  112. .newCarList .newlist .title p {
  113. padding: 0;
  114. margin: 0;
  115. }
  116. .newCarList .newlist .title .textLeft {
  117. display: inline-block;
  118. padding-bottom: 10px;
  119. }
  120. .newCarList .newlist .title .textRight {
  121. float: right;
  122. color: #0057ba;
  123. }
  124. .van-tab--active {
  125. color: #0057ba;
  126. }
  127. }
  128. </style>