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 c7b82cf6
authored
Dec 13, 2020
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加客户流失提醒功能等
1 parent
af7013f5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
12 deletions
linkwe-ui/src/api/customer/index.js
linkwe-ui/src/components/PhoneDialog.vue
linkwe-ui/src/views/customerManage/customer.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/lossRemind.vue
linkwe-ui/src/views/drainageCode/staff/add.vue
linkwe-ui/src/views/drainageCode/welcome/add.vue
linkwe-ui/src/api/customer/index.js
View file @
c7b82cf
...
@@ -12,6 +12,7 @@ const service = window.CONFIG.services.wecom + '/customer'
...
@@ -12,6 +12,7 @@ const service = window.CONFIG.services.wecom + '/customer'
"tagIds": "标签id,多个标签,id使用逗号隔开",
"tagIds": "标签id,多个标签,id使用逗号隔开",
"beginTime": "开始时间",
"beginTime": "开始时间",
"endTime": "结束时间"
"endTime": "结束时间"
status: 0 客户状态 0正常 1删除
}
}
*/
*/
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
...
@@ -105,3 +106,23 @@ export function getDetail(externalUserid) {
...
@@ -105,3 +106,23 @@ export function getDetail(externalUserid) {
url
:
service
+
'/getCustomersByUserId/'
+
externalUserid
,
url
:
service
+
'/getCustomersByUserId/'
+
externalUserid
,
})
})
}
}
/**
* 客户流失通知开关
* @param {*} status [string] 是 客户流失通知开关 0:关闭 1:开启
*/
export
function
lossRemind
(
status
)
{
return
request
({
url
:
window
.
CONFIG
.
services
.
wecom
+
'/corp/startCustomerChurnNoticeSwitch/'
+
status
,
method
:
'PUT'
,
})
}
export
function
getLossRemindStatus
(
status
)
{
return
request
({
url
:
window
.
CONFIG
.
services
.
wecom
+
'/corp/getCustomerChurnNoticeSwitch/'
,
})
}
linkwe-ui/src/components/PhoneDialog.vue
View file @
c7b82cf
...
@@ -104,4 +104,7 @@ export default {
...
@@ -104,4 +104,7 @@ export default {
}
}
}
}
}
}
.el-avatar
{
flex
:
none
;
}
</
style
>
</
style
>
linkwe-ui/src/views/customerManage/customer.vue
View file @
c7b82cf
...
@@ -136,8 +136,10 @@ export default {
...
@@ -136,8 +136,10 @@ export default {
type
:
'query'
,
type
:
'query'
,
}
}
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
$refs
.
selectTag
.
$forceUpdate
()
},
},
makeTag
(
type
)
{
makeTag
(
type
)
{
debugger
this
.
selectedTag
=
[]
this
.
selectedTag
=
[]
if
(
!
this
.
multipleSelection
.
length
)
{
if
(
!
this
.
multipleSelection
.
length
)
{
this
.
msgInfo
(
'请选择一位客户'
)
this
.
msgInfo
(
'请选择一位客户'
)
...
@@ -173,6 +175,7 @@ export default {
...
@@ -173,6 +175,7 @@ export default {
}
}
this
.
removeTag
=
this
.
selectedTag
.
slice
()
this
.
removeTag
=
this
.
selectedTag
.
slice
()
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
$refs
.
selectTag
.
$forceUpdate
()
},
},
sync
()
{
sync
()
{
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
...
@@ -447,6 +450,7 @@ export default {
...
@@ -447,6 +450,7 @@ export default {
<!-- 选择标签弹窗 -->
<!-- 选择标签弹窗 -->
<SelectTag
<SelectTag
ref="
selectTag
"
:visible.sync="
dialogVisible
"
:visible.sync="
dialogVisible
"
:title="
tagDialogType
.
title
"
:title="
tagDialogType
.
title
"
:selected="
selectedTag
"
:selected="
selectedTag
"
...
...
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
c7b82cf
...
@@ -7,7 +7,7 @@ export default {
...
@@ -7,7 +7,7 @@ export default {
return
{
return
{
datePickerVisible
:
false
,
datePickerVisible
:
false
,
customer
:
{
customer
:
{
weFlowerCustomerRels
:
[],
weFlowerCustomerRels
:
[
{}
],
},
},
birthday
:
''
,
birthday
:
''
,
}
}
...
@@ -84,9 +84,21 @@ export default {
...
@@ -84,9 +84,21 @@ export default {
<
el
-
card
shadow
=
"never"
:
body
-
style
=
"
{
width
:
'400px'
}
">
<
el
-
card
shadow
=
"never"
:
body
-
style
=
"
{
width
:
'400px'
}
">
<div>
<div>
<!-- <el-button class="
fr
" type="
danger
" plain size="
mini
"
>该员工已被客户删除</el-button
> -->
<el-row :gutter="
10
">
<el-row :gutter="
10
">
<el-col :span="
10
">备注名:</el-col>
<el-col :span="
10
">备注名:</el-col>
<el-col :span="
12
"
>
{{
customer
.
name
}}
<
/el-col
>
<el-col :span="
10
">
<el-tooltip
class="
item
"
effect="
dark
"
:content="
customer
.
name
"
placement="
top
-
start
"
>
<div class="
toe
"
>
{{
customer
.
name
}}
<
/div
>
<
/el-tooltip
>
<
/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
>
...
...
linkwe-ui/src/views/customerManage/lossRemind.vue
0 → 100644
View file @
c7b82cf
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/drainageCode/staff/add.vue
View file @
c7b82cf
...
@@ -273,11 +273,7 @@ export default {
...
@@ -273,11 +273,7 @@ export default {
:message=
"form.welcomeMsg || '请输入欢迎语'"
:message=
"form.welcomeMsg || '请输入欢迎语'"
:isOther=
"!!materialSelected"
:isOther=
"!!materialSelected"
>
>
<el-image
<el-image
style=
"border-radius: 6px;"
:src=
"materialSelected"
fit=
"fit"
>
style=
"width: 100px; height: 100px; cursor: pointer;border-radius: 6px;"
:src=
"materialSelected"
fit=
"fit"
>
</el-image>
</el-image>
</PhoneDialog>
</PhoneDialog>
<div
class=
"tip"
>
欢迎语样式
</div>
<div
class=
"tip"
>
欢迎语样式
</div>
...
...
linkwe-ui/src/views/drainageCode/welcome/add.vue
View file @
c7b82cf
...
@@ -136,11 +136,7 @@ export default {
...
@@ -136,11 +136,7 @@ export default {
:message=
"form.welcomeMsg || '请输入欢迎语'"
:message=
"form.welcomeMsg || '请输入欢迎语'"
:isOther=
"!!form.materialUrl"
:isOther=
"!!form.materialUrl"
>
>
<el-image
<el-image
style=
"border-radius: 6px;"
:src=
"form.materialUrl"
fit=
"fit"
>
style=
"width: 100px; height: 100px; cursor: pointer;border-radius: 6px;"
:src=
"form.materialUrl"
fit=
"fit"
>
</el-image
</el-image
></PhoneDialog>
></PhoneDialog>
...
...
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