Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a2c7d97
authored
Oct 27, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车牌号bug修复
1 parent
9f49d5f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
src/assets/css/sprite.scss
src/views/customer/detail.vue
src/assets/css/sprite.scss
View file @
0a2c7d9
...
...
@@ -8,6 +8,7 @@
.icon-customer-add
{
width
:
28px
;
height
:
20px
;
background-position
:
-34px
-96px
;}
.icon-customer-copy
{
width
:
18px
;
height
:
20px
;
background-position
:
-138px
-90px
;}
.icon-customer-phone
{
width
:
20px
;
height
:
20px
;
background-position
:
-102px
-96px
;}
.icon-delete
{
width
:
18px
;
height
:
14px
;
background-position
:
-168px
0px
;}
.icon-factory
{
width
:
32px
;
height
:
32px
;
background-position
:
-42px
-54px
;}
.icon-fail
{
width
:
24px
;
height
:
24px
;
background-position
:
-96px
-42px
;}
.icon-fllow
{
width
:
18px
;
height
:
18px
;
background-position
:
-30px
-130px
;}
...
...
@@ -20,5 +21,4 @@
.icon-sendwechat
{
width
:
20px
;
height
:
18px
;
background-position
:
0px
-130px
;}
.icon-succeed
{
width
:
24px
;
height
:
24px
;
background-position
:
0px
-96px
;}
.icon-tel
{
width
:
18px
;
height
:
18px
;
background-position
:
-86px
-130px
;}
.icon-delete
{
width
:
18px
;
height
:
14px
;
background-position
:
-168px
0px
;}
.icon-tip
{
width
:
16px
;
height
:
16px
;
background-position
:
-140px
-130px
;}
\ No newline at end of file
src/views/customer/detail.vue
View file @
0a2c7d9
...
...
@@ -322,7 +322,6 @@ export default {
vehicleInfo
:
{
vehicleNo
}
}
=
this
.
userInfo
this
.
customerId
=
0
// console.log(customerPhone, !vehicleNo, '99999')
if
(
!
customerPhone
&&
!
vehicleNo
&&
this
.
customerId
==
0
)
{
this
.
showToast
(
'请完善客户的联系电话或车牌号,系统将自动关联更多的客户信息'
)
return
...
...
@@ -333,24 +332,26 @@ export default {
this
.
labelArray
[
index
].
isShow
=
!
this
.
labelArray
[
index
].
isShow
},
getCustomerDetail
(
userId
)
{
this
.
hideLoading
()
detailApi
.
getCustomerDetail
({
userId
}).
then
(
res
=>
{
if
(
res
)
{
this
.
flag
=
true
let
staffNameList
=
[]
if
(
res
.
staffFollows
)
{
res
.
staffFollows
.
map
(
e
=>
{
staffNameList
.
push
(
e
.
staffName
)
setTimeout
(()
=>
{
this
.
hideLoading
()
detailApi
.
getCustomerDetail
({
userId
}).
then
(
res
=>
{
if
(
res
)
{
this
.
flag
=
true
let
staffNameList
=
[]
if
(
res
.
staffFollows
)
{
res
.
staffFollows
.
map
(
e
=>
{
staffNameList
.
push
(
e
.
staffName
)
})
}
if
(
res
.
vehicleInfoList
&&
res
.
vehicleInfoList
.
length
)
res
.
vehicleInfo
=
res
.
vehicleInfoList
[
0
]
this
.
staffNameList
=
staffNameList
.
join
(
'、'
)
Object
.
keys
(
res
).
map
(
key
=>
{
if
(
res
[
key
])
this
.
userInfo
[
key
]
=
res
[
key
]
})
this
.
initLabel
()
}
if
(
res
.
vehicleInfoList
&&
res
.
vehicleInfoList
.
length
)
res
.
vehicleInfo
=
res
.
vehicleInfoList
[
0
]
this
.
staffNameList
=
staffNameList
.
join
(
'、'
)
Object
.
keys
(
res
).
map
(
key
=>
{
if
(
res
[
key
])
this
.
userInfo
[
key
]
=
res
[
key
]
})
this
.
initLabel
()
}
})
})
},
3000
)
},
//标签分组
initLabel
()
{
...
...
@@ -393,7 +394,7 @@ export default {
if
(
type
==
'tel'
||
type
==
'platNumber'
)
{
if
(
info
.
customerPhone
&&
save_key
==
'customerPhone'
)
return
if
(
vehicleInfo
.
vehicleNo
&&
save_key
==
'audi'
)
return
let
name
=
type
==
'platNumber'
?
'customer.editPlat'
:
'customer.editDetail'
let
name
=
type
==
'platNumber'
?
'customer.editPlat'
:
'customer.editDetail'
this
.
$router
.
push
({
name
,
params
:
{
...
...
@@ -473,7 +474,6 @@ export default {
...
obj
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
showToast
(
'更新成功'
,
()
=>
{
this
.
showLoading
()
this
.
getCustomerDetail
(
id
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment