diff --git a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/TerminalEnum.java b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/TerminalEnum.java index e698bb76a..91597748d 100644 --- a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/TerminalEnum.java +++ b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/TerminalEnum.java @@ -15,10 +15,12 @@ import java.util.Arrays; @Getter public enum TerminalEnum implements IntArrayValuable { - MINI_PROGRAM(1, "小程序"), - H5(2, "H5"), - IOS(3, "苹果"), - ANDROID(3, "安卓"),; + WECHAT_MINI_PROGRAM(10, "微信小程序"), + WECHAT_WAP(11, "微信公众号"), + H5(20, "H5 网页"), + IOS(31, "苹果 App"), + ANDROID(32, "安卓 App"), + ; public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(TerminalEnum::getTerminal).toArray(); diff --git a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java index 4be21010d..49d60ee37 100644 --- a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java +++ b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java @@ -45,7 +45,7 @@ public class TradeOrderDO extends BaseDO { * * 枚举 {@link TradeOrderTypeEnum} */ - private Integer type; // TODO order_promotion_type + private Integer type; /** * 订单来源 * diff --git a/yudao-ui-admin/src/utils/dict.js b/yudao-ui-admin/src/utils/dict.js index f54659012..9c5661824 100644 --- a/yudao-ui-admin/src/utils/dict.js +++ b/yudao-ui-admin/src/utils/dict.js @@ -8,6 +8,7 @@ import store from '@/store' export const DICT_TYPE = { USER_TYPE: 'user_type', COMMON_STATUS: 'common_status', + TERMINAL: 'terminal', // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX: 'system_user_sex', diff --git a/yudao-ui-admin/src/views/mall/trade/order/index.vue b/yudao-ui-admin/src/views/mall/trade/order/index.vue index 91e81da74..68dd4fbc4 100644 --- a/yudao-ui-admin/src/views/mall/trade/order/index.vue +++ b/yudao-ui-admin/src/views/mall/trade/order/index.vue @@ -29,35 +29,29 @@ - - + + - - - - - - - - - - + + + + start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="datePickerOptions" style="width: 240px"/> 搜索 重置 - 导出订单 @@ -66,61 +60,75 @@ - + - 订单号:{{row.orderNo}} - + 订单号:{{row.no}} + 更多 - 下单时间:{{row.time}} - 订单来源:{{row.orderSource}} - 支付方式:{{row.payWay}} + 下单时间:{{ parseTime(row.createTime) }} + 订单来源: + + + 支付方式: + + 未支付 + - 关闭订单 - 修改地址 - 调整价格 + 详情 更多操作 - 打印发货单 - 详情 + + 关闭订单 + + 修改地址 + + 调整价格 + 备注 + + 打印发货单 - + - - {{row.name}} + + {{row.spuName}} + + {{property.propertyName}}:{{property.valueName}} - {{row.price}} - {{row.count}} + ¥{{ (row.originalUnitPrice / 100.0).toFixed(2) }} + {{row.count}} 件 - + + + {{row.buyer}} {{row.receiver}}{{row.tel}} {{row.address}} - + @@ -132,7 +140,10 @@