Commit 92949282 authored by Xuguangxing's avatar Xuguangxing

feat: 过滤优惠券类型,券码不展示

parent 84cfe912
...@@ -27,7 +27,7 @@ export default class CouponTableModal extends Vue { ...@@ -27,7 +27,7 @@ export default class CouponTableModal extends Vue {
} }
async query(data) { async query(data) {
// receiverType 领取方式 1:主动领取 2:自动发放 3:不限 // receiverType 领取方式 1:主动领取 2:自动发放 3:不限, 4:券码
const res = await operationApi.couponList({ ...data }); const res = await operationApi.couponList({ ...data });
const couponInfoList = res?.couponInfoList?.map(item => { const couponInfoList = res?.couponInfoList?.map(item => {
if (item.receiverStartTime && item.receiverEndTime) { if (item.receiverStartTime && item.receiverEndTime) {
...@@ -49,6 +49,6 @@ export default class CouponTableModal extends Vue { ...@@ -49,6 +49,6 @@ export default class CouponTableModal extends Vue {
return item; return item;
}); });
return { data: couponInfoList || [], total: res?.pageInfo?.totalCount }; return { data: couponInfoList.filter(v => v.receiverType != 4) || [], total: res?.pageInfo?.totalCount };
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment