Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 d5b986c5
authored
May 22, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f177f087
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
29 deletions
src/common/constant.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/activityLink/components/selectEquityDialog.vue
src/views/activityLink/editActivity.vue
src/common/constant.js
View file @
d5b986c
...
...
@@ -266,12 +266,8 @@ const subscribe = [
optionLabel
:
'次新车转化'
},
{
optionId
:
7
,
optionId
:
8
,
optionLabel
:
'超级营销'
},
{
optionId
:
3
,
optionLabel
:
'其他'
}
]
const
giftPackage
=
[
...
...
src/config/index.js
View file @
d5b986c
...
...
@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2023-0
4-21 14:24:35
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
5-22 13:51:04
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
src/main.js
View file @
d5b986c
...
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2023-0
4-21 14:25:28
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
5-22 13:50:51
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import
Vue
from
'vue'
...
...
src/setup/qiankun.js
View file @
d5b986c
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2023-0
4-14 10:46:24
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
5-22 13:45:51
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
src/views/activityLink/components/selectEquityDialog.vue
View file @
d5b986c
This diff is collapsed.
Click to expand it.
src/views/activityLink/editActivity.vue
View file @
d5b986c
...
...
@@ -111,23 +111,20 @@
<div
slot=
"selectEquityBtn"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleEquityAdd"
>
选择服务
</el-button>
</div>
<div
class=
"gift-panel"
slot=
"equityListBlock"
style=
"width: 700px"
:style=
"{ 'margin-left': defaultLabelWidth }"
v-show=
"
editForm.couponList && editForm.couponList.length != 0
"
>
<div
class=
"gift-panel"
slot=
"equityListBlock"
style=
"width: 700px"
:style=
"{ 'margin-left': defaultLabelWidth }"
v-show=
"
selectedEquityList.length
"
>
<div
class=
"gift-block"
>
<div
class=
"gift-title"
>
本次权益服务选择共
<span
class=
"price"
>
{{
totalEstimatedCost
}}
</span>
<span
class=
"price"
>
{{
selectedEquityList.length
}}
</span>
项
</div>
<div
v-for=
"(item, index) in orderShow"
:key=
"index"
>
<div
class=
"gift-box"
v-show=
"couponObj[item].list.length"
>
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in couponObj[item].list"
:key=
"subIndex"
>
<span
:class=
"['circle', subItem.status == '3' ? ' grey' : '']"
></span>
<p
:class=
"['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']"
>
{{ subItem.couponName }}
</p>
<i
class=
"el-icon-delete"
style=
"color: #c6c6c6"
@
click=
"handleGiftDelete(item, subIndex)"
></i>
</div>
<div
class=
"gift-box"
v-show=
"selectedEquityList.length"
>
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in selectedEquityList"
:key=
"subIndex"
>
<p
:class=
"['gift-coupon-name']"
>
{{ subItem.packageName }}
</p>
<i
class=
"el-icon-delete"
style=
"color: #c6c6c6"
@
click=
"handleEquityDelete(subIndex)"
></i>
</div>
</div>
</div>
...
...
@@ -386,7 +383,7 @@
</GLDialog> -->
<select-gift-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-goods-dialog
v-if=
"isSelectGoodsVisible"
:isSelectGoodsVisible=
"isSelectGoodsVisible"
:selectedGoodsLists=
"selectedGoodsList"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></select-goods-dialog>
<select-equity-dialog
v-if=
"isSelectEquityVisible"
:isSelectEquityVisible=
"isSelectEquityVisible"
:selectedEquityLists=
"selectedEquityList"
@
handleEquityConfirm=
"handleEquityConfirm"
@
handleEquityClose=
"handleEquityClose"
></select-equity-dialog>
<select-equity-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectEquityVisible"
:isSelectEquityVisible=
"isSelectEquityVisible"
:selectedEquityLists=
"selectedEquityList"
@
handleEquityConfirm=
"handleEquityConfirm"
@
handleEquityClose=
"handleEquityClose"
></select-equity-dialog>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
<select-model
v-if=
"relateModelVisible"
:dialogVisible=
"relateModelVisible"
:modelValue=
"editForm.pageStyle"
@
handleRelateModelConfirm=
"handleRelateModelConfirm"
@
handleRelateModelClose=
"handleRelateModelClose"
></select-model>
</div>
...
...
@@ -501,6 +498,7 @@ export default {
choseItemList
:
[],
selectedMealList
:
[],
selectedGoodsList
:
[],
selectedEquityList
:
[],
goodsLoading
:
false
,
couponObj
:
JSON
.
parse
(
JSON
.
stringify
(
couponObj
)),
goodsObj
:
JSON
.
parse
(
JSON
.
stringify
(
goodsObj
)),
...
...
@@ -747,10 +745,6 @@ export default {
{
optionId
:
7
,
optionLabel
:
'次新车转化'
},
{
optionId
:
3
,
optionLabel
:
'其他'
}
],
optionId
:
'optionId'
,
...
...
@@ -1483,6 +1477,11 @@ export default {
this
.
recoveryTotalPrice
()
this
.
recoveryGiftList
()
},
handleEquityConfirm
(
selectedData
)
{
this
.
selectedEquityList
=
selectedData
console
.
log
(
this
.
selectedEquityList
)
this
.
handleEquityClose
()
},
setNameHide
(
formName
,
name
,
status
)
{
name
.
forEach
(
i
=>
{
var
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
name
==
i
)
...
...
@@ -1519,6 +1518,9 @@ export default {
this
.
recoveryTotalPrice
()
this
.
recoveryGiftList
()
},
handleEquityDelete
(
idx
)
{
this
.
selectedEquityList
.
splice
(
idx
,
1
)
},
recoveryCoupon
()
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
couponObj
[
item
].
list
=
[]
...
...
@@ -1914,6 +1916,14 @@ export default {
if
(
info
.
activityPrice
)
{
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
}
if
(
info
.
serviceMerchantPackageConfigDTOS
&&
info
.
serviceMerchantPackageConfigDTOS
.
length
)
{
this
.
selectedEquityList
=
info
.
serviceMerchantPackageConfigDTOS
.
map
(
item
=>
{
return
{
packageCode
:
item
.
packageCode
,
packageName
:
item
.
packageName
}
})
}
// 活动音乐
if
(
info
.
activityMusic
)
{
var
checkIdx
=
this
.
musicList
.
map
(
item
=>
item
.
addr
).
findIndex
(
k
=>
k
==
info
.
activityMusic
)
...
...
@@ -1966,6 +1976,7 @@ export default {
if
(
!
this
.
formDescribeList
.
length
)
{
this
.
formDescribeList
=
[{
value
:
''
}]
}
if
(
!
this
.
editForm
.
playingType
)
this
.
editForm
.
playingType
=
3
// 服务评价
if
(
this
.
editForm
.
activityExperienceDTOs
.
length
)
{
this
.
editForm
.
activityExperienceDTOs
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -2105,7 +2116,8 @@ export default {
}
})
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
||
[]
console
.
log
(
param
.
couponCreateRequests
)
const
equityServices
=
this
.
selectedEquityList
.
map
(
i
=>
i
.
packageCode
)
param
.
equityServices
=
equityServices
.
join
(
','
)
delete
param
.
couponList
// 标杆门店总产值/元(已结束战报)
if
(
param
.
activityActionReport
.
signMerchantProduceCount
)
{
...
...
@@ -2823,6 +2835,10 @@ export default {
.gift-box
{
display
:
flex
;
padding
:
10px
0
10px
10px
;
img
{
width
:
58px
;
height
:
22px
;
}
.gift-logo
{
width
:
58px
;
height
:
22px
;
...
...
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