review:【antd/ele】【mall】营销模块的迁移

This commit is contained in:
YunaiV
2025-12-15 19:29:47 +08:00
parent ef0f0a9a9d
commit 4ec82f0fd0
50 changed files with 317 additions and 263 deletions

View File

@@ -127,7 +127,6 @@ export function useFormSchema(): VbenFormSchema[] {
},
formItemClass: 'col-span-2',
},
// TODO @puhui999商品图太大了。
{
fieldName: 'spuId',
label: '活动商品',

View File

@@ -26,6 +26,7 @@ import {
SpuAndSkuList,
SpuSkuSelect,
} from '#/views/mall/product/spu/components';
// TODO @puhui999getPropertyList 在 antd 和 el 导入的路径不同;是不是要统一下哈;
import { getPropertyList } from '#/views/mall/product/spu/components/property-util';
import { useFormSchema } from '../data';
@@ -99,6 +100,7 @@ async function getSpuDetails(
return;
}
// TODO @puhui999这里的 spuList是不是直接放到 145 行就 ok 啦;(尾部);
spuList.value = [];
// 筛选指定的 SKU
@@ -132,6 +134,7 @@ async function getSpuDetails(
});
res.skus = selectSkus;
// TODO @puhui999这里的逻辑是不是放到 147 行(尾部);
const spuProperties: SpuProperty<MallSpuApi.Spu>[] = [
{
spuId: res.id!,
@@ -180,7 +183,6 @@ const [Modal, modalApi] = useVbenModal({
},
async onOpenChange(isOpen: boolean) {
if (!isOpen) {
// 重置表单数据(新增和编辑模式都需要)
formData.value = undefined;
spuList.value = [];
spuPropertyList.value = [];

View File

@@ -1,4 +1,5 @@
<!-- 积分商城活动橱窗组件用于展示和选择积分商城活动 -->
<!-- TODO @puhui999antd 多了一个看着 ele 要迁移下 --->
<script lang="ts" setup>
import type { MallPointActivityApi } from '#/api/mall/promotion/point';

View File

@@ -1,4 +1,5 @@
<!-- 积分商城活动选择弹窗组件 -->
<!-- TODO @puhui999antd 多了一个看着 ele 要迁移下 --->
<script lang="ts" setup>
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';