diff --git a/src/api/mall/trade/order/index.ts b/src/api/mall/trade/order/index.ts index 8dfbfab8..e99b1338 100644 --- a/src/api/mall/trade/order/index.ts +++ b/src/api/mall/trade/order/index.ts @@ -109,3 +109,13 @@ export const delivery = async (data: DeliveryVO) => { export const remark = async (data) => { return await request.post({ url: `/trade/order/remark`, data }) } + +// 订单调价 +export const adjustPrice = async (data) => { + return await request.post({ url: `/trade/order/adjust-price`, data }) +} + +// 修改订单地址 +export const adjustAddress = async (data) => { + return await request.post({ url: `/trade/order/adjust-address`, data }) +} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 7a210e29..95b69fd5 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -421,7 +421,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ children: [ { path: 'detail/:orderId(\\d+)', - component: () => import('@/views/mall/trade/order/detail/index.vue'), + component: () => import('@/views/mall/trade/order/components/OrderDetailForm.vue'), name: 'TradeOrderDetailForm', meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' } } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 76b99266..08634da5 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -165,5 +165,8 @@ export enum DICT_TYPE { PROMOTION_COUPON_STATUS = 'promotion_coupon_status', // 优惠劵的状态 PROMOTION_COUPON_TAKE_TYPE = 'promotion_coupon_take_type', // 优惠劵的领取方式 PROMOTION_ACTIVITY_STATUS = 'promotion_activity_status', // 优惠活动的状态 - PROMOTION_CONDITION_TYPE = 'promotion_condition_type' // 营销的条件类型枚举 + PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举 + + // ========== MALL - 物流模块 ========== + DELIVERY_TYPE = 'delivery_type' // 配送方式 } diff --git a/src/views/mall/trade/order/DeliveryOrderForm.vue b/src/views/mall/trade/order/components/DeliveryOrderForm.vue similarity index 100% rename from src/views/mall/trade/order/DeliveryOrderForm.vue rename to src/views/mall/trade/order/components/DeliveryOrderForm.vue diff --git a/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue b/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue new file mode 100644 index 00000000..c2bcff75 --- /dev/null +++ b/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue @@ -0,0 +1,80 @@ + + diff --git a/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue new file mode 100644 index 00000000..3436cb63 --- /dev/null +++ b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue @@ -0,0 +1,89 @@ + + diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/components/OrderDetailForm.vue similarity index 81% rename from src/views/mall/trade/order/detail/index.vue rename to src/views/mall/trade/order/components/OrderDetailForm.vue index c72dd166..d1a61b2d 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/components/OrderDetailForm.vue @@ -3,10 +3,11 @@ {{ orderInfo.no }} - 物流配送 - - 物流配送 - + + + + + 秒杀活动 @@ -37,22 +38,17 @@ - - + - 调整价格 + 调整价格 备注 发货 - - 修改地址 - + + 修改地址 + + 确认收货 - @@ -62,8 +58,6 @@ - - @@ -98,8 +92,6 @@ - - @@ -114,8 +106,7 @@ - - {{ formatToFraction(orderInfo.totalPrice - orderInfo.totalPrice) }}元 + {{ formatToFraction(orderInfo.couponPrice) }}元 @@ -149,7 +140,7 @@ - + @@ -210,15 +201,19 @@ - - + + + +