diff --git a/src/api/mall/trade/order/index.ts b/src/api/mall/trade/order/index.ts index 80669c57..c77e939b 100644 --- a/src/api/mall/trade/order/index.ts +++ b/src/api/mall/trade/order/index.ts @@ -41,15 +41,22 @@ export interface OrderVO { refundPrice?: number | null // 退款金额 couponId?: number | null // 优惠劵编号 couponPrice?: number | null // 优惠劵减免金额 + vipPrice?: number | null // VIP 减免金额 pointPrice?: number | null // 积分抵扣的金额 receiverAreaName?: string //收件人地区名字 items?: OrderItemRespVO[] // 订单项列表 - // 用户信息 + // 下单用户信息 user?: { id?: number | null nickname?: string avatar?: string } + // 推广用户信息 + brokerageUser?: { + id?: number | null + nickname?: string + avatar?: string + } // 订单操作日志 logs?: OrderLogRespVO[] } @@ -114,21 +121,21 @@ export interface DeliveryVO { } // 订单发货 -export const delivery = async (data: DeliveryVO) => { +export const deliveryOrder = async (data: DeliveryVO) => { return await request.put({ url: `/trade/order/delivery`, data }) } // 订单备注 -export const updateRemark = async (data: any) => { +export const updateOrderRemark = async (data: any) => { return await request.put({ url: `/trade/order/update-remark`, data }) } // 订单调价 -export const updatePrice = async (data: any) => { +export const updateOrderPrice = async (data: any) => { return await request.put({ url: `/trade/order/update-price`, data }) } // 修改订单地址 -export const updateAddress = async (data: any) => { +export const updateOrderAddress = async (data: any) => { return await request.put({ url: `/trade/order/update-address`, data }) } diff --git a/src/api/system/area/index.ts b/src/api/system/area/index.ts index b7da941f..e91a4997 100644 --- a/src/api/system/area/index.ts +++ b/src/api/system/area/index.ts @@ -5,14 +5,6 @@ export const getAreaTree = async () => { return await request.get({ url: '/system/area/tree' }) } -export const getChildrenArea = async (id: number) => { - return await request.get({ url: '/system/area/get-children?id=' + id }) -} - -export const getAreaListByIds = async (ids) => { - return await request.get({ url: '/system/area/get-by-ids?ids=' + ids }) -} - // 获得 IP 对应的地区名 export const getAreaByIp = async (ip: string) => { return await request.get({ url: '/system/area/get-by-ip?ip=' + ip }) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index b6f76a73..d8172d27 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -405,7 +405,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ meta: { title: '订单详情', icon: 'ep:view', activeMenu: '/mall/trade/order' } }, { - path: 'after-sale/detail/:orderId(\\d+)', + path: 'after-sale/detail/:id(\\d+)', component: () => import('@/views/mall/trade/afterSale/detail/index.vue'), name: 'TradeAfterSaleDetail', meta: { title: '退款详情', icon: 'ep:view', activeMenu: '/mall/trade/after-sale' } diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 8c57ecd3..a3dc4c2c 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -375,3 +375,17 @@ export const BrokerageWithdrawTypeEnum = { name: '支付宝' } } + +/** + * 配送方式枚举 + */ +export const DeliveryTypeEnum = { + EXPRESS: { + type: 1, + name: '快递发货' + }, + PICK_UP: { + type: 2, + name: '到店自提' + } +} diff --git a/src/views/mall/trade/afterSale/detail/index.vue b/src/views/mall/trade/afterSale/detail/index.vue index 557e6b6e..50c759d5 100644 --- a/src/views/mall/trade/afterSale/detail/index.vue +++ b/src/views/mall/trade/afterSale/detail/index.vue @@ -6,7 +6,6 @@ - @@ -29,8 +28,7 @@ - - + {{ formData?.user?.nickname }} @@ -46,7 +44,7 @@ - {{ floatToFixed2(formData.refundPrice) }} + {{ fenToYuan(formData.refundPrice) }} {{ formData.applyReason }} @@ -92,7 +90,7 @@ - + - + - - - - + @@ -122,6 +112,8 @@ + + @@ -153,7 +145,7 @@