|
|
@@ -119,45 +119,49 @@
|
|
|
</el-row>
|
|
|
|
|
|
<el-table height="500" border v-loading="loading" :data="customerList">
|
|
|
- <el-table-column label="客户编码" align="center" prop="customerCode" />
|
|
|
- <el-table-column label="客户名称" align="center" prop="customerName" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column label="客户编码" align="center" prop="customerCode" width="110" />
|
|
|
+ <el-table-column label="客户名称" align="center" prop="customerName" :show-overflow-tooltip="true" min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link @click="handleShow(scope.row)" :underline="false" type="primary">{{ scope.row.isDuplicate==1?getCustomerName(scope.row.customerName)+"[从]":getCustomerName(scope.row.customerName) }}</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="手机" width="120px" align="center" prop="mobile">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{scope.row.mobile}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="客户来源" align="center" prop="source">
|
|
|
+ <el-table-column label="手机" align="center" prop="mobile" width="120" />
|
|
|
+ <el-table-column label="客户来源" align="center" prop="source" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in sourceOptions" v-if="scope.row.source==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="跟进阶段" align="center" prop="visitStatus">
|
|
|
+ <el-table-column label="跟进阶段" align="center" prop="visitStatus" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="visitStatus" v-for="(item, index) in visitStatusOptions" v-if="scope.row.visitStatus==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="客户类型" align="center" prop="customerType">
|
|
|
+ <el-table-column label="客户类型" align="center" prop="customerType" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in typeOptions" v-if="scope.row.customerType==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="标签" align="center" prop="tags" />
|
|
|
- <el-table-column label="备注" align="center" prop="remark" width="120" />
|
|
|
- <el-table-column label="进线客户详情" align="center" :show-overflow-tooltip="true" prop="registerDesc" />
|
|
|
- <el-table-column label="分配销售" align="center" prop="companyUserNickName" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="领取时间" align="center" prop="startTime" />
|
|
|
- <el-table-column label="进线客户提交日期" align="center" prop="registerSubmitTime" width="130" />
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" width="100" />
|
|
|
- <el-table-column label="最后一次跟进时间" align="center" prop="receiveTime" width="100" />
|
|
|
- <el-table-column label="入公海时间" align="center" prop="poolTime" width="100" />
|
|
|
- <el-table-column label="操作" align="center" width="180">
|
|
|
+ <el-table-column label="标签" align="center" prop="tags" width="90" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" width="120" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="进线客户详情" align="center" :show-overflow-tooltip="true" prop="registerDesc" min-width="120" />
|
|
|
+ <el-table-column label="分配销售" align="center" prop="companyUserNickName" :show-overflow-tooltip="true" width="90" />
|
|
|
+ <el-table-column label="领取时间" align="center" prop="startTime" width="135" />
|
|
|
+ <el-table-column label="提交日期" align="center" prop="registerSubmitTime" width="110" />
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="135" />
|
|
|
+ <el-table-column label="最后跟进时间" align="center" prop="receiveTime" width="135" />
|
|
|
+ <el-table-column label="入公海时间" align="center" prop="poolTime" width="135" />
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-phone-outline" @click="handleViewCallLog(scope.row)">外呼记录</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleViewPhone(scope.row)">查看手机号</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.customerUserId"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-s-release"
|
|
|
+ @click="handleRecover(scope.row)"
|
|
|
+ v-hasPermi="['crm:customer:recover']"
|
|
|
+ >回收公海</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -182,7 +186,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getCustomerAllList } from "@/api/crm/customerAll";
|
|
|
+import { getCustomerAllList,recoverAll } from "@/api/crm/customerAll";
|
|
|
import { getMyCustomerPhone,getTradeDicts } from "@/api/crm/customer";
|
|
|
import customerDetails from '../components/customerDetails.vue';
|
|
|
import customerCallLogList from '../components/customerCallLogList.vue';
|
|
|
@@ -318,6 +322,19 @@ export default {
|
|
|
return "";
|
|
|
}
|
|
|
return customerName;
|
|
|
+ },
|
|
|
+ handleRecover(row) {
|
|
|
+ this.$confirm('是否确认回收客户"' + row.customerName + '"?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ var data = { customerUserId: row.customerUserId };
|
|
|
+ return recoverAll(data);
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ }).catch(function() {});
|
|
|
}
|
|
|
}
|
|
|
};
|