From af40ab5fc1027f4c73f08af945cb0528bef9ca7d Mon Sep 17 00:00:00 2001 From: bootx Date: Sun, 29 Sep 2024 23:04:56 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E9=80=9A=E9=81=93=E6=94=B6=E9=93=B6?= =?UTF-8?q?=E5=8F=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daxpay/{ChannelEnum.ts => daxpayEnum.ts} | 10 +- ...{TradeStatusEnum.ts => tradeStatusEnum.ts} | 0 .../common/develop/auth/ChannelAuth.vue | 2 +- .../common/develop/trade/DevelopTrade.vue | 2 +- .../daxpay/common/merchant/app/MchAppList.vue | 37 +++++- .../cashier/ChannelCashierConfig.api.ts | 72 +++++++++++ .../cashier/ChannelCashierConfigEdit.vue | 11 ++ .../cashier/ChannelCashierConfigList.vue | 115 ++++++++++++++++++ .../merchant/cashier/ChannelCashierQrCode.vue | 11 ++ .../merchant/channel/ChannelConfigEdit.vue | 8 +- .../merchant/channel/ChannelConfigList.vue | 8 +- .../common/notice/notify/NotifyTaskList.vue | 2 +- .../daxpay/common/order/pay/PayOrder.api.ts | 2 +- .../daxpay/common/order/pay/PayOrderList.vue | 2 +- .../common/order/refund/RefundOrder.api.ts | 2 +- .../common/order/refund/RefundOrderList.vue | 2 +- .../order/transfer/TransferOrder.api.ts | 2 +- .../order/transfer/TransferOrderList.vue | 2 +- .../discrepancy/ReconcileDiscrepancyList.vue | 2 +- .../callback/TradeCallbackRecord.api.ts | 2 +- .../callback/TradeCallbackRecordList.vue | 2 +- .../record/flow/TradeFlowRecordList.vue | 2 +- .../record/sync/TradeSyncRecordList.vue | 2 +- 23 files changed, 272 insertions(+), 28 deletions(-) rename src/enums/daxpay/{ChannelEnum.ts => daxpayEnum.ts} (84%) rename src/enums/daxpay/{TradeStatusEnum.ts => tradeStatusEnum.ts} (100%) create mode 100644 src/views/daxpay/common/merchant/cashier/ChannelCashierConfig.api.ts create mode 100644 src/views/daxpay/common/merchant/cashier/ChannelCashierConfigEdit.vue create mode 100644 src/views/daxpay/common/merchant/cashier/ChannelCashierConfigList.vue create mode 100644 src/views/daxpay/common/merchant/cashier/ChannelCashierQrCode.vue diff --git a/src/enums/daxpay/ChannelEnum.ts b/src/enums/daxpay/daxpayEnum.ts similarity index 84% rename from src/enums/daxpay/ChannelEnum.ts rename to src/enums/daxpay/daxpayEnum.ts index a3fe4be1..5f71adb4 100644 --- a/src/enums/daxpay/ChannelEnum.ts +++ b/src/enums/daxpay/daxpayEnum.ts @@ -1,7 +1,7 @@ /** * 支付通道 */ -export enum ChannelEnum { +export enum DaxpayEnum { ALI = 'ali_pay', WECHAT = 'wechat_pay', UNION_PAY = 'union_pay', @@ -50,3 +50,11 @@ export enum ChannelAuthStatusEnum { /** 数据不存在 */ NOT_EXIST = 'not_exist', } + +/** + * 收银台类型 + */ +export enum CashierTypeEnum { + WECHAT_PAY = 'wechat_pay', + ALIPAY = 'alipay', +} diff --git a/src/enums/daxpay/TradeStatusEnum.ts b/src/enums/daxpay/tradeStatusEnum.ts similarity index 100% rename from src/enums/daxpay/TradeStatusEnum.ts rename to src/enums/daxpay/tradeStatusEnum.ts diff --git a/src/views/daxpay/common/develop/auth/ChannelAuth.vue b/src/views/daxpay/common/develop/auth/ChannelAuth.vue index ec5b1504..8bd661a0 100644 --- a/src/views/daxpay/common/develop/auth/ChannelAuth.vue +++ b/src/views/daxpay/common/develop/auth/ChannelAuth.vue @@ -93,7 +93,7 @@ import { merchantDropdown } from '@/views/daxpay/admin/merchant/info/Merchant.api' import { mchAppDropdown } from '@/views/daxpay/common/merchant/app/MchApp.api' import { useDict } from '@/hooks/bootx/useDict' - import { ChannelAuthStatusEnum } from '@/enums/daxpay/ChannelEnum' + import { ChannelAuthStatusEnum } from '@/enums/daxpay/daxpayEnum' const { createMessage } = useMessage() const { dictDropDown } = useDict() diff --git a/src/views/daxpay/common/develop/trade/DevelopTrade.vue b/src/views/daxpay/common/develop/trade/DevelopTrade.vue index ef899d8a..02f114ec 100644 --- a/src/views/daxpay/common/develop/trade/DevelopTrade.vue +++ b/src/views/daxpay/common/develop/trade/DevelopTrade.vue @@ -18,7 +18,7 @@ + + + + diff --git a/src/views/daxpay/common/merchant/cashier/ChannelCashierConfigList.vue b/src/views/daxpay/common/merchant/cashier/ChannelCashierConfigList.vue new file mode 100644 index 00000000..51e9dc5e --- /dev/null +++ b/src/views/daxpay/common/merchant/cashier/ChannelCashierConfigList.vue @@ -0,0 +1,115 @@ + + + diff --git a/src/views/daxpay/common/merchant/cashier/ChannelCashierQrCode.vue b/src/views/daxpay/common/merchant/cashier/ChannelCashierQrCode.vue new file mode 100644 index 00000000..0a8d203d --- /dev/null +++ b/src/views/daxpay/common/merchant/cashier/ChannelCashierQrCode.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/daxpay/common/merchant/channel/ChannelConfigEdit.vue b/src/views/daxpay/common/merchant/channel/ChannelConfigEdit.vue index 2944e154..10dc62ad 100644 --- a/src/views/daxpay/common/merchant/channel/ChannelConfigEdit.vue +++ b/src/views/daxpay/common/merchant/channel/ChannelConfigEdit.vue @@ -6,7 +6,7 @@