review:【mall 商城】promotion 相关代码

pull/209/head
YunaiV 2025-09-02 20:59:21 +08:00
parent bb97aca0be
commit 5e85efb23e
7 changed files with 17 additions and 15 deletions

View File

@ -75,7 +75,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
},
{
// TODO: 商品关联
// TODO: @xingyu商品关联
fieldName: 'spuId',
label: '商品关联',
component: 'Input',

View File

@ -43,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '优惠券描述',
component: 'Textarea',
},
// TODO
// TODO @xingyu不同的优惠不同的选择
{
fieldName: 'productScope',
label: '优惠类型',
@ -63,6 +63,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
// TODO @xingu不同的有效期不同的类型
{
fieldName: 'validityType',
label: '有效期类型',

View File

@ -27,23 +27,23 @@ function onRefresh() {
gridApi.query();
}
/** 创建DIY页面 */
/** 创建 DIY 页面 */
function handleCreate() {
formModalApi.setData(null).open();
}
/** 编辑DIY页面 */
/** 编辑 DIY 页面 */
function handleEdit(row: MallDiyPageApi.DiyPage) {
formModalApi.setData(row).open();
}
// TODO @xingyu
/** 装修页面 */
function handleDecorate(row: MallDiyPageApi.DiyPage) {
//
push({ name: 'DiyPageDecorate', params: { id: row.id } });
}
/** 删除DIY页面 */
/** 删除 DIY 页面 */
async function handleDelete(row: MallDiyPageApi.DiyPage) {
await deleteDiyPage(row.id as number);
onRefresh();

View File

@ -33,19 +33,19 @@ function onRefresh() {
gridApi.query();
}
/** 创建DIY模板 */
/** 创建 DIY 模板 */
function handleCreate() {
formModalApi.setData(null).open();
}
/** 编辑DIY模板 */
/** 编辑 DIY 模板 */
function handleEdit(row: MallDiyTemplateApi.DiyTemplate) {
formModalApi.setData(row).open();
}
// TODO @xingyu
/** 装修模板 */
function handleDecorate(row: MallDiyTemplateApi.DiyTemplate) {
//
router.push({ name: 'DiyTemplateDecorate', params: { id: row.id } });
}

View File

@ -74,8 +74,8 @@ export function useFormSchema(): VbenFormSchema[] {
optionType: 'button',
},
},
// TODO: @霖:商品关联
{
// TODO: 商品关联
fieldName: 'spuId',
label: '商品关联',
component: 'Input',

View File

@ -43,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '优惠券描述',
component: 'Textarea',
},
// TODO
// TODO @霖:不同的优惠,不同的选择
{
fieldName: 'productScope',
label: '优惠类型',
@ -63,6 +63,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
// TODO @xingu不同的有效期不同的类型
{
fieldName: 'validityType',
label: '有效期类型',

View File

@ -29,23 +29,23 @@ function onRefresh() {
gridApi.query();
}
/** 创建DIY页面 */
/** 创建 DIY 页面 */
function handleCreate() {
formModalApi.setData(null).open();
}
/** 编辑DIY页面 */
/** 编辑 DIY 页面 */
function handleEdit(row: MallDiyPageApi.DiyPage) {
formModalApi.setData(row).open();
}
// TODO @
/** 装修页面 */
function handleDecorate(row: MallDiyPageApi.DiyPage) {
//
push({ name: 'DiyPageDecorate', params: { id: row.id } });
}
/** 删除DIY页面 */
/** 删除 DIY 页面 */
async function handleDelete(row: MallDiyPageApi.DiyPage) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),