promotion:优化优惠劵的界面

This commit is contained in:
YunaiV
2023-10-03 13:01:31 +08:00
parent 59ab6218ca
commit 40f44fc78e
3 changed files with 30 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ export const discountFormat = (row: CouponTemplateVO) => {
return `${floatToFixed2(row.discountPrice)}`
}
if (row.discountType === PromotionDiscountTypeEnum.PERCENT.type) {
return `${row.discountPrice}%`
return `${row.discountPercent}%`
}
return '未知【' + row.discountType + '】'
}