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(() => { - - - -