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 a358f53e
authored
Oct 08, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.20.0_10' into 'v3.20.0'
合并3.19代码 See merge request
!3
2 parents
32adf30e
9f759ed6
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
767 additions
and
135 deletions
package-lock.json
src/api/modules/giftBag.js
src/api/modules/marketing.js
src/assets/css/public.scss
src/main.js
src/setup/qiankun.js
src/views/activityLink/components/Marketing.vue
src/views/activityLink/components/MarketingContent.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/dataBoard.vue
src/views/activityLink/index.vue
package-lock.json
View file @
a358f53
...
@@ -1893,51 +1893,6 @@
...
@@ -1893,51 +1893,6 @@
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"dev"
:
true
"dev"
:
true
},
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"ssri"
:
{
"ssri"
:
{
"version"
:
"8.0.1"
,
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
...
@@ -1946,28 +1901,6 @@
...
@@ -1946,28 +1901,6 @@
"requires"
:
{
"requires"
:
{
"minipass"
:
"^3.1.1"
"minipass"
:
"^3.1.1"
}
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
}
}
}
}
}
},
},
...
@@ -13378,6 +13311,75 @@
...
@@ -13378,6 +13311,75 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-style-loader"
:
{
"vue-style-loader"
:
{
"version"
:
"4.1.3"
,
"version"
:
"4.1.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz"
,
...
...
src/api/modules/giftBag.js
View file @
a358f53
...
@@ -161,4 +161,90 @@ const getGroupGift = params => {
...
@@ -161,4 +161,90 @@ const getGroupGift = params => {
sign
:
true
sign
:
true
})
})
}
}
export
default
{
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
,
getReceivedGiftDetail
,
getReceivedGiftInfoApi
,
exportGiftInfoApi
,
getDirectionalGiftListApi
,
insertGiftApi
,
templateModal
,
getghDirectionalGiftListApi
,
toVoidGift
,
getQrcode
,
getGroupGift
}
//新建或修改营销礼包预设方案(超级营销)
const
packageAdd
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.coupon.package.add.or.update'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取默认营销礼包预设方案(超级营销)
const
packageList
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.coupon.package.list'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//查询某个营销礼包预设方案详情(超级营销)
const
packageDetail
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.coupon.package.detail'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//查询某个营销礼包预设方案详情(超级营销)
const
packageDefault
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.coupon.package.default'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getEquityListApi
=
params
=>
{
params
.
method
=
'scrm.api.coupon.equity.list.merchant'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
brandList
=
params
=>
{
params
.
method
=
'scrm.api.equity.goods.brand.list.all'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
couponTemplate
=
params
=>
{
params
.
method
=
'scrm.api.coupon.template.page'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
couponTemplateDetails
=
params
=>
{
params
.
method
=
'scrm.api.coupon.template.details.page'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
equityMerchant
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
packageList
,
packageDetail
,
packageDefault
,
getEquityListApi
,
brandList
,
packageAdd
,
equityMerchant
,
couponTemplateDetails
,
couponTemplate
,
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
,
getReceivedGiftDetail
,
getReceivedGiftInfoApi
,
exportGiftInfoApi
,
getDirectionalGiftListApi
,
insertGiftApi
,
templateModal
,
getghDirectionalGiftListApi
,
toVoidGift
,
getQrcode
,
getGroupGift
}
src/api/modules/marketing.js
View file @
a358f53
...
@@ -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/assets/css/public.scss
View file @
a358f53
...
@@ -66,7 +66,7 @@ html {
...
@@ -66,7 +66,7 @@ html {
}
}
.ellipsis-2-text
:after
{
.ellipsis-2-text
:after
{
content
:
'...'
;
content
:
"..."
;
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
right
:
15px
;
right
:
15px
;
...
@@ -638,11 +638,11 @@ html {
...
@@ -638,11 +638,11 @@ html {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.el-tooltip__popper
[
x-placement
^=
'top'
]
.popper__arrow
{
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
{
border-top-color
:
#e4e7ed
!
important
;
border-top-color
:
#e4e7ed
!
important
;
}
}
.el-tooltip__popper
[
x-placement
^=
'top'
]
.popper__arrow
:after
{
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
:after
{
border-top-color
:
#e4e7ed
!
important
;
border-top-color
:
#e4e7ed
!
important
;
}
}
...
@@ -770,3 +770,135 @@ html {
...
@@ -770,3 +770,135 @@ html {
}
}
}
}
}
}
.link-main
{
.container
{
background
:
#ffffff
;
padding
:
20px
;
}
.w-100-percent
{
width
:
100%
;
}
.txt-center
{
text-align
:
center
;
}
.m-b-20
{
margin-bottom
:
20px
;
}
.p-t-20
{
padding-top
:
20px
;
}
.table-circle
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
4px
;
vertical-align
:
middle
;
}
.back-orange
{
background-color
:
#fdb757
;
}
.back-blue
{
background-color
:
#5850ff
;
}
.back-grey
{
background-color
:
#999999
;
}
.back-green
{
background-color
:
#2cca74
;
}
.back-red
{
background-color
:
#eb4e4e
;
}
.m-r-8
{
margin-right
:
8px
;
}
.message-Z-zinde
,
.message-Z-zinde
{
z-index
:
9999
!
important
;
}
.ellipsis-1
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
}
.tips-icon
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
margin-right
:
12px
;
vertical-align
:
middle
;
cursor
:
pointer
;
}
.el-tabs__item
{
width
:
120px
;
padding
:
0
20px
;
text-align
:
center
;
}
.p-t-10
{
padding-top
:
20px
;
}
.p-t-20
{
padding-top
:
20px
;
}
.p-20
{
padding
:
20px
;
}
.img-36
{
width
:
36px
;
height
:
36px
;
}
.pointer
{
cursor
:
pointer
;
}
.m-l-10
{
margin-left
:
10px
;
}
.m-l-20
{
margin-left
:
20px
;
}
.m-t-10
{
margin-top
:
10px
;
}
.m-t-20
{
margin-top
:
20px
;
}
.m-b-10
{
margin-bottom
:
10px
;
}
.m-b-20
{
margin-bottom
:
2px
;
}
.flex-align
{
display
:
flex
;
align-items
:
center
;
}
.flex-top
{
display
:
-
webkit-box
;
display
:
-
ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
start
;
-ms-flex-align
:
start
;
align-items
:
flex-start
;
}
.edit-title
{
font-size
:
16px
;
font-weight
:
600
;
height
:
58px
;
line-height
:
58px
;
border-bottom
:
1px
solid
#e7eaec
;
margin
:
0
0
;
padding
:
0
0
0
20px
;
}
.edit-form-container
{
margin-top
:
20px
;
}
.assignLabel
{
color
:
#5850ff
;
}
}
src/main.js
View file @
a358f53
...
@@ -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 @
a358f53
...
@@ -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:11:41
* @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
*/
*/
...
@@ -28,7 +28,7 @@ Vue.use(GLTableButton)
...
@@ -28,7 +28,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_merchant
,
merchantId
,
request_gpt
}
=
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
...
@@ -40,6 +40,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -40,6 +40,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
// 集团版集团账号
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
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
.
$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
}
})
...
...
src/views/activityLink/components/Marketing.vue
View file @
a358f53
...
@@ -2,65 +2,33 @@
...
@@ -2,65 +2,33 @@
<div
class=
"activity-container"
>
<div
class=
"activity-container"
>
<div
class=
"choseRow"
>
<div
class=
"choseRow"
>
<div
class=
"choseRow-item"
>
<div
class=
"choseRow-item"
>
<div
class=
"choseItem"
<div
class=
"choseItem"
:class=
"
{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
:class=
"
{ active: step == index + 1 }"
v-for="(item, index) in tabList"
:key="index"
@click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
</div>
</div>
<div
@
click=
"showCase"
<div
@
click=
"showCase"
class=
"show-case-btn"
v-if=
"routerInfo.addOrEdit == 'add'"
>
历史营销方案
</div>
class=
"show-case-btn"
v-if=
"routerInfo.addOrEdit == 'add'"
>
历史营销方案
</div>
</div>
</div>
<div
class=
"acitity-content"
>
<div
class=
"acitity-content"
>
<marketing-task
v-show=
"step == 1"
></marketing-task>
<marketing-task
v-show=
"step == 1"
></marketing-task>
<marketing-gift
v-show=
"step == 2"
></marketing-gift>
<marketing-gift
v-show=
"step == 2"
></marketing-gift>
<marketing-content
v-show=
"step == 3"
></marketing-content>
<marketing-content
v-show=
"step == 3"
></marketing-content>
</div>
</div>
<GLDialog
mode=
"big"
<GLDialog
mode=
"big"
class=
"case-panel"
bigTitle=
"历史营销方案"
:hasFooter=
"false"
:before-close=
"handleCaseClose"
@
onCancel=
"handleCaseClose"
:visible
.
sync=
"caseVisible"
>
class=
"case-panel"
bigTitle=
"历史营销方案"
:hasFooter=
"false"
:before-close=
"handleCaseClose"
@
onCancel=
"handleCaseClose"
:visible
.
sync=
"caseVisible"
>
<div
class=
"case-table"
>
<div
class=
"case-table"
>
<el-tabs
class=
"case-tabs"
<el-tabs
class=
"case-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
v-model=
"activeName"
<el-tab-pane
label=
"保 险"
name=
"5"
></el-tab-pane>
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"定 保"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"保 险"
<el-tab-pane
label=
"节日关怀"
name=
"6"
></el-tab-pane>
name=
"5"
></el-tab-pane>
<el-tab-pane
label=
"售后众筹"
name=
"9"
></el-tab-pane>
<el-tab-pane
label=
"定 保"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"节日关怀"
name=
"6"
></el-tab-pane>
<el-tab-pane
label=
"售后众筹"
name=
"9"
></el-tab-pane>
</el-tabs>
</el-tabs>
<div></div>
<div></div>
</div>
</div>
<GLTable
ref=
"caseRef"
<GLTable
ref=
"caseRef"
v-loading=
"loading"
:tableData=
"caseList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
v-loading=
"loading"
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
:tableData=
"caseList"
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</GLDialog>
</GLDialog>
<el-dialog
title=
"预览"
<el-dialog
title=
"预览"
:append-to-body=
"true"
:before-close=
"handleClose"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
:append-to-body=
"true"
<phone-view
v-if=
"dialogVisible"
:activityDetail=
"activityInfo"
></phone-view>
:before-close=
"handleClose"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<phone-view
v-if=
"dialogVisible"
:activityDetail=
"activityInfo"
></phone-view>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -233,7 +201,7 @@ export default {
...
@@ -233,7 +201,7 @@ export default {
subscribe
:
this
.
activeName
,
subscribe
:
this
.
activeName
,
pageSize
:
this
.
$refs
.
caseRef
.
page
.
pageSize
pageSize
:
this
.
$refs
.
caseRef
.
page
.
pageSize
}
}
this
.
$apis
.
activity
.
activityPage
2
(
param
).
then
(
res
=>
{
this
.
$apis
.
activity
.
activityPage
(
param
).
then
(
res
=>
{
this
.
caseList
=
res
.
list
||
[]
this
.
caseList
=
res
.
list
||
[]
this
.
$refs
.
caseRef
.
tableTotal
=
res
.
total
this
.
$refs
.
caseRef
.
tableTotal
=
res
.
total
})
})
...
...
src/views/activityLink/components/MarketingContent.vue
View file @
a358f53
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-0
8-11 17:01:36
* @LastEditTime: 2023-0
9-13 16:42:14
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @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,6 +27,21 @@
...
@@ -27,6 +27,21 @@
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy/MM/dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
></el-date-picker>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy/MM/dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
></el-date-picker>
</div>
</div>
</
template
>
</
template
>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.value"
:key=
"index"
>
{{ item.label }}
</el-checkbox>
</el-checkbox-group>
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
<p
class=
"describe-delete"
>
<img
v-show=
"!(index == 0 && formDescribeList.length == 1)"
@
click=
"handleDescribeDelete(index)"
src=
"@/assets/icon-delete.png"
/>
</p>
</div>
<el-button
class=
"btn-basic"
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增表单
</el-button>
</div>
</glsx-combi-form>
</glsx-combi-form>
<div
class=
"panel-footer"
>
<div
class=
"panel-footer"
>
<el-button
type=
"primary"
@
click=
"handleSave"
size=
"medium"
>
保存营销内容
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
size=
"medium"
>
保存营销内容
</el-button>
...
@@ -57,9 +72,36 @@ export default {
...
@@ -57,9 +72,36 @@ export default {
marketingSubtitle
:
''
,
marketingSubtitle
:
''
,
activityTime
:
[],
activityTime
:
[],
backgroundImage
:
''
,
backgroundImage
:
''
,
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
],
detailImage
:
''
,
detailImage
:
''
,
merchantLogo
:
''
merchantLogo
:
''
},
},
// 表单设置
formDescribeCheckList
:
[
{
label
:
'车牌号'
,
value
:
'selectCarNumberFlag'
},
{
label
:
'品牌车型'
,
value
:
'selectVehicleTypeFlag'
},
{
label
:
'手机号'
,
value
:
'selectPhoneNumberFlag'
}
],
describeIdxToAttr
:
{
0
:
'First'
,
1
:
'Second'
// 2: 'Third'
},
describeNum
:
2
,
formDescribeList
:
[
{
value
:
''
}
],
editFormData
:
[
editFormData
:
[
{
{
label
:
'预设模板'
,
label
:
'预设模板'
,
...
@@ -187,6 +229,11 @@ export default {
...
@@ -187,6 +229,11 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
}
}
},
{
label
:
'表单设置'
,
name
:
'formDescribe'
,
addHtml
:
'formDescribe'
}
}
],
],
editRule
:
{
editRule
:
{
...
@@ -269,6 +316,7 @@ export default {
...
@@ -269,6 +316,7 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
//活动信息
getInfo
(
info
)
{
getInfo
(
info
)
{
console
.
log
(
info
,
this
.
subscribe
,
999999999
)
console
.
log
(
info
,
this
.
subscribe
,
999999999
)
if
(
Object
.
keys
(
info
||
{}).
length
==
0
)
{
if
(
Object
.
keys
(
info
||
{}).
length
==
0
)
{
...
@@ -280,7 +328,8 @@ export default {
...
@@ -280,7 +328,8 @@ export default {
detailImage
:
''
,
detailImage
:
''
,
merchantLogo
:
''
,
merchantLogo
:
''
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
]
}
}
const
subscribe
=
+
(
this
.
subscribe
||
this
.
routerInfo
.
subscribe
)
const
subscribe
=
+
(
this
.
subscribe
||
this
.
routerInfo
.
subscribe
)
if
([
2
,
5
].
includes
(
subscribe
)
&&
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
if
([
2
,
5
].
includes
(
subscribe
)
&&
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
...
@@ -299,7 +348,30 @@ export default {
...
@@ -299,7 +348,30 @@ export default {
this
.
setDetail
(
info
)
this
.
setDetail
(
info
)
return
return
}
}
console
.
log
(
888
)
// this.editForm = {
// merchantLogo: '',
// id: info.id,
// codeId: info.codeId,
// detailImage: info.detailImage,
// marketingTitle: info.activityName,
// marketingSubtitle: info.subTitle,
// backgroundImage: info.mainImage || info.activityBigImg,
// activityTime: [(info.starttime || info.startTime).replace(/-/g, '/'), (info.endtime || info.endTime).replace(/-/g, '/')],
// selectCarNumberFlag: info.selectCarNumberFlag || 1,
// selectVehicleTypeFlag: info.selectVehicleTypeFlag || 1,
// selectPhoneNumberFlag: info.selectPhoneNumberFlag || 1,
// formDescribeCheck: [],
// subTitleStyle: info.subTitleStyle,
// titleStyle: info.titleStyle,
// subscribe: info.subscribe,
// serviceHotline: info.serviceHotline,
// mainColor: info.mainColor,
// merchantAddress: info.activityAddressDetailName,
// merchantname: info.merchantName,
// formDescribeFirst: info.formDescribeFirst,
// formDescribeSecond: info.formDescribeSecond,
// ghExclusiveFlag: info.ghExclusiveFlag
// }
this
.
editForm
=
Object
.
assign
({
merchantLogo
:
''
},
info
)
this
.
editForm
=
Object
.
assign
({
merchantLogo
:
''
},
info
)
if
(
info
.
activityName
)
{
if
(
info
.
activityName
)
{
this
.
$set
(
this
.
editForm
,
'marketingTitle'
,
info
.
activityName
)
this
.
$set
(
this
.
editForm
,
'marketingTitle'
,
info
.
activityName
)
...
@@ -316,6 +388,29 @@ export default {
...
@@ -316,6 +388,29 @@ export default {
if
(
info
.
startTime
)
{
if
(
info
.
startTime
)
{
this
.
$set
(
this
.
editForm
,
'activityTime'
,
[
info
.
startTime
.
replace
(
/-/g
,
'/'
),
info
.
endTime
.
replace
(
/-/g
,
'/'
)])
this
.
$set
(
this
.
editForm
,
'activityTime'
,
[
info
.
startTime
.
replace
(
/-/g
,
'/'
),
info
.
endTime
.
replace
(
/-/g
,
'/'
)])
}
}
// 表单设置
this
.
$set
(
this
.
editForm
,
'formDescribeCheck'
,
[])
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
this
.
editForm
.
selectPhoneNumberFlag
=
this
.
editForm
.
selectPhoneNumberFlag
||
1
var
checkList
=
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
]
checkList
.
forEach
(
item
=>
{
if
(
this
.
editForm
[
item
]
==
2
)
{
this
.
editForm
.
formDescribeCheck
.
push
(
item
)
}
})
this
.
formDescribeList
=
[]
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
index
)
=>
{
if
(
this
.
editForm
[
'formDescribe'
+
item
])
{
this
.
formDescribeList
.
push
({
value
:
this
.
editForm
[
'formDescribe'
+
this
.
describeIdxToAttr
[
index
]]
})
}
})
if
(
this
.
formDescribeList
.
length
==
3
)
{
this
.
formDescribeList
.
pop
()
}
if
(
!
this
.
formDescribeList
.
length
)
{
this
.
formDescribeList
=
[{
value
:
''
}]
}
this
.
$set
(
this
.
editForm
,
'merchantAddress'
,
info
.
activityAddressDetailName
||
''
)
this
.
$set
(
this
.
editForm
,
'merchantAddress'
,
info
.
activityAddressDetailName
||
''
)
this
.
$set
(
this
.
editForm
,
'merchantname'
,
info
.
merchantName
||
''
)
this
.
$set
(
this
.
editForm
,
'merchantname'
,
info
.
merchantName
||
''
)
// 地图
// 地图
...
@@ -329,22 +424,49 @@ export default {
...
@@ -329,22 +424,49 @@ export default {
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
merchantLogo
:
''
,
merchantLogo
:
''
,
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
],
mainColor
:
''
mainColor
:
''
}
}
console
.
log
(
this
.
editForm
,
9
)
console
.
log
(
this
.
editForm
,
9
)
},
},
// 表单设置
handleDescribeAdd
()
{
this
.
formDescribeList
.
push
({
value
:
''
})
},
handleDescribeDelete
(
idx
)
{
this
.
$messageBox
.
confirm
(
'是否删除该表单设置?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
formDescribeList
.
splice
(
idx
,
1
)
}
}
})
},
handleSure
(
val
)
{
handleSure
(
val
)
{
this
.
modelVisible
=
false
this
.
modelVisible
=
false
this
.
getTemplateInfo
(
val
.
id
)
this
.
getTemplateInfo
(
val
.
id
)
},
},
getCouponInfoParams
()
{
getCouponInfoParams
()
{
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
console
.
log
(
param
)
const
d
=
param
.
activityTime
const
d
=
param
.
activityTime
if
(
d
&&
d
.
length
>
0
)
{
if
(
d
&&
d
.
length
>
0
)
{
param
.
starttime
=
d
[
0
]
param
.
starttime
=
d
[
0
]
param
.
endtime
=
d
[
1
]
param
.
endtime
=
d
[
1
]
}
}
// 表单设置
// 1-否,2-是
param
.
selectCarNumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectCarNumberFlag'
)
!=
-
1
?
2
:
1
param
.
selectVehicleTypeFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectVehicleTypeFlag'
)
!=
-
1
?
2
:
1
param
.
selectPhoneNumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectPhoneNumberFlag'
)
!=
-
1
?
2
:
1
delete
param
.
formDescribeCheck
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
idx
)
=>
{
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
})
param
.
mainImage
=
param
.
backgroundImage
param
.
mainImage
=
param
.
backgroundImage
delete
param
.
createdTime
delete
param
.
createdTime
delete
param
.
activityPrice
delete
param
.
activityPrice
...
@@ -394,6 +516,29 @@ export default {
...
@@ -394,6 +516,29 @@ export default {
}
}
}
}
}
}
.form-describe-box
{
width
:
597px
;
background
:
#f9f9f9
;
padding
:
20px
;
.form-describe
{
padding
:
0
20px
10px
0
;
}
&
:first-child
{
padding
:
20px
20px
10px
;
}
.describe-delete
{
img
{
vertical-align
:
middle
;
margin-left
:
10px
;
cursor
:
pointer
;
}
}
.btn-basic
{
img
{
vertical-align
:
middle
;
}
}
}
.panel-footer
{
.panel-footer
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
30px
;
margin-top
:
30px
;
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
a358f53
<
template
>
<
template
>
<div
class=
"task-view"
>
<div
class=
"task-view"
>
<div
class=
"task-container"
>
<div
class=
"task-container"
>
<template
v-if=
"taskListFinish.length"
>
<div
class=
"task-item"
v-for=
"item in taskListFinish"
:key=
"item.batchNo"
>
<div
class=
"task-title"
>
<label>
营销任务1
</label>
<template
v-if=
"item.excelUrl"
>
<div
class=
"task-operate"
v-show=
"item.expand"
@
click=
"handleExpand(item)"
>
收起
<i
class=
"el-icon-arrow-up"
></i>
</div>
<div
class=
"task-operate"
v-show=
"!item.expand"
@
click=
"handleExpand(item)"
>
展开
<i
class=
"el-icon-arrow-down"
></i>
</div>
</
template
>
</div>
<div
class=
"task-box"
>
<
template
v-if=
"item.isFinish"
>
<div
class=
"task-box-form"
>
<label>
导入文档:
</label>
<span>
<i
class=
"el-icon-folder-delete"
></i>
成功导入客户数
</span>
</div>
<div
class=
"task-box-desc"
v-if=
"item.customerNumTotal"
>
<div
class=
"task-box-num"
>
成功导入客户数
{{
item
.
customerNumTotal
}}
</div>
<div
class=
"task-num-item flex-column-center"
>
<label>
分配方式:
</label>
{{
item
.
assignType
==
0
?
'平均分配'
:
'上次跟进人'
}}
</div>
<div
class=
"task-num-item flex"
>
<label>
选择跟进人:
</label>
<div
class=
"task-border"
>
<div
class=
"flow-emp"
v-for=
"(v, k) in item.staffList"
:key=
"k"
>
{{
v
.
staffName
||
v
.
staffPhone
}}
(
{{
v
.
customerNum
}}
人)
</div>
</div>
</div>
</div>
</
template
>
<
template
v-else
>
<div
class=
"task-box-form"
v-if=
"!item.excelUrl"
>
<label>
导入文档:
</label>
<div
class=
"upload-btn"
>
<el-button
size=
"small"
>
<i
class=
"el-icon-plus"
></i>
选择文档
</el-button>
<input
type=
"file"
style=
"opacity: 0"
:ref=
"'file' + item.batchNo"
accept=
"*"
@
change=
"uploadFile($event, item)"
/>
</div>
<a
:href=
"importUrl"
>
下载数据模板
</a>
</div>
<div
class=
"task-box-form"
v-else
>
<label>
导入文档:
</label>
<span>
成功导入客户数
</span>
</div>
<div
class=
"task-box-desc"
:style=
"
{ height: item.expand ? 'auto' : '0px' }" v-show="item.excelUrl">
<div
class=
"task-box-num"
>
成功导入客户数
</div>
<div
class=
"task-num-item flex-column-center"
>
<label>
分配方式:
</label>
<el-radio-group
v-model=
"item.assignType"
@
change=
"handleChange(item)"
>
<el-radio
:label=
"0"
>
平均分配
</el-radio>
<el-radio
:label=
"1"
>
上次跟进人
</el-radio>
</el-radio-group>
</div>
<div
class=
"task-num-item flex"
>
<label>
选择跟进人:
</label>
<el-table
class=
"task-tabel"
:ref=
"'form' + item.batchNo"
:data=
"item.tableData"
tooltip-effect=
"dark"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange($event, item)"
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
label=
"跟进人"
width=
"220"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
?.
staffName
}}
{{
scope
.
row
?.
staffPhone
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"260"
>
<div
class=
"config-panel flex"
slot-scope=
"scope"
>
<div
class=
"config-msg"
v-if=
"scope.row.registerStatus === 0"
@
click=
"showRegister"
>
邀请人员注册
</div>
<div
class=
"config-msg"
@
click=
"handleConfig(item.batchNo, scope)"
>
{{ (scope.row.talkId ? '已' : '') + '配置话术 / 短信' }}
</div>
</div>
</el-table-column>
</el-table>
</div>
<div
class=
"footer-box"
>
<el-button
@
click=
"handleCancelTask(item)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirmTask()"
>
确定
</el-button>
</div>
</div>
</template>
</div>
</div>
</template>
<div
class=
"task-item"
v-for=
"item in taskList"
:key=
"item.batchNo"
>
<div
class=
"task-item"
v-for=
"item in taskList"
:key=
"item.batchNo"
>
<div
class=
"task-title"
>
<div
class=
"task-title"
>
<label>
营销任务
{{
taskList
.
length
==
1
?
''
:
item
.
batchNo
}}
</label>
<label>
营销任务{{ taskList
Finish.length == 0
&&
taskList.length == 1 ? '' : item.batchNo + taskListFinish.length
}}
</label>
<
template
v-if=
"item.excelUrl"
>
<
template
v-if=
"item.excelUrl"
>
<div
class=
"task-operate"
v-show=
"item.expand"
@
click=
"handleExpand(item)"
>
<div
class=
"task-operate"
v-show=
"item.expand"
@
click=
"handleExpand(item)"
>
...
@@ -88,7 +176,7 @@
...
@@ -88,7 +176,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<
template
v-if=
"routerInfo.addOrEdit != 'edit'"
>
<
template
>
<div
class=
"task-add"
@
click=
"addTask"
>
<div
class=
"task-add"
@
click=
"addTask"
>
<i
class=
"el-icon-circle-plus-outline"
></i>
<i
class=
"el-icon-circle-plus-outline"
></i>
新建营销任务
新建营销任务
...
@@ -135,6 +223,7 @@ export default {
...
@@ -135,6 +223,7 @@ export default {
mixins
:
[
marketing
],
mixins
:
[
marketing
],
data
()
{
data
()
{
return
{
return
{
taskListFinish
:
[],
taskList
:
[{
batchNo
:
1
,
...
taskData
}],
taskList
:
[{
batchNo
:
1
,
...
taskData
}],
batchNo
:
0
,
batchNo
:
0
,
customerKey
:
[],
customerKey
:
[],
...
@@ -212,8 +301,8 @@ export default {
...
@@ -212,8 +301,8 @@ export default {
findMarketingTask
(
activityId
)
{
findMarketingTask
(
activityId
)
{
this
.
$apis
.
marketing
.
findMarketingTask
({
activityId
}).
then
(
res
=>
{
this
.
$apis
.
marketing
.
findMarketingTask
({
activityId
}).
then
(
res
=>
{
const
{
staffList
=
[],
customerNum
=
0
,
assignType
=
1
}
=
res
||
{}
const
{
staffList
=
[],
customerNum
=
0
,
assignType
=
1
}
=
res
||
{}
this
.
taskList
=
[{
...
taskData
,
isFinish
:
true
,
staffList
,
customerNumTotal
:
customerNum
,
assignType
}
]
this
.
taskList
Finish
=
customerNum
?
[{
...
taskData
,
isFinish
:
true
,
staffList
,
customerNumTotal
:
customerNum
,
assignType
}]
:
[
]
console
.
log
(
this
.
taskList
,
'taskList
'
)
console
.
log
(
this
.
taskList
Finish
,
'this.taskListFinish
'
)
})
})
},
},
//获取客户导入模板
//获取客户导入模板
...
@@ -336,6 +425,7 @@ export default {
...
@@ -336,6 +425,7 @@ export default {
this
.
roobList
=
res
.
list
||
[]
this
.
roobList
=
res
.
list
||
[]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
configForm
=
{
this
.
configForm
=
{
talkName
:
row
.
row
.
talkName
?
row
.
row
.
talkName
:
this
.
config
.
talkName
,
talkId
:
row
.
row
.
talkId
?
row
.
row
.
talkId
:
this
.
config
.
talkId
,
talkId
:
row
.
row
.
talkId
?
row
.
row
.
talkId
:
this
.
config
.
talkId
,
messageContent
:
row
.
row
.
messageContent
?
row
.
row
.
messageContent
:
this
.
config
.
messageContent
messageContent
:
row
.
row
.
messageContent
?
row
.
row
.
messageContent
:
this
.
config
.
messageContent
}
}
...
@@ -359,9 +449,9 @@ export default {
...
@@ -359,9 +449,9 @@ export default {
this
.
vaildTask
()
this
.
vaildTask
()
},
},
handleCancelConfirm
()
{
handleCancelConfirm
()
{
this
.
configVisible
=
false
const
talk
=
this
.
roobList
.
find
(
i
=>
i
.
robotDefId
==
this
.
configForm
.
talkId
)
console
.
log
(
this
.
taskList
[
this
.
batchNo
].
tableData
)
this
.
$set
(
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
],
'talkId'
,
this
.
configForm
.
talkId
)
this
.
$set
(
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
],
'talkId'
,
this
.
configForm
.
talkId
)
this
.
$set
(
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
],
'talkName'
,
talk
.
robotName
)
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
messageContent
=
this
.
configForm
.
messageContent
this
.
taskList
[
this
.
batchNo
].
tableData
[
this
.
selectIndex
].
messageContent
=
this
.
configForm
.
messageContent
console
.
log
(
this
.
taskList
)
console
.
log
(
this
.
taskList
)
},
},
...
@@ -392,6 +482,7 @@ export default {
...
@@ -392,6 +482,7 @@ export default {
item
.
staffList
=
item
.
staffList
.
reduce
((
result
,
i
)
=>
{
item
.
staffList
=
item
.
staffList
.
reduce
((
result
,
i
)
=>
{
if
(
i
.
customerNum
)
{
if
(
i
.
customerNum
)
{
result
.
push
({
result
.
push
({
talkName
:
i
.
talkName
,
lastStaffFlag
:
i
.
lastCustomerNum
?
1
:
0
,
lastStaffFlag
:
i
.
lastCustomerNum
?
1
:
0
,
lastCustomerNum
:
i
.
lastCustomerNum
,
lastCustomerNum
:
i
.
lastCustomerNum
,
merchantId
:
i
.
merchantNo
,
merchantId
:
i
.
merchantNo
,
...
...
src/views/activityLink/components/Process.vue
View file @
a358f53
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
}
}
let
origin
=
'createSuperMarketing'
let
origin
=
'createSuperMarketing'
if
(
params
.
id
&&
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
if
(
params
.
id
&&
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
origin
=
'updateApi'
//
origin = 'updateApi'
params
.
activityName
=
params
.
marketingTitle
params
.
activityName
=
params
.
marketingTitle
params
.
activityAddressDetailName
=
params
.
merchantAddress
params
.
activityAddressDetailName
=
params
.
merchantAddress
params
=
{
...
params
,
...
this
.
addProperties
(
params
)
}
params
=
{
...
params
,
...
this
.
addProperties
(
params
)
}
...
...
src/views/activityLink/dataBoard.vue
View file @
a358f53
...
@@ -212,8 +212,8 @@ export default {
...
@@ -212,8 +212,8 @@ export default {
createdEndDateStr
:
this
.
searchForm
.
statDate
createdEndDateStr
:
this
.
searchForm
.
statDate
}
}
:
{}
:
{}
this
.
$
router
.
push
({
this
.
$
history
.
push
({
path
:
'/activityOrder/index'
,
path
:
'/
store/
activityOrder/index'
,
query
:
{
query
:
{
activityId
:
this
.
activityId
,
activityId
:
this
.
activityId
,
...
timeParams
...
timeParams
...
...
src/views/activityLink/index.vue
View file @
a358f53
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<h2>
活动列表
</h2>
<h2>
活动列表
</h2>
<div>
<div>
<el-button
:size=
"size"
type=
"primary"
@
click=
"activityExport"
v-if=
"loginpath"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"activityExport"
v-if=
"loginpath"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
v-if=
"loginpath"
>
创建活动链接
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
>
创建活动链接
</el-button>
</div>
</div>
</div>
</div>
<GLTable
ref=
"classifyRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"classifyRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
...
@@ -428,6 +428,8 @@ export default {
...
@@ -428,6 +428,8 @@ export default {
if
(
addOrEdit
!=
'add'
)
{
if
(
addOrEdit
!=
'add'
)
{
params
.
id
=
row
.
id
params
.
id
=
row
.
id
params
.
activityStatus
=
row
.
activityStatus
params
.
activityStatus
=
row
.
activityStatus
}
else
{
params
.
subscribe
=
5
}
}
let
path
=
this
.
loginpath
?
'/activityLink/editActivity'
:
'/activityLink/marketingActivity'
let
path
=
this
.
loginpath
?
'/activityLink/editActivity'
:
'/activityLink/marketingActivity'
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
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