diff --git a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts index c3362dab4..8891f892c 100644 --- a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts @@ -24,16 +24,7 @@ export function useFormSchema(): VbenFormSchema[] { placeholder: '请输入活动名称', }, rules: 'required', - }, - { - fieldName: 'status', - label: '活动状态', - component: 'Select', - componentProps: { - placeholder: '请选择活动状态', - options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'), - }, - rules: 'required', + formItemClass: 'col-span-2', }, { fieldName: 'startTime', @@ -41,9 +32,9 @@ export function useFormSchema(): VbenFormSchema[] { component: 'DatePicker', componentProps: { placeholder: '请选择开始时间', - showTime: false, + showTime: true, valueFormat: 'x', - format: 'YYYY-MM-DD', + format: 'YYYY-MM-DD HH:mm:ss', }, rules: 'required', }, @@ -53,18 +44,18 @@ export function useFormSchema(): VbenFormSchema[] { component: 'DatePicker', componentProps: { placeholder: '请选择结束时间', - showTime: false, + showTime: true, valueFormat: 'x', - format: 'YYYY-MM-DD', + format: 'YYYY-MM-DD HH:mm:ss', }, rules: 'required', }, { fieldName: 'userSize', - label: '用户数量', + label: '拼团人数', component: 'InputNumber', componentProps: { - placeholder: '请输入用户数量', + placeholder: '达到该人数即成团', min: 2, }, rules: 'required', @@ -74,7 +65,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '限制时长', component: 'InputNumber', componentProps: { - placeholder: '请输入限制时长(小时)', + placeholder: '限制时长(小时)', min: 0, }, rules: 'required', @@ -105,6 +96,13 @@ export function useFormSchema(): VbenFormSchema[] { options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'), }, }, + { + fieldName: 'spuId', + label: '拼团商品', + component: 'Input', + rules: 'required', + formItemClass: 'col-span-2', + }, ]; } diff --git a/apps/web-antd/src/views/mall/promotion/combination/activity/modules/form.vue b/apps/web-antd/src/views/mall/promotion/combination/activity/modules/form.vue index 234d3d73d..22c3cbb45 100644 --- a/apps/web-antd/src/views/mall/promotion/combination/activity/modules/form.vue +++ b/apps/web-antd/src/views/mall/promotion/combination/activity/modules/form.vue @@ -1,13 +1,20 @@ - - - + + + + + + + + 选择商品 + - - - - 拼团活动商品: - - 选择商品 - - - 已选择: {{ spuName }} - - + + + + + + + + + + + + + + + - - - - - - 商品图片 - SKU 名称 - 原价(元) - 拼团价格(元) - - - - - - - - - - {{ sku.skuName }} - - - ¥{{ (sku.price / 100).toFixed(2) }} - - - - - - - - - - - - - - - + + +