review:【antd】【mall】营销活动的商品选择

This commit is contained in:
YunaiV
2025-12-01 19:20:28 +08:00
parent 68fc2f6a33
commit a2e6e5097d
8 changed files with 36 additions and 17 deletions

View File

@@ -133,6 +133,7 @@ export function useFormSchema(): VbenFormSchema[] {
placeholder: '请输入最大砍价金额',
},
},
// TODO @puhui999这里交互不太对可以对比下 element-plus 版本呢
{
fieldName: 'spuId',
label: '砍价商品',

View File

@@ -105,6 +105,7 @@ export function useFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'),
},
},
// TODO @puhui999这里交互不太对可以对比下 element-plus 版本呢
{
fieldName: 'spuId',
label: '拼团商品',

View File

@@ -78,7 +78,6 @@ const [Modal, modalApi] = useVbenModal({
switch (data.productScope) {
case PromotionProductScopeEnum.CATEGORY.scope: {
const categoryIds = data.productCategoryIds;
data.productScopeValues = Array.isArray(categoryIds)
? categoryIds
: categoryIds