Commit fbed2910 by 痴货

【BUG】满减满足多少元需要元转分

parent 870a1c44
......@@ -118,6 +118,7 @@ const open = async (type: string, id?: number) => {
data.startAndEndTime = [data.startTime, data.endTime]
// 规则分转元
data.rules?.forEach((item: any) => {
item.limit = fenToYuan(item.limit || 0)
item.discountPrice = fenToYuan(item.discountPrice || 0)
})
formData.value = data
......@@ -150,6 +151,7 @@ const submitForm = async () => {
delete data.startAndEndTime
// 规则元转分
data.rules.forEach((item) => {
item.limit = yuanToFen(item.limit || 0)
item.discountPrice = yuanToFen(item.discountPrice || 0)
})
// 设置商品范围
......
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