!553 批量优化或修改BUG

Merge pull request !553 from 痴货/develop-mall
This commit is contained in:
芋道源码
2024-09-15 12:58:14 +00:00
committed by Gitee
9 changed files with 37 additions and 14 deletions

View File

@@ -190,7 +190,7 @@ const submitForm = async () => {
const products = cloneDeep(spuAndSkuListRef.value.getSkuConfigs('productConfig'))
products.forEach((item: DiscountActivityApi.DiscountProductVO) => {
item.discountPercent = convertToInteger(item.discountPercent)
item.discountPrice = convertToInteger(item.discountPrice)
item.discountPrice = convertToInteger(yuanToFen(item.discountPrice))
})
const data = cloneDeep(formRef.value.formModel) as DiscountActivityApi.DiscountActivityVO
data.products = products

View File

@@ -70,6 +70,17 @@ const crudSchemas = reactive<CrudSchema[]>([
width: 120
}
},
{
label: '优惠类型',
field: 'discountType',
dictType: DICT_TYPE.PROMOTION_DISCOUNT_TYPE,
dictClass: 'number',
isSearch: true,
form: {
component: 'Radio',
value: 1
}
},
{
label: '活动商品',
field: 'spuId',