|
@@ -32,7 +32,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="跟进阶段" prop="status">
|
|
|
- <el-select style="width:220px" filterable v-model="queryParams.status" placeholder="请选择跟进阶段" clearable size="small">
|
|
|
+ <el-select style="width:220px" multiple filterable v-model="statusArr" placeholder="请选择跟进阶段" clearable size="small">
|
|
|
<el-option
|
|
|
v-for="item in statusOptions"
|
|
|
:key="item.dictValue"
|
|
@@ -42,7 +42,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户类型" prop="customerType">
|
|
|
- <el-select style="width:220px" filterable v-model="queryParams.customerType" placeholder="请选择客户类型" clearable size="small">
|
|
|
+ <el-select style="width:220px" multiple filterable v-model="ctsTypeArr" placeholder="请选择客户类型" clearable size="small">
|
|
|
<el-option
|
|
|
v-for="item in typeOptions"
|
|
|
:key="item.dictValue"
|
|
@@ -62,7 +62,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户来源" prop="source">
|
|
|
- <el-select style="width:220px" filterable v-model="queryParams.source" placeholder="请选择客户来源" clearable size="small">
|
|
|
+ <el-select style="width:220px" multiple filterable v-model="sourceArr" placeholder="请选择客户来源" clearable size="small">
|
|
|
<el-option
|
|
|
v-for="item in sourceOptions"
|
|
|
:key="item.dictValue"
|
|
@@ -77,6 +77,7 @@
|
|
|
clearable size="small"
|
|
|
v-model="queryParams.customerCreateTime"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
+ placeholder="创建时间"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -175,7 +176,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="跟进阶段" width="200" align="center" prop="visitStatus">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag prop="visitStatus" v-for="(item, index) in statusOptions" v-if="scope.row.visitStatus==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
+ <el-tag prop="visitStatus" v-for="(item, index) in statusOptions" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag><br/>
|
|
|
<el-button v-hasPermi="['crm:customer:addVisitStatus']" type="text" size="mini" @click="handleVisitStatus(scope.row)">修改</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -191,7 +192,7 @@
|
|
|
<el-button v-hasPermi="['crm:customer:addTag']" type="text" size="mini" @click="handleAddTag(scope.row)">打标签</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" width="120px" align="center" prop="remark" >
|
|
|
+ <el-table-column label="备注" width="150px" align="center" prop="remark" >
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.remark}}
|
|
|
<el-button v-hasPermi="['crm:customer:addRemark']" type="text" size="mini" @click="handleAddRemark(scope.row)">修改备注</el-button>
|
|
@@ -307,6 +308,9 @@ export default {
|
|
|
title:"打标签"
|
|
|
},
|
|
|
tagIds:[],
|
|
|
+ statusArr:[],
|
|
|
+ ctsTypeArr:[],
|
|
|
+ sourceArr:[],
|
|
|
tagsOptions:[],
|
|
|
customer:{
|
|
|
open:false,
|
|
@@ -590,6 +594,27 @@ export default {
|
|
|
/** 查询客户列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
+ if(this.statusArr.length>0){
|
|
|
+ this.queryParams.status=this.statusArr.toString();
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.queryParams.status=null
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.ctsTypeArr.length>0){
|
|
|
+ this.queryParams.customerType=this.ctsTypeArr.toString();
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.queryParams.customerType=null
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.sourceArr.length>0){
|
|
|
+ this.queryParams.source=this.sourceArr.toString();
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.queryParams.source=null
|
|
|
+ }
|
|
|
+
|
|
|
if(this.tagIds.length>0){
|
|
|
this.queryParams.tags=this.tagIds.toString();
|
|
|
}
|