فهرست منبع

客户业务员检索功能

cz 11 ماه پیش
والد
کامیت
1e819ff63f
2فایلهای تغییر یافته به همراه23 افزوده شده و 3 حذف شده
  1. 22 2
      src/views/customer/file/index.vue
  2. 1 1
      vite.config.js

+ 22 - 2
src/views/customer/file/index.vue

@@ -86,6 +86,20 @@
               </div>
             </div>
           </el-collapse-item>
+          <el-collapse-item title="业务员" name="5">
+            <template #title>
+              <div>
+                <TitleInfo :content="'业务员'"></TitleInfo>
+              </div>
+            </template>
+            <div style="padding:0 10px">
+              <div style="display:flex;justify-content:space-between;cursor:pointer" v-for="(item,index) in businessUserData" :key="item.userId"
+                   :class="{'activeSearch':(item.userId+'tag')==activeSearch}" :style="{marginTop:index!=0?'15px':'0px'}"
+                   @click="handleSearch(item.userId,'userId')">
+                <span>{{item.nickName}}</span> <span>{{item.customerCount}}</span>
+              </div>
+            </div>
+          </el-collapse-item>
         </el-collapse>
       </div>
       <div style="width:10px"></div>
@@ -404,7 +418,7 @@ import XmCustomer from "@/views/xiaoman/index.vue";
 const AddCustomerDom = ref(null);
 const customerId = ref("");
 const { proxy } = getCurrentInstance();
-const activeNames = ref(["1", "2", "3", "4"]);
+const activeNames = ref(["1", "2", "3", "4", "5"]);
 const loading = ref(false);
 const submitLoading = ref(false);
 const openAllocation = ref(false);
@@ -1133,7 +1147,13 @@ const leftDataFour = ref({
   30: 0,
   180: 0,
 });
-
+const businessUserData = ref([]);
+const getUserData = () => {
+  proxy.post("/customer/saleUserStatistics", { userId: "" }).then((res) => {
+    businessUserData.value = res;
+  });
+};
+getUserData();
 const obtainStatisticalData = () => {
   proxy
     .post("/customer/sourceStatistics", { statisticsType: 1, type: null })

+ 1 - 1
vite.config.js

@@ -39,7 +39,7 @@ export default defineConfig(({
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          target: 'http://139.9.102.170:9901/test-api',
+          target: 'http://139.9.102.170:10007/test-api',
           // target: 'http://192.168.1.101:9898/test-api',
           // 正式地址
           // target: "http://106.54.243.161:9900/prod-api",