From 245301452cd6522c578ae877397f88cace39634c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=AE=E6=A2=A6?= Date: Tue, 19 Sep 2023 13:57:26 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E8=AF=B7=E6=B1=82=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=94=B9=E4=B8=BA=E7=9C=9F=E5=AE=9E=E6=90=BA?= =?UTF-8?q?=E5=B8=A6=E7=9A=84id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/trade/order/detail/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/detail/index.vue index 40f2a664..e92fa82c 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/detail/index.vue @@ -245,9 +245,9 @@ const { params } = useRoute() // 查询参数 const getDetail = async () => { const id = params.orderId as unknown as number if (id) { - const res = (await TradeOrderApi.getOrder(66666)) as TradeOrderApi.OrderVO + const res = (await TradeOrderApi.getOrder(id)) as TradeOrderApi.OrderVO // 没有表单信息则关闭页面返回 - if (res == null) { + if (res === null) { message.error('交易订单不存在') close() } From 18b6c70d1a2354f930cea3f388a1c28903ef1f1a Mon Sep 17 00:00:00 2001 From: owen Date: Tue, 19 Sep 2023 16:37:50 +0800 Subject: [PATCH 2/4] =?UTF-8?q?trade:=20=E5=88=86=E9=94=80=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1review=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/constants.ts | 17 -------------- .../user/BrokerageOrderListDialog.vue | 23 ++++++++----------- .../user/BrokerageUserListDialog.vue | 19 ++++++--------- 3 files changed, 17 insertions(+), 42 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index e7d10487..898ba563 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -299,23 +299,6 @@ export const BrokerageEnabledConditionEnum = { name: '指定分销' } } -/** - * 分销用户类型枚举 - */ -export const BrokerageUserTypeEnum = { - ALL: { - type: 0, - name: '全部' - }, - FIRST: { - type: 1, - name: '一级推广人' - }, - SECOND: { - type: 2, - name: '二级推广人' - } -} /** * 佣金记录业务类型枚举 */ diff --git a/src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue b/src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue index 5d9bb5ad..d2c0568f 100644 --- a/src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue +++ b/src/views/mall/trade/brokerage/user/BrokerageOrderListDialog.vue @@ -9,15 +9,11 @@ :inline="true" label-width="85px" > - - - - {{ item.name }} - + + + 全部 + 一级推广人 + 二级推广人 @@ -98,7 +94,7 @@ diff --git a/src/views/mall/trade/brokerage/withdraw/index.vue b/src/views/mall/trade/brokerage/withdraw/index.vue new file mode 100644 index 00000000..89323f93 --- /dev/null +++ b/src/views/mall/trade/brokerage/withdraw/index.vue @@ -0,0 +1,264 @@ + + + From 21c67b1b75a965ad1de726f2c5760b69eb50858d Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 22 Sep 2023 22:51:45 +0800 Subject: [PATCH 4/4] =?UTF-8?q?Trade:=20=E5=AE=8C=E5=96=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 2 +- .../mall/trade/brokerage/withdraw/index.vue | 10 +++--- src/views/mall/trade/config/index.vue | 36 ++++++++++++++++++- 3 files changed, 41 insertions(+), 7 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 52b705b8..aa948594 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -168,7 +168,7 @@ export enum DICT_TYPE { BROKERAGE_ENABLED_CONDITION = 'brokerage_enabled_condition', // 分佣模式 BROKERAGE_BIND_MODE = 'brokerage_bind_mode', // 分销关系绑定模式 BROKERAGE_BANK_NAME = 'brokerage_bank_name', // 佣金提现银行 - BROKERAGE_WITHDRAW_TYPE = 'brokerage_withdraw_type', // 佣金冻结时间 + BROKERAGE_WITHDRAW_TYPE = 'brokerage_withdraw_type', // 佣金提现类型 BROKERAGE_RECORD_BIZ_TYPE = 'brokerage_record_biz_type', // 佣金业务类型 BROKERAGE_RECORD_STATUS = 'brokerage_record_status', // 佣金状态 BROKERAGE_WITHDRAW_STATUS = 'brokerage_withdraw_status', // 佣金提现状态 diff --git a/src/views/mall/trade/brokerage/withdraw/index.vue b/src/views/mall/trade/brokerage/withdraw/index.vue index 89323f93..535387e9 100644 --- a/src/views/mall/trade/brokerage/withdraw/index.vue +++ b/src/views/mall/trade/brokerage/withdraw/index.vue @@ -102,11 +102,11 @@