Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 becf5bbc
authored
Mar 28, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
选择客户
1 parent
72db2480
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
13 deletions
src/api/modules/sop.js
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/selectCustomer.vue
src/views/sop/editSop/components/selectLabel.vue
src/api/modules/sop.js
View file @
becf5bb
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
// 获取客户列表
const
getCustomerListApi
=
params
=>
{
params
.
method
=
'entmicro.api.customer.page'
params
.
source
=
'scrm-home'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 标签获取客户列表
// 标签获取客户列表
const
getCustomerByTagListApi
=
params
=>
{
const
getCustomerByTagListApi
=
params
=>
{
params
.
method
=
'entmicro.api.customer.getCustomerPageByTag'
params
.
method
=
'entmicro.api.customer.getCustomerPageByTag'
...
@@ -191,4 +203,4 @@ const getMomentListApi = params => {
...
@@ -191,4 +203,4 @@ const getMomentListApi = params => {
})
})
}
}
export
default
{
getCustomerByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
getTaskStatusApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
,
getGroupListApi
,
getMaterialListApi
,
getMomentListApi
}
export
default
{
getCustomer
ListApi
,
getCustomer
ByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
getTaskStatusApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
,
getGroupListApi
,
getMaterialListApi
,
getMomentListApi
}
src/views/sop/editSop/baseInfo.vue
View file @
becf5bb
...
@@ -317,13 +317,13 @@ export default {
...
@@ -317,13 +317,13 @@ export default {
console
.
log
(
action
)
console
.
log
(
action
)
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
tagging
,
customerInfoList
:
this
.
editForm
.
customerInfoList
})
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
tagging
,
customerInfoList
:
this
.
editForm
.
customerInfoList
,
activeName
:
'customer'
})
}
}
}
}
})
})
}
else
{
}
else
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
tagging
,
customerInfoList
:
this
.
editForm
.
customerInfoList
})
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
tagging
,
customerInfoList
:
this
.
editForm
.
customerInfoList
,
activeName
:
'customer'
})
}
}
// console.log(this.isTagVisible)
// console.log(this.isTagVisible)
},
},
...
...
src/views/sop/editSop/components/selectCustomer.vue
View file @
becf5bb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"title"
>
备注:为确保营销渠道正常触达,仅支持选择同条件客户(是否加企微、是否有手机号)
</div>
<div
class=
"title"
>
备注:为确保营销渠道正常触达,仅支持选择同条件客户(是否加企微、是否有手机号)
</div>
<div
class=
"flex-default"
>
<div
class=
"flex-default"
>
<div
class=
"customer-list"
>
<div
class=
"customer-list"
>
<div
v-show=
"selectedLabelList.length != 0"
class=
"tag-box"
>
<div
class=
"tag-box"
>
<span
class=
"tag-label"
>
用户标签:
</span>
<span
class=
"tag-label"
>
用户标签:
</span>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"handleClickTag"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"handleClickTag"
>
<span
v-for=
"(tag, idx) in selectedLabelList"
:key=
"idx"
>
<span
v-for=
"(tag, idx) in selectedLabelList"
:key=
"idx"
>
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
selectedSum
:
0
,
selectedSum
:
0
,
heightBox
:
200
,
heightBox
:
200
,
// 表格
// 表格
getListApi
:
this
.
$apis
.
sop
.
getCustomer
ByTag
ListApi
,
getListApi
:
this
.
$apis
.
sop
.
getCustomerListApi
,
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
listName
:
'data'
,
// 行数据的key
// 行数据的key
...
@@ -170,6 +170,7 @@ export default {
...
@@ -170,6 +170,7 @@ export default {
})
})
})
})
})
})
this
.
getListApi
=
this
.
selectedLabelList
.
length
?
this
.
$apis
.
sop
.
getCustomerByTagListApi
:
this
.
$apis
.
sop
.
getCustomerListApi
resolve
()
resolve
()
})
})
},
},
...
@@ -178,7 +179,7 @@ export default {
...
@@ -178,7 +179,7 @@ export default {
this
.
tableList
=
this
.
$refs
.
customerRef
.
data
this
.
tableList
=
this
.
$refs
.
customerRef
.
data
this
.
recoverySelected
()
this
.
recoverySelected
()
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
customerRef
.
data
.
length
?
(
this
.
$refs
.
customerRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
customerRef
.
setTableHeightFun
()
this
.
$refs
.
customerRef
.
tableHeightValues
=
''
},
},
recoverySelected
()
{
recoverySelected
()
{
...
@@ -201,12 +202,12 @@ export default {
...
@@ -201,12 +202,12 @@ export default {
},
},
dealCondLimit
(
val
)
{
dealCondLimit
(
val
)
{
this
.
condLimitObj
.
hasQw
=
val
.
isJoin
this
.
condLimitObj
.
hasQw
=
val
?
val
.
isJoin
:
0
this
.
condLimitObj
.
hasPhone
=
val
.
customerPhone
?
1
:
0
this
.
condLimitObj
.
hasPhone
=
val
?
(
val
.
customerPhone
?
1
:
0
)
:
0
},
},
handleClickTag
()
{
handleClickTag
()
{
this
.
$emit
(
'handleChangeTag'
,
{
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
selectedLabelList
,
customerInfoList
:
this
.
selectedCustomerList
})
this
.
$emit
(
'handleChangeTag'
,
{
condLimitObj
:
this
.
condLimitObj
,
tagList
:
this
.
selectedLabelList
,
customerInfoList
:
this
.
selectedCustomerList
,
activeName
:
'tag'
})
},
},
handleSelectionTable
(
val
)
{
handleSelectionTable
(
val
)
{
...
...
src/views/sop/editSop/components/selectLabel.vue
View file @
becf5bb
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<select-customer
v-if=
"activeName == 'cu
tomer'"
ref=
"customerRef"
:selectedLabelList=
"selectedLabelList"
:condLimitObj
.
sync=
"condLimitObj"
:selectedCustomerList
.
sync=
"selectedCustomerList"
@
handleChangeTag=
"init
"
></select-customer>
<select-customer
v-if=
"activeName == 'cu
stomer'"
ref=
"customerRef"
:selectedLabelList=
"selectedLabelList"
:condLimitObj
.
sync=
"condLimitObj"
:selectedCustomerList
.
sync=
"selectedCustomerList"
@
handleChangeTag=
"handleChangeTag
"
></select-customer>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a> -->
<!-- <a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a> -->
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
...
@@ -138,13 +138,18 @@ export default {
...
@@ -138,13 +138,18 @@ export default {
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
},
},
handleChangeTag
(
item
)
{
this
.
selectedCustomerList
=
item
.
customerInfoList
?
JSON
.
parse
(
JSON
.
stringify
(
item
.
customerInfoList
))
:
[]
this
.
condLimitObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
condLimitObj
))
this
.
activeName
=
item
.
activeName
},
init
(
item
)
{
init
(
item
)
{
this
.
labelGroupName
=
''
this
.
labelGroupName
=
''
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
activeName
=
'tag'
this
.
selectedCustomerList
=
item
.
customerInfoList
?
JSON
.
parse
(
JSON
.
stringify
(
item
.
customerInfoList
))
:
[]
this
.
selectedCustomerList
=
item
.
customerInfoList
?
JSON
.
parse
(
JSON
.
stringify
(
item
.
customerInfoList
))
:
''
this
.
condLimitObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
condLimitObj
))
this
.
condLimitObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
condLimitObj
))
this
.
querylabeltree
(
item
.
tagList
)
this
.
querylabeltree
(
item
.
tagList
)
this
.
activeName
=
item
.
activeName
},
},
handleSearch
()
{
handleSearch
()
{
this
.
searchStatus
=
true
this
.
searchStatus
=
true
...
@@ -265,10 +270,11 @@ export default {
...
@@ -265,10 +270,11 @@ export default {
console
.
log
(
this
.
selectedLabelList
)
console
.
log
(
this
.
selectedLabelList
)
// 标签
// 标签
if
(
this
.
activeName
==
'tag'
)
{
if
(
this
.
activeName
==
'tag'
)
{
this
.
activeName
=
'cutomer'
this
.
activeName
=
'cu
s
tomer'
return
false
return
false
}
}
// 客户
// 客户
this
.
activeName
=
'tag'
this
.
$emit
(
'tagSelected'
,
{
selectedLabelList
:
this
.
selectedLabelList
,
selectedCustomerList
:
this
.
$refs
.
customerRef
.
selectedCustomerList
,
condLimitObj
:
this
.
$refs
.
customerRef
.
condLimitObj
})
this
.
$emit
(
'tagSelected'
,
{
selectedLabelList
:
this
.
selectedLabelList
,
selectedCustomerList
:
this
.
$refs
.
customerRef
.
selectedCustomerList
,
condLimitObj
:
this
.
$refs
.
customerRef
.
condLimitObj
})
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
},
},
...
...
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