Commit 93c478e2 authored by chenwei's avatar chenwei

Merge branch 'feature/099_customer_filter' into 'dev'

【099】| Change of filtering criteria for customer list

See merge request !1
parents 254e6d9f fb74019d
...@@ -4507,5 +4507,10 @@ ...@@ -4507,5 +4507,10 @@
"身份证认证状态": "Identity card authentication status", "身份证认证状态": "Identity card authentication status",
"角标字段": "Subscript field", "角标字段": "Subscript field",
"不清楚请留空,已设勿改": "Unclear, please leave blank. It has been set to remain unchanged", "不清楚请留空,已设勿改": "Unclear, please leave blank. It has been set to remain unchanged",
"退仓/已混箱品名":"Returned/mixed Box" "退仓/已混箱品名":"Returned/mixed Box",
} "请输入会员编号":"Please input Member ID",
"会员名称": "Member nickname",
"请输入会员名称": "Please input Member nickname",
"会员电话":"Member Phone NO.",
"请输入会员电话":"Please input Member Phone NO."
}
...@@ -158,6 +158,36 @@ ...@@ -158,6 +158,36 @@
formatter="number" formatter="number"
@change="handleQuery" @change="handleQuery"
></dict-selector> ></dict-selector>
</el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{
...@@ -1045,6 +1075,8 @@ import AddPotentialCustom from "@/views/ecw/customer/addPotentialCustom.vue"; ...@@ -1045,6 +1075,8 @@ import AddPotentialCustom from "@/views/ecw/customer/addPotentialCustom.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import { getUserProfile } from "@/api/system/user"; import { getUserProfile } from "@/api/system/user";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
name: "EcwCustomerIndex", name: "EcwCustomerIndex",
components: { components: {
...@@ -1055,6 +1087,7 @@ export default { ...@@ -1055,6 +1087,7 @@ export default {
CustomerFollowList, CustomerFollowList,
customerComplaints, customerComplaints,
transferCustomer, transferCustomer,
AreaCodeSelector
}, },
data() { data() {
return { return {
...@@ -1066,7 +1099,7 @@ export default { ...@@ -1066,7 +1099,7 @@ export default {
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -1090,6 +1123,10 @@ export default { ...@@ -1090,6 +1123,10 @@ export default {
creditLevel: null, creditLevel: null,
country: null, country: null,
resourceType: null, resourceType: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -1483,6 +1520,10 @@ export default { ...@@ -1483,6 +1520,10 @@ export default {
department: null, department: null,
creditLevel: null, creditLevel: null,
country: null, country: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}; };
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -28,6 +28,36 @@ ...@@ -28,6 +28,36 @@
<el-form-item :label="$t('市场获客')" prop="department"> <el-form-item :label="$t('市场获客')" prop="department">
<dict-selector clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector> <dict-selector clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
...@@ -35,6 +65,13 @@ ...@@ -35,6 +65,13 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8">
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table ref="multipleTable" v-loading="loading" :data="list" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column <el-table-column
...@@ -43,7 +80,6 @@ ...@@ -43,7 +80,6 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ $l(scope.row,'name') }}</span> <span>{{ $l(scope.row,'name') }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -99,9 +135,13 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict'; ...@@ -99,9 +135,13 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
import {exportCustomerComplaintExcel} from "@/api/ecw/customerComplaint"; import {exportCustomerComplaintExcel} from "@/api/ecw/customerComplaint";
import {indirectCustomerExportExcel} from "@/api/ecw/customer"; import {indirectCustomerExportExcel} from "@/api/ecw/customer";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
name: "EcwCustomerIndirectcustomer", name: "EcwCustomerIndirectcustomer",
components: {
AreaCodeSelector
},
activated() { activated() {
this.getList() this.getList()
}, },
...@@ -114,7 +154,7 @@ export default { ...@@ -114,7 +154,7 @@ export default {
loading: true, loading: true,
// 导出遮罩层 // 导出遮罩层
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -131,7 +171,11 @@ export default { ...@@ -131,7 +171,11 @@ export default {
name: null, name: null,
source: null, source: null,
customerService: null, customerService: null,
marketType:null marketType:null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 网点 // 网点
nodeList: [], nodeList: [],
...@@ -203,6 +247,10 @@ export default { ...@@ -203,6 +247,10 @@ export default {
name: null, name: null,
source: null, source: null,
customerService: null, customerService: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
} }
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -57,6 +57,36 @@ ...@@ -57,6 +57,36 @@
<el-form-item :label="$t('市场获客')" prop="department"> <el-form-item :label="$t('市场获客')" prop="department">
<dict-selector multiple clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector> <dict-selector multiple clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
...@@ -373,7 +403,7 @@ import {getCountryListAll} from "@/api/ecw/country"; ...@@ -373,7 +403,7 @@ import {getCountryListAll} from "@/api/ecw/country";
import {getCreditPage} from "@/api/customer/credit"; import {getCreditPage} from "@/api/customer/credit";
import transferCustomer from "@/views/ecw/customer/transferCustomer.vue"; import transferCustomer from "@/views/ecw/customer/transferCustomer.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
...@@ -391,7 +421,8 @@ export default { ...@@ -391,7 +421,8 @@ export default {
}, },
components: { components: {
Contacts, Contacts,
transferCustomer transferCustomer,
AreaCodeSelector
}, },
data() { data() {
return { return {
...@@ -400,7 +431,7 @@ export default { ...@@ -400,7 +431,7 @@ export default {
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -425,6 +456,10 @@ export default { ...@@ -425,6 +456,10 @@ export default {
creditLevel:null, creditLevel:null,
country:null, country:null,
marketType:null, marketType:null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -563,6 +598,10 @@ export default { ...@@ -563,6 +598,10 @@ export default {
department: null, department: null,
creditLevel:null, creditLevel:null,
country:null, country:null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
} }
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -58,6 +58,36 @@ ...@@ -58,6 +58,36 @@
<el-form-item :label="$t('市场获客')" prop="department"> <el-form-item :label="$t('市场获客')" prop="department">
<dict-selector clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number"></dict-selector> <dict-selector clearable :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number"></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
...@@ -180,6 +210,7 @@ import {getCreditPage} from "@/api/customer/credit"; ...@@ -180,6 +210,7 @@ import {getCreditPage} from "@/api/customer/credit";
import transferCustomer from "@/views/ecw/customer/transferCustomer"; import transferCustomer from "@/views/ecw/customer/transferCustomer";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
name: "EcwCustomertobeassignedIndex", name: "EcwCustomertobeassignedIndex",
activated() { activated() {
...@@ -189,7 +220,8 @@ export default { ...@@ -189,7 +220,8 @@ export default {
Contacts, Contacts,
Template, Template,
upload, upload,
transferCustomer transferCustomer,
AreaCodeSelector
}, },
data() { data() {
return { return {
...@@ -201,7 +233,7 @@ export default { ...@@ -201,7 +233,7 @@ export default {
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -226,6 +258,10 @@ export default { ...@@ -226,6 +258,10 @@ export default {
creditLevel:null, creditLevel:null,
country:null, country:null,
marketType:null, marketType:null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -357,6 +393,10 @@ export default { ...@@ -357,6 +393,10 @@ export default {
department: null, department: null,
creditLevel:null, creditLevel:null,
country:null, country:null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
} }
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -67,6 +67,36 @@ ...@@ -67,6 +67,36 @@
<el-form-item :label="$t('市场获客')" prop="department"> <el-form-item :label="$t('市场获客')" prop="department">
<dict-selector clearable multiple :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector> <dict-selector clearable multiple :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" v-model="queryParams.marketType" formatter="number" @change="handleQuery"></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{
$t("搜索") $t("搜索")
...@@ -304,6 +334,7 @@ import Template from "@/views/cms/template/index.vue"; ...@@ -304,6 +334,7 @@ import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
//lanbm 2024-05-26 add //lanbm 2024-05-26 add
import { getUserProfile } from "@/api/system/user"; import { getUserProfile } from "@/api/system/user";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
name: "EcwMycustomerserviceIndex", name: "EcwMycustomerserviceIndex",
...@@ -314,6 +345,7 @@ export default { ...@@ -314,6 +345,7 @@ export default {
customerFollowList, customerFollowList,
customerComplaints, customerComplaints,
transferCustomer, transferCustomer,
AreaCodeSelector
}, },
computed: { computed: {
isChinese() { isChinese() {
...@@ -333,7 +365,7 @@ export default { ...@@ -333,7 +365,7 @@ export default {
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -357,6 +389,10 @@ export default { ...@@ -357,6 +389,10 @@ export default {
creditLevel: null, creditLevel: null,
country: null, country: null,
marketType: null, marketType: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -537,6 +573,10 @@ export default { ...@@ -537,6 +573,10 @@ export default {
department: null, department: null,
creditLevel: null, creditLevel: null,
country: null, country: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}; };
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -163,6 +163,36 @@ ...@@ -163,6 +163,36 @@
@change="handleQuery" @change="handleQuery"
></dict-selector> ></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('会员电话')" prop="department">
<el-col :span="11">
<area-code-selector style="width: 100%;" v-model="queryParams.memberAreaCode" />
</el-col>
<el-col class="line" :span="2"></el-col>
<el-col :span="11">
<el-input maxlength="11"
width="100%"
class="ml-10 w-200"
clearable
v-model.number="queryParams.memberMobile"
:placeholder="$t('请输入会员电话')"/>
</el-col>
</el-form-item>
<el-form-item :label="$t('会员编号')" prop="number">
<el-input
v-model.trim="queryParams.memberCode"
:placeholder="$t('请输入会员编号')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item :label="$t('会员名称')" prop="name">
<el-input
v-model.trim="queryParams.memberName"
:placeholder="$t('请输入会员名称')"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{
$t("搜索") $t("搜索")
...@@ -378,6 +408,7 @@ import { getCountryListAll } from "@/api/ecw/country"; ...@@ -378,6 +408,7 @@ import { getCountryListAll } from "@/api/ecw/country";
import { getCreditPage } from "@/api/customer/credit"; import { getCreditPage } from "@/api/customer/credit";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
export default { export default {
name: "EcwOceancustomerIndex", name: "EcwOceancustomerIndex",
activated() { activated() {
...@@ -387,6 +418,7 @@ export default { ...@@ -387,6 +418,7 @@ export default {
Contacts, Contacts,
Template, Template,
upload, upload,
AreaCodeSelector
}, },
data() { data() {
return { return {
...@@ -397,7 +429,7 @@ export default { ...@@ -397,7 +429,7 @@ export default {
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: false,
// 总条数 // 总条数
total: 0, total: 0,
// 客户列表 // 客户列表
...@@ -420,6 +452,10 @@ export default { ...@@ -420,6 +452,10 @@ export default {
status: null, status: null,
department: null, department: null,
marketType: null, marketType: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -597,6 +633,10 @@ export default { ...@@ -597,6 +633,10 @@ export default {
department: null, department: null,
creditLevel: null, creditLevel: null,
country: null, country: null,
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode: null
}; };
this.handleQuery(); this.handleQuery();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment