From 55fe8612c59f7340ad8b5a0dd257dc0dffc592fd Mon Sep 17 00:00:00 2001 From: khy <2908249413@qq.com> Date: Thu, 7 Nov 2024 16:15:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E8=B4=B9=E4=BC=9A=E5=91=98=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-admin-vue3/src/api/mall/product/spu.ts | 3 + .../spu/components/MarkingtingList.vue | 470 ++++++++++++++++++ .../mall/product/spu/components/index.ts | 3 +- .../mall/product/spu/form/MarketingForm.vue | 102 ++-- .../src/views/mall/product/spu/form/index.vue | 9 + .../api/sku/dto/ProductSkuRespDTO.java | 5 + .../api/spu/dto/ProductSpuRespDTO.java | 5 + .../admin/spu/vo/ProductSkuRespVO.java | 2 + .../admin/spu/vo/ProductSkuSaveReqVO.java | 3 + .../admin/spu/vo/ProductSpuRespVO.java | 8 + .../admin/spu/vo/ProductSpuSaveReqVO.java | 8 + .../app/spu/AppProductSpuController.java | 54 +- .../app/spu/vo/AppProductSpuDetailRespVO.java | 6 + .../app/spu/vo/AppProductSpuRespVO.java | 4 + .../dal/dataobject/sku/ProductSkuDO.java | 5 + .../dal/dataobject/spu/ProductSpuDO.java | 11 + .../service/spu/ProductSpuServiceImpl.java | 2 + .../app/base/sku/AppProductSkuBaseRespVO.java | 3 + .../vo/AppTradeOrderSettlementRespVO.java | 4 + .../convert/order/TradeOrderConvert.java | 2 +- .../service/price/TradePriceServiceImpl.java | 8 +- .../price/bo/TradePriceCalculateRespBO.java | 9 +- .../TradeCouponPriceCalculator.java | 17 +- .../TradeDiscountActivityPriceCalculator.java | 12 +- .../TradePointUsePriceCalculator.java | 13 +- .../TradePriceCalculatorHelper.java | 76 ++- .../module/member/api/user/MemberUserApi.java | 9 + .../api/user/dto/MemberUserRespDTO.java | 5 + .../member/api/user/MemberUserApiImpl.java | 10 + 29 files changed, 819 insertions(+), 49 deletions(-) create mode 100644 yudao-admin-vue3/src/views/mall/product/spu/components/MarkingtingList.vue diff --git a/yudao-admin-vue3/src/api/mall/product/spu.ts b/yudao-admin-vue3/src/api/mall/product/spu.ts index 32fe688..197d02f 100644 --- a/yudao-admin-vue3/src/api/mall/product/spu.ts +++ b/yudao-admin-vue3/src/api/mall/product/spu.ts @@ -23,6 +23,7 @@ export interface Sku { firstBrokeragePrice?: number | string // 一级分销的佣金 secondBrokeragePrice?: number | string // 二级分销的佣金 salesCount?: number // 商品销量 + paidMemberPrice?: number | string //付费会员价 } export interface GiveCouponTemplate { @@ -58,6 +59,8 @@ export interface Spu { status?: number // 商品状态 pointsStatus?: number // 商品使用积分状态 usePointsMax?: number // 单商品积分使用上限 + isPaidMemberPrice?: number//是否设置付费会员价 + paidMemberPrice?: number//会员价 } // 获得 Spu 列表 diff --git a/yudao-admin-vue3/src/views/mall/product/spu/components/MarkingtingList.vue b/yudao-admin-vue3/src/views/mall/product/spu/components/MarkingtingList.vue new file mode 100644 index 0000000..a15dc46 --- /dev/null +++ b/yudao-admin-vue3/src/views/mall/product/spu/components/MarkingtingList.vue @@ -0,0 +1,470 @@ + + + diff --git a/yudao-admin-vue3/src/views/mall/product/spu/components/index.ts b/yudao-admin-vue3/src/views/mall/product/spu/components/index.ts index e2cbe73..843d948 100644 --- a/yudao-admin-vue3/src/views/mall/product/spu/components/index.ts +++ b/yudao-admin-vue3/src/views/mall/product/spu/components/index.ts @@ -1,4 +1,5 @@ import SkuList from './SkuList.vue' +import MarkingtingList from './MarkingtingList.vue' import { Spu } from '@/api/mall/product/spu' interface PropertyAndValues { @@ -51,4 +52,4 @@ const getPropertyList = (spu: Spu): PropertyAndValues[] => { return properties } -export { SkuList, PropertyAndValues, RuleConfig, getPropertyList } +export { MarkingtingList, SkuList, PropertyAndValues, RuleConfig, getPropertyList } diff --git a/yudao-admin-vue3/src/views/mall/product/spu/form/MarketingForm.vue b/yudao-admin-vue3/src/views/mall/product/spu/form/MarketingForm.vue index 7edce03..4bb3c68 100644 --- a/yudao-admin-vue3/src/views/mall/product/spu/form/MarketingForm.vue +++ b/yudao-admin-vue3/src/views/mall/product/spu/form/MarketingForm.vue @@ -2,54 +2,84 @@