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
f8152820
Commit
f8152820
authored
Oct 05, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建客户成功后,客户列表和客户详情页,“国家”、“客户编号”、“客户类别”等字段未取到值,“社交软件”展示的是枚举值(应该为枚举值对应文字)
http://zentao.jdshangmen.com/bug-view-208.html
parent
21efa4fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
query.vue
src/views/ecw/customer/query.vue
+25
-4
No files found.
src/views/ecw/customer/query.vue
View file @
f8152820
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<el-descriptions-item
:label=
"$t('结算方式')"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_BALANCE
,
customer
.
balance
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('结算方式')"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_BALANCE
,
customer
.
balance
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('客户生日')"
>
{{
parseTime
(
customer
.
birthday
,
'
{y
}
-{m
}
-{d
}
'
)
}}
<
/el-descriptions-item
>
<el-descriptions-item
:label=
"$t('客户生日')"
>
{{
parseTime
(
customer
.
birthday
,
'
{y
}
-{m
}
-{d
}
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户等级')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_LEVEL
,
customer
.
level
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户等级')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_LEVEL
,
customer
.
level
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('国家')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
COUNTRY
,
customer
.
country
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('国家')
"
>
{{
country
}}
<
/el-descriptions-item
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('业务员')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('业务员')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户来源')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_SOURCE
,
customer
.
source
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户来源')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_SOURCE
,
customer
.
source
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户类别')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_TYPE
,
customer
.
type
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户类别')
"
>
{{
getDictDataLabel
(
DICT_TYPE
.
CUSTOMER_TYPE
,
customer
.
type
)
}}
<
/el-descriptions-item
>
...
@@ -73,13 +73,15 @@
...
@@ -73,13 +73,15 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
user
name
"
prop
=
"
user
id
"
:
label
=
"
$t('关联账号')
"
:
label
=
"
$t('关联账号')
"
:
formatter
=
"
userIdFormatter
"
>
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
social
"
prop
=
"
social
"
:
label
=
"
$t('社交软件')
"
:
label
=
"
$t('社交软件')
"
:
formatter
=
"
(row, column, cellValue) => getDictDataLabel(DICT_TYPE.SOCIAL, cellValue)
"
>
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
...
@@ -404,7 +406,7 @@ import {
...
@@ -404,7 +406,7 @@ import {
orderStatistics
,
orderStatistics
,
creditLogCreate
,
creditLogCreate
,
creditScoreStatistic
,
creditScoreStatistic
,
infoListReceiptPage
infoListReceiptPage
,
userMemberUserList
}
from
'
@/api/ecw/customer
'
}
from
'
@/api/ecw/customer
'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
...
@@ -417,6 +419,7 @@ import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
...
@@ -417,6 +419,7 @@ import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
import
{
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
{
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
Template
from
"
@/views/cms/template
"
;
import
Template
from
"
@/views/cms/template
"
;
import
{
getCreditRulePage
}
from
"
@/api/customer/creditRule
"
;
import
{
getCreditRulePage
}
from
"
@/api/customer/creditRule
"
;
import
{
getCountry
}
from
"
@/api/ecw/country
"
export
default
{
export
default
{
name
:
'
query
'
,
name
:
'
query
'
,
...
@@ -442,6 +445,10 @@ export default {
...
@@ -442,6 +445,10 @@ export default {
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}
).
then
(
r
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}
).
then
(
r
=>
{
this
.
customerContacts
=
r
.
data
this
.
customerContacts
=
r
.
data
}
)
}
)
getCountry
(
this
.
customer
.
country
).
then
(
r
=>
{
this
.
country
=
r
.
data
.
nameZh
}
)
}
)
}
)
getProductTypeList
().
then
(
r
=>
{
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
this
.
productTypeList
=
r
.
data
...
@@ -461,6 +468,10 @@ export default {
...
@@ -461,6 +468,10 @@ export default {
this
.
getOrderStatistics
()
this
.
getOrderStatistics
()
this
.
creditScoreStatisticFn
()
this
.
creditScoreStatisticFn
()
this
.
infoListReceiptFn
()
this
.
infoListReceiptFn
()
userMemberUserList
().
then
(
r
=>
{
this
.
memberList
=
r
.
data
}
)
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -482,6 +493,7 @@ export default {
...
@@ -482,6 +493,7 @@ export default {
customerSelect
:
[],
customerSelect
:
[],
serviceUserList
:
[],
serviceUserList
:
[],
customerContacts
:
[],
customerContacts
:
[],
memberList
:
[],
customer
:
{
customer
:
{
id
:
undefined
,
id
:
undefined
,
number
:
undefined
,
number
:
undefined
,
...
@@ -559,7 +571,8 @@ export default {
...
@@ -559,7 +571,8 @@ export default {
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
}
,
}
,
infoListReceiptTotal
:
0
infoListReceiptTotal
:
0
,
country
:
''
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -591,6 +604,14 @@ export default {
...
@@ -591,6 +604,14 @@ export default {
}
}
}
,
}
,
methods
:{
methods
:{
userIdFormatter
(
row
,
column
,
cellValue
){
const
member
=
this
.
memberList
.
find
(
e
=>
e
.
id
===
cellValue
)
if
(
member
)
{
return
member
.
nickname
+
'
(
'
+
member
.
mobile
+
'
)
'
}
else
{
return
''
}
}
,
changeDate
(
val
){
changeDate
(
val
){
if
(
val
){
if
(
val
){
this
.
queryParams
.
houseStartDate
=
val
[
0
];
this
.
queryParams
.
houseStartDate
=
val
[
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