Commit be15fcfd by chenwq

优惠券bug修复

1 parent a3b2702e
...@@ -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),
......
...@@ -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) {
......
...@@ -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) {
......
...@@ -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) {
......
...@@ -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/'
......
...@@ -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: [
......
...@@ -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
} }
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!