Commit f84c10cd by YunaiV

【功能修改】商城:限时折扣,多乘以了 100 优惠金额

parent 79c3ba09
...@@ -190,7 +190,7 @@ const submitForm = async () => { ...@@ -190,7 +190,7 @@ const submitForm = async () => {
const products = cloneDeep(spuAndSkuListRef.value.getSkuConfigs('productConfig')) const products = cloneDeep(spuAndSkuListRef.value.getSkuConfigs('productConfig'))
products.forEach((item: DiscountActivityApi.DiscountProductVO) => { products.forEach((item: DiscountActivityApi.DiscountProductVO) => {
item.discountPercent = convertToInteger(item.discountPercent) item.discountPercent = convertToInteger(item.discountPercent)
item.discountPrice = convertToInteger(yuanToFen(item.discountPrice)) item.discountPrice = convertToInteger(item.discountPrice)
}) })
const data = cloneDeep(formRef.value.formModel) as DiscountActivityApi.DiscountActivityVO const data = cloneDeep(formRef.value.formModel) as DiscountActivityApi.DiscountActivityVO
data.products = products data.products = products
......
...@@ -71,17 +71,6 @@ const crudSchemas = reactive<CrudSchema[]>([ ...@@ -71,17 +71,6 @@ const crudSchemas = reactive<CrudSchema[]>([
} }
}, },
{ {
label: '优惠类型',
field: 'discountType',
dictType: DICT_TYPE.PROMOTION_DISCOUNT_TYPE,
dictClass: 'number',
isSearch: true,
form: {
component: 'Radio',
value: 1
}
},
{
label: '活动商品', label: '活动商品',
field: 'spuId', field: 'spuId',
isTable: true, isTable: true,
......
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