From fc49f000cec9c18351f716e129e4fe3581ea5fe5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 10 Dec 2022 11:52:11 +0800 Subject: [PATCH] =?UTF-8?q?trade=EF=BC=9A=E5=89=8D=E7=AB=AF=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86=EF=BC=8C=E8=81=94=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/common/enums/TerminalEnum.java | 10 +- .../dal/dataobject/order/TradeOrderDO.java | 2 +- yudao-ui-admin/src/utils/dict.js | 1 + .../src/views/mall/trade/order/index.vue | 259 ++++++------------ 4 files changed, 86 insertions(+), 186 deletions(-) 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 @@ - + @@ -132,7 +140,10 @@