mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-18 12:01:53 +08:00
【功能修复】商城:指定发卷、新人卷,支持无限发放的兜底
This commit is contained in:
@@ -33,8 +33,19 @@ export const validityTypeFormat = (row: CouponTemplateVO) => {
|
||||
return '未知【' + row.validityType + '】'
|
||||
}
|
||||
|
||||
// 格式化【totalCount】
|
||||
export const totalCountFormat = (row: CouponTemplateVO) => {
|
||||
if (row.totalCount === -1) {
|
||||
return '不限制'
|
||||
}
|
||||
return row.totalCount
|
||||
}
|
||||
|
||||
// 格式化【剩余数量】
|
||||
export const remainedCountFormat = (row: CouponTemplateVO) => {
|
||||
if (row.totalCount === -1) {
|
||||
return '不限制'
|
||||
}
|
||||
return row.totalCount - row.takeCount
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user