From 5e85efb23e389b515903e4229fe15b1a33aaa51d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 2 Sep 2025 20:59:21 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90mall=20=E5=95=86?= =?UTF-8?q?=E5=9F=8E=E3=80=91promotion=20=E7=9B=B8=E5=85=B3=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/mall/promotion/article/data.ts | 2 +- .../src/views/mall/promotion/coupon/template/data.ts | 3 ++- apps/web-antd/src/views/mall/promotion/diy/page/index.vue | 8 ++++---- .../src/views/mall/promotion/diy/template/index.vue | 6 +++--- apps/web-ele/src/views/mall/promotion/article/data.ts | 2 +- .../src/views/mall/promotion/coupon/template/data.ts | 3 ++- apps/web-ele/src/views/mall/promotion/diy/page/index.vue | 8 ++++---- 7 files changed, 17 insertions(+), 15 deletions(-) diff --git a/apps/web-antd/src/views/mall/promotion/article/data.ts b/apps/web-antd/src/views/mall/promotion/article/data.ts index 5b03258fb..b12a6cd68 100644 --- a/apps/web-antd/src/views/mall/promotion/article/data.ts +++ b/apps/web-antd/src/views/mall/promotion/article/data.ts @@ -75,7 +75,7 @@ export function useFormSchema(): VbenFormSchema[] { }, }, { - // TODO: 商品关联 + // TODO: @xingyu:商品关联 fieldName: 'spuId', label: '商品关联', component: 'Input', diff --git a/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts b/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts index e2359f2d4..b2ea902fe 100644 --- a/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts +++ b/apps/web-antd/src/views/mall/promotion/coupon/template/data.ts @@ -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: '有效期类型', diff --git a/apps/web-antd/src/views/mall/promotion/diy/page/index.vue b/apps/web-antd/src/views/mall/promotion/diy/page/index.vue index fc50e5df3..254b755b2 100644 --- a/apps/web-antd/src/views/mall/promotion/diy/page/index.vue +++ b/apps/web-antd/src/views/mall/promotion/diy/page/index.vue @@ -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(); diff --git a/apps/web-antd/src/views/mall/promotion/diy/template/index.vue b/apps/web-antd/src/views/mall/promotion/diy/template/index.vue index 5e13bcfaf..86a7ea486 100644 --- a/apps/web-antd/src/views/mall/promotion/diy/template/index.vue +++ b/apps/web-antd/src/views/mall/promotion/diy/template/index.vue @@ -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 } }); } diff --git a/apps/web-ele/src/views/mall/promotion/article/data.ts b/apps/web-ele/src/views/mall/promotion/article/data.ts index 5b03258fb..ded3024f4 100644 --- a/apps/web-ele/src/views/mall/promotion/article/data.ts +++ b/apps/web-ele/src/views/mall/promotion/article/data.ts @@ -74,8 +74,8 @@ export function useFormSchema(): VbenFormSchema[] { optionType: 'button', }, }, + // TODO: @霖:商品关联 { - // TODO: 商品关联 fieldName: 'spuId', label: '商品关联', component: 'Input', diff --git a/apps/web-ele/src/views/mall/promotion/coupon/template/data.ts b/apps/web-ele/src/views/mall/promotion/coupon/template/data.ts index e2359f2d4..daeb88427 100644 --- a/apps/web-ele/src/views/mall/promotion/coupon/template/data.ts +++ b/apps/web-ele/src/views/mall/promotion/coupon/template/data.ts @@ -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: '有效期类型', diff --git a/apps/web-ele/src/views/mall/promotion/diy/page/index.vue b/apps/web-ele/src/views/mall/promotion/diy/page/index.vue index 9dc80e5d0..92cc3bf60 100644 --- a/apps/web-ele/src/views/mall/promotion/diy/page/index.vue +++ b/apps/web-ele/src/views/mall/promotion/diy/page/index.vue @@ -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]),