Skip to content

Commit f84c10c

Browse files
committed
【功能修改】商城:限时折扣,多乘以了 100 优惠金额
1 parent 79c3ba0 commit f84c10c

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/views/mall/promotion/discountActivity/DiscountActivityForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const submitForm = async () => {
190190
const products = cloneDeep(spuAndSkuListRef.value.getSkuConfigs('productConfig'))
191191
products.forEach((item: DiscountActivityApi.DiscountProductVO) => {
192192
item.discountPercent = convertToInteger(item.discountPercent)
193-
item.discountPrice = convertToInteger(yuanToFen(item.discountPrice))
193+
item.discountPrice = convertToInteger(item.discountPrice)
194194
})
195195
const data = cloneDeep(formRef.value.formModel) as DiscountActivityApi.DiscountActivityVO
196196
data.products = products

src/views/mall/promotion/discountActivity/discountActivity.data.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ const crudSchemas = reactive<CrudSchema[]>([
7070
width: 120
7171
}
7272
},
73-
{
74-
label: '优惠类型',
75-
field: 'discountType',
76-
dictType: DICT_TYPE.PROMOTION_DISCOUNT_TYPE,
77-
dictClass: 'number',
78-
isSearch: true,
79-
form: {
80-
component: 'Radio',
81-
value: 1
82-
}
83-
},
8473
{
8574
label: '活动商品',
8675
field: 'spuId',

0 commit comments

Comments
 (0)