|
@@ -0,0 +1,179 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title-container">
|
|
|
+ <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
+ </div>
|
|
|
+ <y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="selectPage">
|
|
|
+ <template slot="left">
|
|
|
+ <el-input style="width: 200px;float: left;" class="filter-item" v-model="listQuery.keyword" placeholder="关键字(姓名、手机号、座机号、微信号、QQ号)" clearable></el-input>
|
|
|
+ <el-select v-model="listQuery.clientManagerId" filterable placeholder="客户经理(可搜索)" style=" width: 180px;margin-left: 10px;float: left;">
|
|
|
+ <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-model="listQuery.terminal" placeholder="终端客户" style=" width: 180px;margin-left: 10px;float: left;">
|
|
|
+ <el-option label="是" value="true"></el-option>
|
|
|
+ <el-option label="否" value="false"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList" round>搜索</el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="success" @click="resetParams()">重置</el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="warning" @click="exportPage()">导出</el-button>
|
|
|
+ <PermissionButton menu-code="_views_customer_company_add" class-name="filter-item" name round type="danger" @click="openCompanyFormDialog()" />
|
|
|
+ </template>
|
|
|
+ <parentTable ref="table" v-loading="listLoading" :data="pageData.records" slot="table" style="width: 100%;">
|
|
|
+ <el-table-column label="姓名" align="center" prop="name">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.name }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="手机号" align="center" prop="mobile">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.mobile }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="座机号" align="center" prop="phone">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.phone }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="性别" align="center" prop="sex">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.sex }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="身份证号" align="center" prop="idNo">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.idNo }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="微信号" align="center" prop="wechatNo">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.wechatNo }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="QQ号" align="center" prop="qqNo">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.qqNo}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="部门" align="center" prop="department">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.department}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="职位" align="center" prop="duty">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.duty}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="维护人" align="center" prop="clientManager">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.clientManager}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="终端客户" align="center" prop="terminal">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.terminal ? '终端客户' : '非终端客户' }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="来单量" align="center" prop="orderVolume">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-link v-if="row.orderVolume > 0">{{ row.orderVolume }}</el-link>
|
|
|
+ <span v-else>{{ row.orderVolume }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="评估收入" align="center" prop="estimatedRevenue">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.estimatedRevenue }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建时间" align="center" prop="created">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.created }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" width="100" fixed="right">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-button type="text" @click="getDetail(row.id)">修改</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </parentTable>
|
|
|
+ </y-page-list-layout>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import YPageListLayout from '@/components/YPageListLayout';
|
|
|
+import Breadcrumb from '@/components/Breadcrumb';
|
|
|
+import PermissionButton from '@/components/PermissionButton/PermissionButton';
|
|
|
+import { getCookie, setCookie, removeCookie } from '@/utils/auth';
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'CustomerPersonalList',
|
|
|
+ components: {
|
|
|
+ Breadcrumb,
|
|
|
+ YPageListLayout,
|
|
|
+ PermissionButton,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pageData: { records: [] },
|
|
|
+ listLoading: false,
|
|
|
+ listQuery: {
|
|
|
+ page: 1,
|
|
|
+ size: 20,
|
|
|
+ current: 1,
|
|
|
+ },
|
|
|
+ // 用户下拉列表
|
|
|
+ allUsers: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ // 获取用户下拉列表
|
|
|
+ this.getAllUser();
|
|
|
+ this.selectPage();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 获取所有用户下拉列表
|
|
|
+ getAllUser() {
|
|
|
+ this.$api.user.simpleAll().then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.allUsers = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 条件查询
|
|
|
+ searchList() {
|
|
|
+ // 重置分页
|
|
|
+ this.listQuery.page = 1;
|
|
|
+ this.listQuery.size = 20;
|
|
|
+ this.listQuery.current = 1;
|
|
|
+ this.selectPage();
|
|
|
+ },
|
|
|
+ // 重置搜索条件
|
|
|
+ resetParams() {
|
|
|
+ this.$router.push({ query: {} });
|
|
|
+ this.listQuery = {
|
|
|
+ page: 1,
|
|
|
+ size: 20,
|
|
|
+ current: 1,
|
|
|
+ };
|
|
|
+ this.selectPage();
|
|
|
+ },
|
|
|
+ // 分页查询
|
|
|
+ selectPage() {
|
|
|
+ this.listLoading = true;
|
|
|
+ this.$api.customerLinkman.getCustomerPersonalPage(this.listQuery).then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.pageData = res.data;
|
|
|
+ }
|
|
|
+ this.listLoading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 客户列表导出
|
|
|
+ exportPage() {
|
|
|
+ this.$utils.exportUtil('/customerLinkman/getCustomerPersonalPage/export', this.listQuery, '导出');
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|