Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 c7278666
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
1e954272
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
211 additions
and
5 deletions
src/api/modules/marketing.js
src/main.js
src/setup/qiankun.js
src/api/modules/marketing.js
View file @
c727866
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
* @param {*} params
* @param {*} params
* @returns
* @returns
*/
*/
import
{
http
}
from
'@/main'
import
{
http
,
http_gpt
,
http_merchant
}
from
'@/main'
const
url
=
'/rop-scrm-entmicro/router'
let
session
=
'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
let
session
=
'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const
getCoupon
=
params
=>
{
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
...
@@ -182,6 +183,190 @@ const findMerchantInfoByMerchantNo = params => {
...
@@ -182,6 +183,190 @@ const findMerchantInfoByMerchantNo = params => {
sign
:
true
sign
:
true
})
})
}
}
//客户概览
const
viewData
=
params
=>
{
params
.
method
=
'entmicro.api.Customer.customer.view.data'
return
http
({
url
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getChatGPTList
=
params
=>
{
return
http_gpt
({
url
:
'openai/title'
,
method
:
'POST'
,
data
:
params
,
sign
:
false
,
returnAll
:
false
})
}
const
calendarPage
=
params
=>
{
params
.
method
=
'marketing.api.calendar.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
calendarDetail
=
params
=>
{
params
.
method
=
'marketing.api.calendar.detail'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//营销任务-导入客户
const
importCustomer
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.importCustomer'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取机器人下拉列表
const
getRobotList
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.bulge.getRobotList'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//查询员工列表
const
findMerchantStaffList
=
params
=>
{
params
.
method
=
'merchants.api.open.findMerchantStaffList'
return
http_merchant
({
url
:
'rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//创建超级营销
const
createSuperMarketing
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.createSuperMarketing'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findActivityInfo
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.findActivityInfo'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取小管家二维码
const
EntWechatQrCode
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.EntWechatQrCode'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
activityDetail
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.detail'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 门店详情
const
findMerchantDetailByMerchantNo
=
params
=>
{
params
.
method
=
'merchants.api.open.findMerchantDetailByMerchantNo'
return
http_merchant
({
url
:
'rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
registerSso
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.staff.bulge.register'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.activity.bulge.add.or.update`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
importModel
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.customer.importModel`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getSmsTemplate
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.bulge.getSmsTemplate`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findMarketingTask
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.findMarketingTask`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//创建/修改自定义套餐
const
packageGetCode
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.package.customize.code.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取服务项目列表
const
servicePage
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.items.pages`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getCoupon
,
getCoupon
,
getMerchant
,
getMerchant
,
...
@@ -200,5 +385,24 @@ export default {
...
@@ -200,5 +385,24 @@ export default {
findConfig
,
findConfig
,
addConfig
,
addConfig
,
customerPage
,
customerPage
,
findMerchantInfoByMerchantNo
findMerchantInfoByMerchantNo
,
viewData
,
getChatGPTList
,
calendarPage
,
calendarDetail
,
importCustomer
,
getRobotList
,
findMerchantStaffList
,
createSuperMarketing
,
updateApi
,
activityDetail
,
findActivityInfo
,
registerSso
,
EntWechatQrCode
,
findMerchantDetailByMerchantNo
,
importModel
,
getSmsTemplate
,
findMarketingTask
,
servicePage
,
packageGetCode
}
}
src/main.js
View file @
c727866
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 202
2-11-23 17:20:32
* @LastEditTime: 202
3-09-27 16:14:08
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
@@ -28,3 +28,4 @@ export const http2 = params => Vue.prototype.$http2(params)
...
@@ -28,3 +28,4 @@ export const http2 = params => Vue.prototype.$http2(params)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
export
const
http_gpt
=
params
=>
Vue
.
prototype
.
$http_gpt
(
params
)
src/setup/qiankun.js
View file @
c727866
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-
05 16:08:47
* @LastEditTime: 2023-09-
27 16:13:52
* @FilePath: \live\src\setup\qiankun.js
* @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -27,7 +27,7 @@ Vue.use(GLTableButton)
...
@@ -27,7 +27,7 @@ Vue.use(GLTableButton)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
,
merchantId
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_
gpt
,
request_
merchant
,
merchantId
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -42,6 +42,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -42,6 +42,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_gpt
=
new
common
.
Http
({
response
,
request
:
request_gpt
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
...
...
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