From 1b5c983d1dfbc47347ebbb7dd1b508610b7209ac Mon Sep 17 00:00:00 2001 From: xiaobai <2511883673@qq.com> Date: Mon, 19 Jun 2023 12:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=92=8C=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=20202306?= =?UTF-8?q?19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 42a7aec0b51c4c9f0d2588972a3fddfd3bd2f981) --- .env.dev | 2 +- src/api/mall/trade/order/type/orderType.ts | 139 +- src/views/mall/trade/order/index.vue | 1137 +++++++++-------- .../trade/order/tradeOrderDetail-crmeb.vue | 141 -- .../mall/trade/order/tradeOrderDetail.vue | 709 +++++----- 5 files changed, 1063 insertions(+), 1065 deletions(-) delete mode 100644 src/views/mall/trade/order/tradeOrderDetail-crmeb.vue diff --git a/.env.dev b/.env.dev index a52eec30..e8cf8938 100644 --- a/.env.dev +++ b/.env.dev @@ -1,5 +1,5 @@ # 开发环境 -NODE_ENV=production +NODE_ENV=development VITE_DEV=false diff --git a/src/api/mall/trade/order/type/orderType.ts b/src/api/mall/trade/order/type/orderType.ts index 759d9f9a..e5185769 100644 --- a/src/api/mall/trade/order/type/orderType.ts +++ b/src/api/mall/trade/order/type/orderType.ts @@ -3,25 +3,25 @@ // TODO @xiaobai:这个改成 TradeOrderRespVO export interface TradeOrderPageItemRespVO { // 订单编号 - id: number + id?: number // 订单流水号 - no: string + no?: string // 下单时间 - createTime: Date + createTime?: Date // 订单类型 - type: number + type?: number // 订单来源 - terminal: number + terminal?: number // 用户编号 - userId: number + userId?: number // 用户 IP - userIp: string + userIp?: string // 用户备注 - userRemark: string + userRemark?: string // 订单状态 - status: number + status?: number // 购买的商品数量 - productCount: number + productCount?: number // 订单完成时间 finishTime?: Date // 订单取消时间 @@ -33,23 +33,23 @@ export interface TradeOrderPageItemRespVO { // 支付订单编号 payOrderId: number // 是否已支付 - payed: boolean + payed?: boolean // 付款时间 payTime?: Date // 支付渠道 - payChannelCode: string + payChannelCode?: string // 商品原价(总) - originalPrice: number + originalPrice?: number // 订单原价(总) - orderPrice: number + orderPrice?: number // 订单优惠(总) - discountPrice: number + discountPrice?: number // 运费金额 - deliveryPrice: number + deliveryPrice?: number // 订单调价(总) - adjustPrice: number + adjustPrice?: number // 应付金额(总) - payPrice: number + payPrice?: number // 配送模板编号 deliveryTemplateId?: number // 发货物流公司编号 @@ -57,35 +57,37 @@ export interface TradeOrderPageItemRespVO { // 发货物流单号 logisticsNo?: string // 发货状态 - deliveryStatus: number + deliveryStatus?: number // 发货时间 deliveryTime?: Date // 收货时间 receiveTime?: Date // 收件人名称 - receiverName: string + receiverName?: string // 收件人手机 - receiverMobile: string + receiverMobile?: string // 收件人地区编号 - receiverAreaId: number + receiverAreaId?: number // 收件人邮编 - receiverPostCode: number + receiverPostCode?: number // 收件人详细地址 - receiverDetailAddress: string + receiverDetailAddress?: string // 售后状态 afterSaleStatus?: number // 退款金额 - refundPrice: number + refundPrice?: number // 优惠劵编号 couponId?: number // 优惠劵减免金额 - couponPrice: number + couponPrice?: number // 积分抵扣的金额 - pointPrice: number + pointPrice?: number //收件人地区名字 - receiverAreaName: string + receiverAreaName?: string // 订单项列表 - items: TradeOrderItemBaseVO[] + items?: TradeOrderItemBaseVO[] + //用户信息 + user?: MemberUserRespDTO } // TODO @xiaobai:这个改成 TradeOrderItemRespVO @@ -98,70 +100,70 @@ export interface TradeOrderItemBaseVO { /** * 编号 */ - id: number + id?: number /** * 用户编号 */ - userId: number + userId?: number /** * 订单编号 */ - orderId: number + orderId?: number // ========== 商品基本信息 ========== /** * 商品 SPU 编号 */ - spuId: number + spuId?: number /** * 商品 SPU 名称 */ - spuName: string + spuName?: string /** * 商品 SKU 编号 */ - skuId: number + skuId?: number /** * 商品图片 */ - picUrl: string + picUrl?: string /** * 购买数量 */ - count: number + count?: number // ========== 价格 + 支付基本信息 ========== /** * 商品原价(总) */ - originalPrice: number + originalPrice?: number /** * 商品原价(单) */ - originalUnitPrice: number + originalUnitPrice?: number /** * 商品优惠(总) */ - discountPrice: number + discountPrice?: number /** * 商品实付金额(总) */ - payPrice: number + payPrice?: number /** * 子订单分摊金额(总) */ - orderPartPrice: number + orderPartPrice?: number /** * 分摊后子订单实付金额(总) */ - orderDividePrice: number + orderDividePrice?: number // ========== 营销基本信息 ========== // TODO 芋艿:在捉摸一下 // ========== 售后基本信息 ========== /** * 售后状态 */ - afterSaleStatus: number + afterSaleStatus?: number //属性数组 - properties: ProductPropertyValueDetailRespVO[] + properties?: ProductPropertyValueDetailRespVO[] } /** @@ -171,17 +173,56 @@ export interface ProductPropertyValueDetailRespVO { /** * 属性的编号 */ - propertyId: number + propertyId?: number /** * 属性的名称 */ - propertyName: string + propertyName?: string /** * 属性值的编号 */ - valueId: number + valueId?: number /** * 属性值的名称 */ - valueName: string + valueName?: string +} + +/** + * 订单详情查询 请求 + */ +export interface TradeOrderPageReqVO { + pageNo: number + pageSize: number + no?: string + userId?: string + userNickname?: string + userMobile?: string + receiverName?: string + receiverMobile?: string + terminal?: string + type?: number + status?: number + payChannelCode?: string + createTime?: [Date, Date] + spuName?: string + itemCount?: string + all?: string +} + +//用户信息 +export interface MemberUserRespDTO { + id?: number + nickname?: string + status?: number + avatar?: string + mobile?: string +} +//订单详情选中type +export interface SelectType { + queryParams: TradeOrderPageReqVO + selectTotal: number //选中的数量 + selectAllFlag: boolean //全选标识 + selectData: Map> //存放涉及选中得页面以及每页选中得数据订单号 全选时根据条件查询 排除取消的list订单 + unSelectList: Set //登记取消的list 全选标识为true 时登记单独取消的list,再次选中时排除, 全选标识为false 时清空list } diff --git a/src/views/mall/trade/order/index.vue b/src/views/mall/trade/order/index.vue index cd051a2b..f474ee10 100644 --- a/src/views/mall/trade/order/index.vue +++ b/src/views/mall/trade/order/index.vue @@ -1,517 +1,620 @@ - - + + diff --git a/src/views/mall/trade/order/tradeOrderDetail-crmeb.vue b/src/views/mall/trade/order/tradeOrderDetail-crmeb.vue deleted file mode 100644 index ae4fe01c..00000000 --- a/src/views/mall/trade/order/tradeOrderDetail-crmeb.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - diff --git a/src/views/mall/trade/order/tradeOrderDetail.vue b/src/views/mall/trade/order/tradeOrderDetail.vue index c6f5cd5e..2cba774b 100644 --- a/src/views/mall/trade/order/tradeOrderDetail.vue +++ b/src/views/mall/trade/order/tradeOrderDetail.vue @@ -1,357 +1,352 @@ - - - + + +