Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 6b94ac14
authored
Nov 01, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户接口修改
1 parent
3bb01109
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
56 deletions
linkwe-ui/src/views/customerManage/customer.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/customer.vue
View file @
6b94ac1
...
@@ -266,7 +266,7 @@ export default {
...
@@ -266,7 +266,7 @@ export default {
goRoute
(
row
)
{
goRoute
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'customerDetail'
,
path
:
'customerDetail'
,
query
:
{
id
:
row
.
externalUserid
}
query
:
{
data
:
JSON
.
stringify
(
row
)
}
})
})
}
}
}
}
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
</template>
</template>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="
corpName
" label="
公司名称
" align="
center
"></el-table-column> -->
<!-- <el-table-column prop="
corpName
" label="
公司名称
" align="
center
"></el-table-column> -->
<el-table-column prop="
firstUserId
" label="
添加人(首位)
" align="
center
">
<el-table-column prop="
userName
" label="
添加人(首位)
" align="
center
">
<!-- <template slot-scope="
{
row
}"
>
{{
<!-- <template slot-scope="
{
row
}"
>
{{
row
.
weFlowerCustomerRels
[
0
]
?
row
.
weFlowerCustomerRels
[
0
].
userName
:
''
row
.
weFlowerCustomerRels
[
0
]
?
row
.
weFlowerCustomerRels
[
0
].
userName
:
''
}}
<
/template> --
>
}}
<
/template> --
>
...
...
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
6b94ac1
...
@@ -7,14 +7,14 @@ export default {
...
@@ -7,14 +7,14 @@ export default {
return
{
return
{
datePickerVisible
:
false
,
datePickerVisible
:
false
,
customer
:
{
customer
:
{
weFlowerCustomerRels
:
[{}]
,
weFlowerCustomerRels
:
[{}]
},
},
birthday
:
''
,
birthday
:
''
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
return
time
.
getTime
()
>
Date
.
now
()
}
,
}
}
,
}
}
}
},
},
created
()
{
created
()
{
...
@@ -28,6 +28,7 @@ export default {
...
@@ -28,6 +28,7 @@ export default {
let
data
=
{
let
data
=
{
externalUserid
:
this
.
customer
.
externalUserid
,
externalUserid
:
this
.
customer
.
externalUserid
,
birthday
:
this
.
birthday
,
birthday
:
this
.
birthday
,
firstUserId
:
this
.
customer
.
firstUserId
}
}
updateBirthday
(
data
).
then
((
response
)
=>
{
updateBirthday
(
data
).
then
((
response
)
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
...
@@ -36,19 +37,16 @@ export default {
...
@@ -36,19 +37,16 @@ export default {
})
})
},
},
getDetail
()
{
getDetail
()
{
getDetail
(
this
.
$route
.
query
.
id
).
then
(({
data
})
=>
{
this
.
customer
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
this
.
customer
=
data
[
0
]
// getDetail(this.$route.query.id).then(({ data }) => {
this
.
birthday
=
this
.
customer
.
birthday
// this.customer = data[0]
})
// this.birthday = this.customer.birthday
// })
},
},
remark
(
item
)
{
remark
(
item
)
{
return
(
return
item
.
remark
||
this
.
customer
.
customerName
+
(
item
.
remarkCorpName
?
'-'
+
item
.
remarkCorpName
:
''
)
item
.
remark
||
}
this
.
customer
.
name
+
}
(
item
.
remarkCorpName
?
'-'
+
item
.
remarkCorpName
:
''
)
)
},
},
}
}
</
script
>
</
script
>
...
@@ -56,27 +54,16 @@ export default {
...
@@ -56,27 +54,16 @@ export default {
<div>
<div>
<!--
<el-button
slot=
"append"
circle
icon=
"el-icon-back"
@
click=
"$router.back()"
></el-button>
返回 -->
<!--
<el-button
slot=
"append"
circle
icon=
"el-icon-back"
@
click=
"$router.back()"
></el-button>
返回 -->
<el-card
<el-card
shadow=
"never"
:body-style=
"
{ width: '410px', lineHeight: '30px' }">
v-for=
"(item, index) of customer.weFlowerCustomerRels"
:key=
"index"
shadow=
"never"
:body-style=
"
{ width: '410px', lineHeight: '30px' }"
>
<div
class=
"flex aic mt20"
>
<div
class=
"flex aic mt20"
>
<el-avatar
:size=
"50"
:src=
"customer.avatar"
></el-avatar>
<el-avatar
:size=
"50"
:src=
"customer.avatar"
></el-avatar>
<div
class=
"info-wrap"
>
<div
class=
"info-wrap"
>
<div
class=
"mb10"
>
<div
class=
"mb10"
>
{{
customer
.
name
}}
{{
customer
.
name
}}
<span
<span
:style=
"
{ color: customer.type == 1 ? '#4bde03' : '#f9a90b' }">
{{
:style=
"
{ color: customer.type == 1 ? '#4bde03' : '#f9a90b' }"
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
customer
.
type
]
>
{{
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
customer
.
type
]
}}
<
/spa
n
}}
<
/span
>
>
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
customer
.
gender
]]
"></i>
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
customer
.
gender
],
]
"
></i>
</div>
</div>
<div class="
info
"
>
<div class="
info
"
>
出生日期:
{{
customer
.
birthday
}}
出生日期:
{{
customer
.
birthday
}}
...
@@ -103,25 +90,13 @@ export default {
...
@@ -103,25 +90,13 @@ export default {
<
/div
>
<
/div
>
<
el
-
divider
><
/el-divider
>
<
el
-
divider
><
/el-divider
>
<
el
-
button
<
el
-
button
v
-
if
=
"customer.status == 1"
class
=
"fr"
type
=
"danger"
plain
size
=
"mini"
>
该员工已被客户删除
<
/el-button
>
v
-
if
=
"item.status == 1"
class
=
"fr"
type
=
"danger"
plain
size
=
"mini"
>
该员工已被客户删除
<
/el-butto
n
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
col
:
span
=
"10"
>
备注名:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
备注名:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
<
el
-
col
:
span
=
"10"
>
<
el
-
tooltip
<
el
-
tooltip
class
=
"item"
effect
=
"dark"
:
content
=
"remark(customer)"
placement
=
"top-start"
>
class
=
"item"
effect
=
"dark"
:
content
=
"remark(item)"
placement
=
"top-start"
>
<
div
class
=
"toe al"
>
<
div
class
=
"toe al"
>
{{
remark
(
item
)
}}
{{
remark
(
customer
)
}}
<
/div
>
<
/div
>
<
/el-tooltip
>
<
/el-tooltip
>
<
/el-col
>
<
/el-col
>
...
@@ -129,12 +104,7 @@ export default {
...
@@ -129,12 +104,7 @@ export default {
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
col
:
span
=
"10"
>
标签:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
标签:
<
/el-col
>
<
el
-
col
:
span
=
"14"
>
<
el
-
col
:
span
=
"14"
>
<
el
-
tag
<
el
-
tag
type
=
"info"
v
-
for
=
"(unit, unique) in customer.tagNames"
:
key
=
"unique"
>
{{
unit
}}
<
/el-tag
>
type
=
"info"
v
-
for
=
"(unit, unique) in item.weFlowerCustomerTagRels"
:
key
=
"unique"
>
{{
unit
.
tagName
}}
<
/el-ta
g
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
...
@@ -145,15 +115,15 @@ export default {
...
@@ -145,15 +115,15 @@ export default {
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
col
:
span
=
"10"
>
添加人:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
添加人:
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
item
.
userName
}}
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
customer
.
userName
}}
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
col
:
span
=
"10"
>
所在部门:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
所在部门:
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
item
.
department
}}
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
customer
.
department
}}
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
row
:
gutter
=
"10"
>
<
el
-
col
:
span
=
"10"
>
添加时间:
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
添加时间:
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
item
.
create
Time
}}
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
{{
customer
.
firstAdd
Time
}}
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
/el-card
>
<
/el-card
>
<
/div
>
<
/div
>
...
...
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