|
@@ -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 })
|