Ver código fonte

家装客资

zhujindu 1 ano atrás
pai
commit
eb07bb6336

+ 8 - 0
src/api/assignAwait.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request';
+export function selectNotAllocationList(query) {
+  return request({
+    url: 'mobile/customerClueInfo/selectNotAllocationList',
+    method: 'get',
+    params: query,
+  });
+}

+ 2 - 1
src/api/index.js

@@ -848,7 +848,8 @@ export function getMobileUserInfo(query) {
 export function approvalStore(data) {
   return request({
     url: '/mobile/store/approvalStore',
-    params: query,
+    method: 'post',
+    data: data,
   });
 }
 

+ 12 - 0
src/router/index.js

@@ -413,6 +413,18 @@ const router = new VueRouter({
           name: 'VisitSummaryDetail',
           component: () => import('@/views/week/VisitSummaryDetail.vue'),
         },
+        {
+          path: '/assignAwait',
+          name: 'assignAwait',
+          meta: { title: '待分配客资' },
+          component: () => import('@/views/week/assignAwait/index.vue'),
+        },
+        {
+          path: '/assignAwaitDetail',
+          name: 'assignAwaitDetail',
+          meta: { title: '待分配客资详情' },
+          component: () => import('@/views/week/assignAwait/assignAwaitDetail.vue'),
+        },
       ],
     },
   ],

Diferenças do arquivo suprimidas por serem muito extensas
+ 1228 - 0
src/views/week/assignAwait/assignAwaitDetail.vue


+ 553 - 0
src/views/week/assignAwait/index.vue

@@ -0,0 +1,553 @@
+<template>
+  <div class="assignAwait">
+    <van-nav-bar class="navBar" title="客资任务" left-arrow @click-left="onClickLeft" />
+    <div class="container">
+      <van-list v-model="loading" :finished="finished" finished-text="--已经到底了--">
+        <div class="newCarList" v-for="(item, index) in list" :key="index">
+          <van-cell is-link>
+            <div class="newlist" @click="approveFn(item)">
+              <div class="title">
+                <p class="textLeft">{{ item.name }}</p>
+              </div>
+              <div class="info">
+                客资线索:<span v-if="item.cid == 3">申请代理</span
+                ><span v-if="item.cid == 4">开设门店</span
+                ><span v-if="item.cid == 5">批量采购</span>
+              </div>
+              <div class="info">联系电话:{{ item.phone }}</div>
+              <div class="info" v-if="item.createTime">首次接入时间:{{ item.createTime }}</div>
+              <div class="info" v-if="item.latestClueTime">
+                最后一次跟进时间:{{ item.latestClueTime }}
+              </div>
+            </div>
+          </van-cell>
+        </div>
+        <van-empty description="" v-if="list.length == 0" />
+      </van-list>
+    </div>
+  </div>
+</template>
+
+<script>
+import { selectNotAllocationList } from '@/api/assignAwait';
+export default {
+  name: 'assignAwait',
+  data() {
+    return {
+      disabled: false,
+      loading: false,
+      list: [],
+      finished: true,
+    };
+  },
+  activated() {
+    this.approveList();
+  },
+  methods: {
+    approveFn(row) {
+      this.list = [];
+      this.$router.push({
+        path: '/assignAwaitDetail',
+        query: { id: row.customerClueInfoId },
+      });
+    },
+    approveList() {
+      let loading1 = this.$toast.loading({
+        duration: 0,
+        message: '数据加载中...',
+        forbidClick: true,
+      });
+      this.list = [
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+        {
+          createBy: 'admin',
+          createTime: '2024-10-25 15:14:03',
+          customerClueInfoId: 100,
+          id: null,
+          cid: '4',
+          name: '刘总2',
+          phone: '13134348888',
+          deptId: 1070,
+          province: '020',
+          city: '310100',
+          country: '310101',
+          street: '310101013',
+          detailAddress: '江苏省苏州市张家港金港镇江南建材商贸城',
+          orderMark: '申请代理提交',
+          jobNumber: 'bks123',
+          industry: '涂料',
+          brand: '多乐士',
+          paintExperience: '1',
+          physicalStore: '1',
+          productCategory: '腻子粉',
+          purchaseQuantity: '10000',
+          customerClueStatus: '1',
+          isClose: '0',
+          sendUserId: 35374,
+          delFlag: '0',
+          allocationStatus: '0',
+        },
+      ];
+      loading1.clear();
+      return;
+      selectNotAllocationList().then((res) => {
+        loading1.clear();
+        this.disabled = false;
+        this.loading = false;
+        this.list = res.data;
+      });
+    },
+    onClickLeft() {
+      this.$router.push('/My/index');
+    },
+  },
+};
+</script>
+<style scoped lang="scss">
+.assignAwait {
+  height: 100%;
+  width: 100%;
+  display: flex;
+  flex-direction: column;
+  .header {
+    position: sticky;
+    top: 0px;
+    z-index: 10;
+  }
+  .newCarList {
+    margin: 14px;
+    border-radius: 8px;
+    overflow: hidden;
+  }
+  .newCarList .van-cell {
+    border-radius: 6px;
+    overflow: hidden;
+  }
+  .newCarList .newlist .title {
+    line-height: 32px;
+  }
+  .newCarList .van-cell__right-icon {
+    top: -4px;
+  }
+  .newCarList .newlist {
+    box-sizing: border-box;
+  }
+  .newCarList .newlist .title {
+    font-size: 14px;
+    font-weight: bold;
+    color: #333;
+    line-height: 14px;
+  }
+  .newCarList .newlist .info {
+    font-size: 14px;
+    color: #999;
+    line-height: 26px;
+  }
+  .newCarList .newlist .title p {
+    padding: 0;
+    margin: 0;
+  }
+  .newCarList .newlist .title .textLeft {
+    display: inline-block;
+    padding-bottom: 10px;
+  }
+  .newCarList .newlist .title .textRight {
+    float: right;
+    color: #0057ba;
+  }
+  .van-tab--active {
+    color: #0057ba;
+  }
+}
+</style>

+ 12 - 0
src/views/week/index.vue

@@ -62,6 +62,18 @@
             <van-icon name="arrow" size="16" />
           </template>
         </van-cell>
+        <van-cell title="待分配客资" to="/assignAwait">
+          <template #icon>
+            <van-icon :name="history" class="zicon" />
+          </template>
+          <!-- <template #title>
+            <span>客资任务</span>
+            &nbsp;<van-tag type="danger" v-if="customerClueNum > 0">{{ customerClueNum }}</van-tag>
+          </template> -->
+          <template #right-icon>
+            <van-icon name="arrow" size="16" />
+          </template>
+        </van-cell>
       </van-cell-group>
       <!--      汇报类-->
       <van-cell-group inset class="mtb10">