mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-24 07:45:07 +08:00
【功能修复】商城:满减送的条件类型的满足价格不对的问题
This commit is contained in:
@ -119,6 +119,9 @@ const open = async (type: string, id?: number) => {
|
||||
// 规则分转元
|
||||
data.rules?.forEach((item: any) => {
|
||||
item.discountPrice = fenToYuan(item.discountPrice || 0)
|
||||
if (data.conditionType === PromotionConditionTypeEnum.PRICE.type) {
|
||||
item.limit = fenToYuan(item.limit || 0)
|
||||
}
|
||||
})
|
||||
formData.value = data
|
||||
// 获得商品范围
|
||||
@ -151,6 +154,9 @@ const submitForm = async () => {
|
||||
// 规则元转分
|
||||
data.rules.forEach((item) => {
|
||||
item.discountPrice = yuanToFen(item.discountPrice || 0)
|
||||
if (data.conditionType === PromotionConditionTypeEnum.PRICE.type) {
|
||||
item.limit = yuanToFen(item.limit || 0)
|
||||
}
|
||||
})
|
||||
// 设置商品范围
|
||||
setProductScopeValues(data)
|
||||
|
Reference in New Issue
Block a user