From b7d78a24a4da45b4093e783a678756be0dd2fb36 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 10 Dec 2022 21:02:32 +0800 Subject: [PATCH] =?UTF-8?q?trade=EF=BC=9A=E5=AE=8C=E6=88=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=90=8E=E5=8F=B0=E7=9A=84=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=9A=84=E7=AE=80=E5=8D=95=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TradeOrderItemAfterSaleStatusEnum.java | 6 +- .../admin/order/vo/TradeOrderBaseVO.java | 3 + yudao-ui-admin/src/utils/dict.js | 1 + .../src/views/mall/trade/order/detail.vue | 211 ++++++++---------- .../src/views/mall/trade/order/index.vue | 17 -- 5 files changed, 102 insertions(+), 136 deletions(-) diff --git a/yudao-module-mall/yudao-module-trade-api/src/main/java/cn/iocoder/yudao/module/trade/enums/order/TradeOrderItemAfterSaleStatusEnum.java b/yudao-module-mall/yudao-module-trade-api/src/main/java/cn/iocoder/yudao/module/trade/enums/order/TradeOrderItemAfterSaleStatusEnum.java index f1226f5b1..c4fc8a373 100644 --- a/yudao-module-mall/yudao-module-trade-api/src/main/java/cn/iocoder/yudao/module/trade/enums/order/TradeOrderItemAfterSaleStatusEnum.java +++ b/yudao-module-mall/yudao-module-trade-api/src/main/java/cn/iocoder/yudao/module/trade/enums/order/TradeOrderItemAfterSaleStatusEnum.java @@ -16,9 +16,9 @@ import java.util.Arrays; @Getter public enum TradeOrderItemAfterSaleStatusEnum implements IntArrayValuable { - NONE(0, "未申请"), - APPLY(1, "已申请"), - SUCCESS(2, "申请成功"); + NONE(0, "未售后"), + APPLY(1, "售后中"), + SUCCESS(2, "已退款"); public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(TradeOrderItemAfterSaleStatusEnum::getStatus).toArray(); diff --git a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderBaseVO.java b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderBaseVO.java index 5b7bdef39..1669bc1ff 100755 --- a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderBaseVO.java +++ b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/vo/TradeOrderBaseVO.java @@ -24,6 +24,9 @@ public class TradeOrderBaseVO { @ApiModelProperty(value = "创建时间", required = true, notes = "下单时间") private Date createTime; + @ApiModelProperty(value = "订单类型", required = true, example = "1", notes = "参见 TradeOrderTypeEnum 枚举") + private Integer type; + @ApiModelProperty(value = "订单来源", required = true, example = "1", notes = "参见 TerminalEnum 枚举") private Integer terminal; diff --git a/yudao-ui-admin/src/utils/dict.js b/yudao-ui-admin/src/utils/dict.js index 2dc3e119e..73ecc214f 100644 --- a/yudao-ui-admin/src/utils/dict.js +++ b/yudao-ui-admin/src/utils/dict.js @@ -67,6 +67,7 @@ export const DICT_TYPE = { TRADE_AFTER_SALE_TYPE: 'trade_after_sale_type', // 售后 - 类型 TRADE_ORDER_TYPE: 'trade_order_type', // 订单 - 类型 TRADE_ORDER_STATUS: 'trade_order_status', // 订单 - 状态 + TRADE_ORDER_ITEM_AFTER_SALE_STATUS: 'trade_order_item_after_sale_status', // 订单项 - 售后状态 // ========== MALL - PROMOTION 模块 ========== PROMOTION_DISCOUNT_TYPE: 'promotion_discount_type', // 优惠类型 diff --git a/yudao-ui-admin/src/views/mall/trade/order/detail.vue b/yudao-ui-admin/src/views/mall/trade/order/detail.vue index 524c1e091..2c9bfd817 100644 --- a/yudao-ui-admin/src/views/mall/trade/order/detail.vue +++ b/yudao-ui-admin/src/views/mall/trade/order/detail.vue @@ -2,23 +2,104 @@
- 123 + {{ order.no }} + 物流配送 + 物流配送 + + + + {{ order.receiverName }} + {{ order.userRemark }} + + + + {{ order.receiverMobile }} + {{ order.remark }} + {{ order.payOrderId }} + + + + {{ order.user.nickname }} + + {{ order.receiverAreaName }}   {{ order.receiverDetailAddress }}   + + + + + + + + + + + 调整价格 + 备注 + 发货 + 关闭订单 + 修改地址 + 打印电子面单 + 打印发货单 + 确认收货 + + + 买家付款成功后,货款将直接进入您的商户号(微信、支付宝)
+ 请及时关注你发出的包裹状态,确保可以配送至买家手中
+ 如果买家表示没收到货或货物有问题,请及时联系买家处理,友好协商 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + ¥{{ (order.originalPrice / 100.0).toFixed(2) }} + ¥{{ (order.deliveryPrice / 100.0).toFixed(2) }} + ¥{{ (order.adjustPrice / 100.0).toFixed(2) }} + + ¥{{ ((order.originalPrice - order.originalPrice) / 100.0).toFixed(2) }} + + + ¥{{ (order.discountPrice / 100.0).toFixed(2) }} + + + ¥{{ (order.pointPrice / 100.0).toFixed(2) }} + + + + ¥{{ (order.payPrice / 100.0).toFixed(2) }} +