修复指定发放优惠券显示

pull/553/head
痴货 2024-09-15 16:37:35 +08:00
parent fc0de84d78
commit f086b9c32b
1 changed files with 8 additions and 3 deletions

View File

@ -16,10 +16,15 @@ export const discountFormat = (row: CouponTemplateVO) => {
// 格式化【领取上限】
export const takeLimitCountFormat = (row: CouponTemplateVO) => {
if (row.takeLimitCount === -1) {
return '无领取限制'
if(row.takeLimitCount){
if (row.takeLimitCount === -1) {
return '无领取限制'
}
return `${row.takeLimitCount} 张/人`
}else{
return ' '
}
return `${row.takeLimitCount} 张/人`
}
// 格式化【有效期限】