Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 5d96909c
authored
Dec 14, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新代码3.2.0需求代码
1 parent
d959e23f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
444 additions
and
0 deletions
src/api/modules/customerTransform.js
src/api/modules/customerTransform.js
0 → 100644
View file @
5d96909
import
{
http
,
http2
}
from
'@/main'
const
path
=
'entmicro.api.mass.'
const
URL
=
'rop-scrm-entmicro/router'
const
customerList
=
params
=>
{
params
.
type
=
1
params
.
method
=
`
${
path
}
page`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
customerGroupList
=
params
=>
{
params
.
type
=
2
params
.
method
=
`
${
path
}
page`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
insert
=
params
=>
{
params
.
method
=
`
${
path
}
insert`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
detail
=
params
=>
{
params
.
type
=
2
params
.
method
=
`
${
path
}
detail`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
listDepartmentTree
=
params
=>
{
params
.
method
=
'entmicro.api.department.listDepartmentTree'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
findLordGroup
=
params
=>
{
params
.
method
=
'entmicro.api.staff.findLordGroup'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
querylabeltree
=
params
=>
{
// params.method = 'scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
groupList
=
params
=>
{
params
.
method
=
'entmicro.api.customer.group.list.by.merchant'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
customerCount
=
params
=>
{
params
.
method
=
'entmicro.api.mass.detail.customer.filter.count'
// return http({
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 客户群发、客户群群发基本信息详情
const
customerDetail
=
params
=>
{
params
.
method
=
`
${
path
}
detail`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 客户群发统计
const
detailStatistic
=
params
=>
{
params
.
method
=
`
${
path
}
detail.statistic`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 客户群群发统计
const
groupDetailStatistic
=
params
=>
{
params
.
method
=
`
${
path
}
group.detail.statistic`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 客户群发员工列表
const
staffList
=
params
=>
{
params
.
method
=
`
${
path
}
staff.list`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 客户群发客户列表
const
customerDetailList
=
params
=>
{
params
.
method
=
`
${
path
}
customer.list.page`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 客户群群发列表
const
groupDetailList
=
params
=>
{
params
.
method
=
`
${
path
}
group.detail.sender.list`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 根据id提醒用户 ,列表
const
listRemindOperate
=
params
=>
{
params
.
method
=
`
${
path
}
listRemindOperate`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 详情页客户群提醒
const
remindUserGroup
=
params
=>
{
params
.
method
=
`
${
path
}
remindUserGroup`
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getMerchant
=
params
=>
{
params
.
method
=
'scrm.api.coupon.list.merchant'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getCard
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
merchant
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
merchantOpen
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getPackage
=
params
=>
{
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getActivity
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
nameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.valid'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getStatus
=
params
=>
{
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
templatePage
=
params
=>
{
params
.
method
=
`
${
path
}
template.page.search`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
templateSave
=
params
=>
{
params
.
method
=
`
${
path
}
template.save`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
templateUpdate
=
params
=>
{
params
.
method
=
`
${
path
}
template.update`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
createdNameList
=
params
=>
{
params
.
method
=
`
${
path
}
template.created.name.list`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
templateDetail
=
params
=>
{
params
.
method
=
`
${
path
}
template.detail`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
groupDetailUpdate
=
params
=>
{
params
.
method
=
`
${
path
}
update.group.detail`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
followerType
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
queryCrowdtree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http
({
url
:
'rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
followerEcho
=
params
=>
{
params
.
method
=
'entmicro.api.mass.follower.echo'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取素材组列表
const
getGroupListApi
=
params
=>
{
params
.
method
=
'marketing.api.material.group.list'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取素材列表
const
getMaterialListApi
=
params
=>
{
// params.method = 'marketing.api.material.page'
params
.
method
=
'marketing.api.material.sop.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 更新客户群发客户列表
const
renewDetailList
=
params
=>
{
params
.
method
=
`
${
path
}
update.merchant`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 客户群发统计
const
renewStatistic
=
params
=>
{
params
.
method
=
`
${
path
}
update.group.detail`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
customerList
,
customerGroupList
,
insert
,
detail
,
remindUserGroup
,
listRemindOperate
,
listDepartmentTree
,
querylabeltree
,
groupList
,
customerCount
,
customerDetail
,
detailStatistic
,
groupDetailStatistic
,
staffList
,
customerDetailList
,
groupDetailList
,
getMerchant
,
getCard
,
getCoupon
,
merchant
,
merchantOpen
,
getPackage
,
getActivity
,
nameVaild
,
getStatus
,
templatePage
,
templateSave
,
templateUpdate
,
createdNameList
,
templateDetail
,
groupDetailUpdate
,
findLordGroup
,
followerType
,
queryCrowdtree
,
followerEcho
,
getGroupListApi
,
getMaterialListApi
,
renewDetailList
,
renewStatistic
}
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