Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
c0aeb658
Commit
c0aeb658
authored
Sep 05, 2024
by
余金瑶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全部客户搜索
parent
795f445f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
12 deletions
+173
-12
en_US.json
src/i18n/languages/en_US.json
+1
-1
index.vue
src/views/ecw/customer/index.vue
+172
-11
No files found.
src/i18n/languages/en_US.json
View file @
c0aeb658
...
...
@@ -4704,5 +4704,5 @@
"跟进情况"
:
"Follow-up situation"
,
"下次跟进时间"
:
"Next follow-up time"
,
"提交结果"
:
"Submit result"
,
"增加计划"
:
"
A
dd plan"
"增加计划"
:
"
a
dd plan"
}
src/views/ecw/customer/index.vue
View file @
c0aeb658
...
...
@@ -6,7 +6,7 @@
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
68
px"
label-width=
"
130
px"
>
<el-form-item
:label=
"$t('客户编号')"
prop=
"number"
>
<el-input
...
...
@@ -189,6 +189,117 @@
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('入公海时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"enterOpenSeaTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('业绩类型')"
>
<el-select
clearable
v-model=
"queryParams.isNew"
>
<el-option
:value=
"true"
>
{{
$t
(
'
新客户
'
)
}}
</el-option>
<el-option
:value=
"false"
>
{{
$t
(
'
老客户
'
)
}}
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('推介人')"
>
<el-select
clearable
remote
:remote-method=
"remoteMethod"
v-model=
"queryParams.promoter"
:placeholder=
"$t('请输入推介人')"
filterable
>
<el-option
v-for=
"item in customerSelectFn"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('控货无收货人')"
>
<el-switch
v-model=
"queryParams.noConsignee"
/>
</el-form-item>
<el-form-item
:label=
"$t('默认付款')"
>
<el-switch
v-model=
"queryParams.defaultPay"
/>
</el-form-item>
<el-form-item
:label=
"$t('是否显示提单价格')"
>
<el-switch
v-model=
"queryParams.isShowTidanPrice"
/>
</el-form-item>
<el-form-item
:label=
"$t('归属时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"customerServiceConfirmedTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('首次成交时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"firstDealTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('获取方式')"
prop=
"getMethod"
>
<el-select
v-model=
"queryParams.getMethods"
multiple
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_GET_METHOD)"
:key=
"dict.value"
:label=
"isChinese ? dict.label : dict.labelEn"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('创建入口')"
prop=
"createFrom"
>
<el-select
v-model=
"queryParams.createFroms"
multiple
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_FROM)"
:key=
"dict.value"
:label=
"isChinese ? dict.label : dict.labelEn"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('结算方式')"
>
<el-select
v-model=
"queryParams.balances"
multiple
:placeholder=
"$t('请选择结算方式')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_BALANCE)"
:key=
"dict.value"
:label=
"isChinese ? dict.label : dict.labelEn"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
"
搜索
"
)
...
...
@@ -1114,7 +1225,7 @@ import Contacts from "@/views/ecw/customer/components/contacts.vue";
import
{
getUserProfile
}
from
"
@/api/system/user
"
;
import
AreaCodeSelector
from
"
@/components/AreaCodeSelector/index.vue
"
;
import
{
getCustomerSelect
}
from
"
@/api/ecw/customer
"
;
export
default
{
name
:
"
EcwCustomerIndex
"
,
components
:
{
...
...
@@ -1151,7 +1262,7 @@ export default {
queryParams
:
{
pageNo
:
1
,
pageSize
:
10
,
number
:
null
,
/*
number: null,
name: null,
level: null,
source: null,
...
...
@@ -1164,7 +1275,7 @@ export default {
memberCode: null,
memberName: null,
memberMobile: null,
memberAreaCode
:
null
memberAreaCode: null
,*/
},
// 表单参数
form
:
{},
...
...
@@ -1237,7 +1348,12 @@ export default {
customData
:
{},
currentisNew
:
false
,
userId
:
undefined
,
//lanbm 2024-05-23 add
customerFollowVisible
:
false
customerFollowVisible
:
false
,
enterOpenSeaTime
:
[],
customerServiceConfirmedTime
:
[],
firstDealTime
:
[],
customerSelect
:
[],
recommended
:
[],
};
},
computed
:
{
...
...
@@ -1277,6 +1393,40 @@ export default {
return
t
.
join
(
"
:
"
);
};
},
customerSelectFn
()
{
if
(
this
.
recommended
.
length
>
0
)
{
let
i
=
this
.
customerSelect
.
find
(
(
item
)
=>
item
.
id
===
this
.
recommended
[
0
].
id
);
if
(
!
i
)
{
this
.
customerSelect
.
push
(
this
.
recommended
[
0
]);
}
return
this
.
customerSelect
;
}
else
{
return
this
.
customerSelect
;
}
},
combinedQueryParams
()
{
let
queryParams
=
{}
if
(
this
.
enterOpenSeaTime
&&
this
.
enterOpenSeaTime
.
length
==
2
)
{
this
.
queryParams
.
beginEnterOpenSeaTime
=
this
.
enterOpenSeaTime
[
0
]
this
.
queryParams
.
endEnterOpenSeaTime
=
this
.
enterOpenSeaTime
[
1
]
}
if
(
this
.
customerServiceConfirmedTime
&&
this
.
customerServiceConfirmedTime
.
length
==
2
)
{
this
.
queryParams
.
beginCustomerServiceConfirmedTime
=
this
.
enterOpenSeaTime
[
0
]
this
.
queryParams
.
endCustomerServiceConfirmedTime
=
this
.
enterOpenSeaTime
[
1
]
}
if
(
this
.
dateRangeCreateTime
&&
this
.
dateRangeCreateTime
.
length
==
2
)
{
this
.
queryParams
.
beginCreateTime
=
this
.
dateRangeCreateTime
[
0
]
this
.
queryParams
.
endCreateTime
=
this
.
dateRangeCreateTime
[
1
]
}
if
(
this
.
firstDealTime
&&
this
.
firstDealTime
.
length
==
2
)
{
this
.
queryParams
.
beginFirstDealTime
=
this
.
firstDealTime
[
0
]
this
.
queryParams
.
endFirstDealTime
=
this
.
firstDealTime
[
1
]
}
return
queryParams
;
},
},
watch
:
{
selectCustomerList
(
val
)
{
...
...
@@ -1301,6 +1451,7 @@ export default {
getUserProfile
().
then
((
res
)
=>
{
this
.
userId
=
res
.
data
.
id
;
});
this
.
getCustomerSelect
();
},
activated
()
{
this
.
getList
();
...
...
@@ -1400,14 +1551,14 @@ export default {
/** 查询列表 */
getList
()
{
this
.
loading
=
true
;
// 处理查询参数
let
params
=
{
...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
// 处理查询参数
}
let
params
=
{
...
this
.
queryParams
,
...
this
.
combinedQueryParams
};
/*
this.addBeginAndEndTime(
params,
this.dateRangeCreateTime,
"createTime",
false
);
);
*/
// 执行查询
switch
(
this
.
$route
.
path
)
{
case
"
/customer/customer
"
:
...
...
@@ -1421,6 +1572,16 @@ export default {
break
;
}
},
remoteMethod
(
val
)
{
this
.
getCustomerSelect
(
val
);
},
getCustomerSelect
(
val
=
""
)
{
getCustomerSelect
({
pageNo
:
1
,
pageSize
:
30
,
searchKey
:
val
}).
then
(
(
res
)
=>
{
this
.
customerSelect
=
res
.
data
.
list
;
}
);
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
$router
.
push
(
"
/customer/add-edit/0
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment