Commit f086b9c3 by 痴货

修复指定发放优惠券显示

parent fc0de84d
...@@ -16,10 +16,15 @@ export const discountFormat = (row: CouponTemplateVO) => { ...@@ -16,10 +16,15 @@ export const discountFormat = (row: CouponTemplateVO) => {
// 格式化【领取上限】 // 格式化【领取上限】
export const takeLimitCountFormat = (row: CouponTemplateVO) => { export const takeLimitCountFormat = (row: CouponTemplateVO) => {
if(row.takeLimitCount){
if (row.takeLimitCount === -1) { if (row.takeLimitCount === -1) {
return '无领取限制' return '无领取限制'
} }
return `${row.takeLimitCount} 张/人` return `${row.takeLimitCount} 张/人`
}else{
return ' '
}
} }
// 格式化【有效期限】 // 格式化【有效期限】
......
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 sign in to comment