From 8c64f33c48c97a90f282cace3edda4c5cf753926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Wed, 6 May 2026 02:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ecom):=20=E7=A7=BB=E9=99=A4=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E8=B4=B9=E5=89=8D=E7=AB=AF=E7=9A=84platform=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - types.dto.ts/vo.ts 移除 platformId / platformName - PromotionFeeFormModal.vue 移除平台选择器和相关逻辑 - index.vue 移除平台筛选列和接口调用 - PromotionFeeCard.vue 移除平台筛选和列展示 --- .../promotion-fee/types/types.dto.ts | 6 - .../ecommerce/promotion-fee/types/types.vo.ts | 4 - .../components/PromotionFeeFormModal.vue | 41 ------ .../views/ecommerce/promotion-fee/index.vue | 126 +++--------------- .../details/components/PromotionFeeCard.vue | 31 +---- 5 files changed, 18 insertions(+), 190 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.dto.ts index 414c53ff..37dee375 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.dto.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.dto.ts @@ -9,8 +9,6 @@ export namespace PromotionFeeDTO { shopId?: number; /** 推广费类型ID */ feeTypeId?: number; - /** 平台ID */ - platformId?: number; /** 商品ID(可选) */ productId?: number; /** 推广费发生日期开始 */ @@ -25,8 +23,6 @@ export namespace PromotionFeeDTO { shopId: number; /** 推广费类型ID */ feeTypeId: number; - /** 平台ID */ - platformId?: number; /** 商品ID(可选,关联到具体商品) */ productId?: number; /** 推广活动名称 */ @@ -47,8 +43,6 @@ export namespace PromotionFeeDTO { shopId: number; /** 推广费类型ID */ feeTypeId: number; - /** 平台ID */ - platformId?: number; /** 商品ID(可选,关联到具体商品) */ productId?: number; /** 推广活动名称 */ diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.vo.ts index e8e13f98..85af65c4 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.vo.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/promotion-fee/types/types.vo.ts @@ -17,10 +17,6 @@ export namespace PromotionFeeVO { feeTypeId: number; /** 推广费类型名称 */ feeTypeName?: string; - /** 平台ID */ - platformId?: number; - /** 平台名称 */ - platformName?: string; /** 商品ID(可选) */ productId?: number; /** 推广活动名称 */ diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/promotion-fee/components/PromotionFeeFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/promotion-fee/components/PromotionFeeFormModal.vue index 549c077f..c7b14857 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/promotion-fee/components/PromotionFeeFormModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/promotion-fee/components/PromotionFeeFormModal.vue @@ -27,7 +27,6 @@ import { updatePromotionFeeApi, } from '#/api/ecommerce/promotion-fee'; import { getActivePromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type'; -import { getActivePlatformsApi } from '#/api/ecommerce/platform'; import { getProductPageApi } from '#/api/ecommerce/product'; import { getShopPageApi } from '#/api/ecommerce/shop'; @@ -74,7 +73,6 @@ const isEdit = ref(false); const formData = ref({ shopId: undefined as any, feeTypeId: undefined as any, - platformId: undefined, productId: undefined, campaignName: '', feeAmount: undefined as any, @@ -91,10 +89,6 @@ const rules = { feeDate: [{ required: true, message: '请选择发生日期', trigger: 'change' }], } as any; -// 平台选项(动态加载) -const platformList = ref<{ label: string; value: number }[]>([]); -const platformListLoading = ref(false); - // 店铺列表 const shopList = ref([]); const shopListLoading = ref(false); @@ -119,7 +113,6 @@ watch( formData.value = { shopId: props.promotionFeeData.shopId, feeTypeId: props.promotionFeeData.feeTypeId, - platformId: props.promotionFeeData.platformId, productId: props.promotionFeeData.productId, campaignName: props.promotionFeeData.campaignName || '', feeAmount: props.promotionFeeData.feeAmount, @@ -166,21 +159,6 @@ const loadFeeTypeList = async () => { } }; -const loadPlatformList = async () => { - platformListLoading.value = true; - try { - const list = await getActivePlatformsApi(); - platformList.value = list.map((p) => ({ - label: p.platformName, - value: p.id, - })); - } catch (error) { - console.error('加载平台列表失败:', error); - } finally { - platformListLoading.value = false; - } -}; - const loadProductList = async () => { productListLoading.value = true; try { @@ -201,7 +179,6 @@ const resetFormData = () => { formData.value = { shopId: undefined as any, feeTypeId: undefined as any, - platformId: undefined, productId: undefined, campaignName: '', feeAmount: undefined as any, @@ -242,7 +219,6 @@ const handleCancel = () => { onMounted(() => { loadShopList(); loadFeeTypeList(); - loadPlatformList(); loadProductList(); }); @@ -288,23 +264,6 @@ onMounted(() => { - - - -