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 be15fcfd
authored
May 24, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券bug修复
1 parent
a3b2702e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
8 deletions
src/router/routes.js
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/couponManage/recordList.vue
src/router/routes.js
View file @
be15fcf
...
@@ -89,6 +89,12 @@ const staticRoutes = Object.freeze([
...
@@ -89,6 +89,12 @@ const staticRoutes = Object.freeze([
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'editMemberService'
,
path
:
'/couponManage/editMemberService'
,
component
:
resolve
=>
require
([
`@/views/couponManage/editMemberService.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'editCashCoupon'
,
name
:
'editCashCoupon'
,
path
:
'/couponManage/editCashCoupon/:addOrEdit'
,
path
:
'/couponManage/editCashCoupon/:addOrEdit'
,
component
:
resolve
=>
require
([
`@/views/couponManage/editCashCoupon.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/couponManage/editCashCoupon.vue`
],
resolve
),
...
...
src/views/couponManage/editCashCoupon.vue
View file @
be15fcf
...
@@ -751,7 +751,7 @@ export default {
...
@@ -751,7 +751,7 @@ export default {
var
merchantval
=
true
var
merchantval
=
true
if
(
this
.
$isGroupUp
)
{
if
(
this
.
$isGroupUp
)
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
merchantval
=
merchantVaild
merchantval
=
merchantVaild
})
})
}
}
if
(
valid
&&
merchantval
)
{
if
(
valid
&&
merchantval
)
{
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
be15fcf
...
@@ -534,7 +534,7 @@ export default {
...
@@ -534,7 +534,7 @@ export default {
var
merchantval
=
true
var
merchantval
=
true
if
(
this
.
$isGroupUp
)
{
if
(
this
.
$isGroupUp
)
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
merchantval
=
merchantVaild
merchantval
=
merchantVaild
})
})
}
}
if
(
valid
&&
merchantval
)
{
if
(
valid
&&
merchantval
)
{
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
be15fcf
...
@@ -437,7 +437,7 @@ export default {
...
@@ -437,7 +437,7 @@ export default {
var
merchantval
=
true
var
merchantval
=
true
if
(
this
.
$isGroupUp
)
{
if
(
this
.
$isGroupUp
)
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
$refs
.
merchantRef
.
$refs
[
this
.
editChildRef
].
validate
(
merchantVaild
=>
{
this
.
merchantval
=
merchantVaild
merchantval
=
merchantVaild
})
})
}
}
if
(
valid
&&
merchantval
)
{
if
(
valid
&&
merchantval
)
{
...
...
src/views/couponManage/editMemberService.vue
View file @
be15fcf
This diff is collapsed.
Click to expand it.
src/views/couponManage/index.vue
View file @
be15fcf
...
@@ -349,7 +349,13 @@ export default {
...
@@ -349,7 +349,13 @@ export default {
//新增服务券
//新增服务券
addService
()
{
addService
()
{
this
.
$router
.
push
(
'/couponManage/editMemberService/1'
)
// this.$router.push('/couponManage/editMemberService/1')
this
.
$router
.
push
({
path
:
'/couponManage/editMemberService'
,
query
:
{
$title
:
encodeURI
(
'创建服务'
)
}
})
},
},
//新增折扣劵
//新增折扣劵
...
@@ -371,7 +377,15 @@ export default {
...
@@ -371,7 +377,15 @@ export default {
goto
=
'/couponManage/editCashCoupon/'
goto
=
'/couponManage/editCashCoupon/'
}
else
if
(
row
.
discountType
==
'7'
)
{
}
else
if
(
row
.
discountType
==
'7'
)
{
//服务券
//服务券
goto
=
'/couponManage/editMemberService/'
this
.
$router
.
push
({
path
:
'/couponManage/editMemberService'
,
query
:
{
couponId
:
row
.
id
,
title
:
addOrEdit
==
2
?
'编辑'
:
'查看'
,
$title
:
encodeURI
(
'编辑服务'
)
}
})
return
true
}
else
if
(
row
.
discountType
==
'2'
)
{
}
else
if
(
row
.
discountType
==
'2'
)
{
//折扣劵
//折扣劵
goto
=
'/couponManage/editDiscountCoupon/'
goto
=
'/couponManage/editDiscountCoupon/'
...
...
src/views/couponManage/receiveDetail.vue
View file @
be15fcf
...
@@ -203,7 +203,7 @@ export default {
...
@@ -203,7 +203,7 @@ export default {
// },
// },
{
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'
已领取
'
confName
:
'
未使用
'
},
},
{
{
confId
:
'2'
,
confId
:
'2'
,
...
@@ -211,7 +211,7 @@ export default {
...
@@ -211,7 +211,7 @@ export default {
},
},
{
{
confId
:
'3'
,
confId
:
'3'
,
confName
:
'已
过期
'
confName
:
'已
失效
'
}
}
],
],
wechatUserFlagList
:
[
wechatUserFlagList
:
[
...
...
src/views/couponManage/recordList.vue
View file @
be15fcf
...
@@ -202,7 +202,22 @@ export default {
...
@@ -202,7 +202,22 @@ export default {
label
:
'券来源'
,
label
:
'券来源'
,
prop
:
'packageName'
,
prop
:
'packageName'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
packageId
?
cellValue
.
packageName
:
cellValue
.
directionalGiftId
?
cellValue
.
directionalGiftName
:
'-'
let
txt
=
''
if
(
this
.
$isGroupUp
)
{
txt
=
cellValue
.
packageId
?
cellValue
.
packageName
:
cellValue
.
directionalGiftId
?
cellValue
.
directionalGiftName
:
'-'
}
else
{
txt
=
{
''
:
'-'
,
1
:
'营销活动'
,
2
:
'营销活动'
,
3
:
'会员服务套餐'
,
4
:
'营销活动'
,
5
:
'关联商品购买'
,
6
:
'通过集团套餐赠送'
,
7
:
'通过定向礼包赠送'
}[
cellValue
.
receiveWay
]
}
return
txt
}
}
},
},
{
{
...
...
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