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
daf18e58
Commit
daf18e58
authored
Jun 21, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户查看详情
parent
bea7a98c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
10 deletions
+45
-10
query.vue
src/views/ecw/customer/query.vue
+45
-10
No files found.
src/views/ecw/customer/query.vue
View file @
daf18e58
...
...
@@ -6,7 +6,7 @@
<h2>
查看
</h2>
<div>
<el-button
type=
"primary"
size=
"small"
>
添加优惠
</el-button>
<el-button
type=
"primary"
size=
"small"
>
编辑
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"$router.push('/customer/edit/' + customerId)"
>
编辑
</el-button>
<el-button
type=
"primary"
size=
"small"
>
报价
</el-button>
<el-button
type=
"primary"
size=
"small"
>
跟进
</el-button>
<el-button
type=
"primary"
size=
"small"
>
客诉
</el-button>
...
...
@@ -17,23 +17,25 @@
<el-descriptions
:column=
"4"
border
>
<el-descriptions-item
label=
"客户编号"
>
{{
customer
.
number
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户名称"
>
{{
customer
.
name
}}
</el-descriptions-item>
<el-descriptions-item
label=
"结算方式"
>
{{
customer
.
balance
}}
</el-descriptions-item>
<el-descriptions-item
label=
"结算方式"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_BALANCE
,
customer
.
balance
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户生日"
>
{{
customer
.
birthday
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户等级"
>
{{
customer
.
level
}}
</el-descriptions-item>
<el-descriptions-item
label=
"国家"
>
{{
customer
.
country
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户等级"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_LEVEL
,
customer
.
level
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"国家"
>
{{
getDictDataLabel
(
DICT_TYPE
.
COUNTRY
,
customer
.
country
)
}}
</el-descriptions-item>
<!--
<el-descriptions-item
label=
"业务员"
>
{{
customer
}}
</el-descriptions-item>
-->
<el-descriptions-item
label=
"客户来源"
>
{{
customer
.
source
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户类别"
>
{{
customer
.
type
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户来源"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_SOURCE
,
customer
.
source
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户类别"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_TYPE
,
customer
.
type
)
}}
</el-descriptions-item>
<!--
<el-descriptions-item
label=
"联系方式"
>
{{
customer
}}
</el-descriptions-item>
-->
<el-descriptions-item
label=
"推介人"
>
{{
customer
.
promoter
}}
</el-descriptions-item>
<el-descriptions-item
label=
"跟进客服"
>
{{
customer
.
customerService
}}
</el-descriptions-item>
<el-descriptions-item
label=
"公司名称"
>
{{
customer
.
company
}}
</el-descriptions-item>
<el-descriptions-item
label=
"联系地址"
>
{{
customer
.
address
}}
</el-descriptions-item>
<el-descriptions-item
label=
"创建时间"
>
{{
customer
.
createTime
}}
</el-descriptions-item>
<el-descriptions-item
label=
"状态"
>
{{
customer
.
status
}}
</el-descriptions-item>
<el-descriptions-item
label=
"主营类别"
>
{{
customer
.
productType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"常提货网点"
>
{{
customer
.
pickupPoint
}}
</el-descriptions-item>
<el-descriptions-item
label=
"图片"
>
{{
customer
.
picture
}}
</el-descriptions-item>
<el-descriptions-item
label=
"状态"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_STATUS
,
customer
.
status
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"主营类别"
>
{{
productType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"常提货网点"
>
{{
pickupPoint
}}
</el-descriptions-item>
<el-descriptions-item
label=
"图片"
>
<el-image
:src=
"customer.picture"
style=
"width: 100px;height: 100px"
></el-image>
</el-descriptions-item>
<el-descriptions-item
label=
"备注"
>
{{
customer
.
remarks
}}
</el-descriptions-item>
<!--
<el-descriptions-item
label=
"信用等级"
>
{{
customer
}}
</el-descriptions-item>
-->
</el-descriptions>
...
...
@@ -287,13 +289,33 @@
</template>
<
script
>
import
{
getCustomer
}
from
'
@/api/ecw/customer
'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getNodeList
}
from
'
@/api/ecw/node
'
export
default
{
name
:
'
query
'
,
props
:
{
customerId
:
String
},
created
()
{
getNodeList
().
then
(
r
=>
{
this
.
nodeList
=
r
.
data
})
getCustomer
(
this
.
customerId
).
then
(
response
=>
{
this
.
customer
=
{
...
this
.
customer
,
...
response
.
data
}
})
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
})
},
data
()
{
return
{
DICT_TYPE
,
getDictDataLabel
,
nodeList
:
[],
productTypeList
:
[],
customer
:
{
id
:
undefined
,
number
:
undefined
,
...
...
@@ -333,6 +355,19 @@ export default {
createTime
:
undefined
}
}
},
methods
:
{
},
computed
:
{
productType
(){
const
productType
=
this
.
productTypeList
.
find
(
p
=>
p
.
id
===
parseInt
(
this
.
customer
.
productType
))
return
productType
?
productType
.
titleZh
:
''
},
pickupPoint
(){
const
pickupPoint
=
this
.
nodeList
.
find
(
p
=>
p
.
id
===
parseInt
(
this
.
customer
.
pickupPoint
))
return
pickupPoint
?
pickupPoint
.
titleZh
:
''
}
}
}
</
script
>
...
...
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