From 4119a3879ec6d6fdeb2cee3a2afa3c1e20801b20 Mon Sep 17 00:00:00 2001 From: DaxPay Dev Date: Fri, 24 Jul 2026 20:51:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(merchant):=20=E5=95=86=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=E5=8E=BB=E5=86=97=E4=BD=99=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=BC=BA=E8=B0=83=E4=B8=8E=E6=AD=BB=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 列表页查询区Card移除重复模块名标题(对齐订单列表范式) - 配置/工作台页移除标题(商户名)/(应用名)后缀 - 商户资料页表单移除商户名称字段及校验 - 清理仅为标题服务的merchantInfo/appName等死代码 --- .../ChannelMerchantCreate.vue | 30 ++-------------- .../channel-merchant/ChannelMerchantList.vue | 34 +------------------ .../terminal/system/SystemTerminalList.vue | 15 ++------ .../aggregate/AggregateScanConfig.vue | 2 -- .../payment/merchant/app/MchAppInfoList.vue | 18 +++------- .../payment/merchant/app/MchAppWorkbench.vue | 1 - .../merchant/cashier/CashierConfig.vue | 2 -- .../merchant/code-config/CodePayConfig.vue | 2 -- .../credential/MerchantCredentialConfig.vue | 15 ++++---- .../merchant/easypay/EasyPayConfig.vue | 2 -- .../payment/merchant/info/MchInfoManage.vue | 18 ++-------- .../merchant/store/MchStoreInfoList.vue | 34 +++++++++---------- .../merchant/user/MerchantUserList.vue | 18 ++-------- .../wx-verify/MchWxDomainVerifyList.vue | 27 +-------------- .../views/payment/route/PayRouteConfig.vue | 2 -- 15 files changed, 40 insertions(+), 180 deletions(-) diff --git a/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantCreate.vue b/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantCreate.vue index 7ea4c5a6e..e55023fed 100644 --- a/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantCreate.vue +++ b/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantCreate.vue @@ -1,38 +1,18 @@ - {{ $t('payment.merchant.channelMerchant.createTitle') }} - - - - ({{ merchantInfo.mchName }}) + {{ + $t('payment.merchant.channelMerchant.createTitle') + }} diff --git a/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantList.vue b/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantList.vue index 922c00193..675ae098e 100644 --- a/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantList.vue +++ b/apps/daxpay-merchant/src/views/payment/channel-merchant/ChannelMerchantList.vue @@ -12,7 +12,6 @@ ChannelMerchantApi, type ChannelMerchantResult, } from '#/api/payment/global/channel-merchant/channel-merchant.api'; - import { MerchantApi, type MerchantInfo } from '#/api/payment/merchant/merchant.api'; import ChannelLogo from '#/components/channel/ChannelLogo.vue'; import { PermCodes } from '#/constants/perm-codes'; import { productChannelMap, productI18nMap, productNameMap } from '#/enums/payment'; @@ -28,15 +27,10 @@ const { hasPermission } = usePermission(); const loading = ref(false); - // 商户信息加载状态 - const merchantLoading = ref(false); // 切换启用状态按行 loading const enableLoadingMap = ref>({}); const xTable = ref(); const xToolbar = ref(); - // 当前商户号(MerchantApi.get,不走 URL) - const mchNo = ref(''); - const merchantInfo = ref({}); const list = ref([]); const pageConfig = ref({ currentPage: 1, @@ -79,18 +73,6 @@ }); } - /** 加载当前商户信息 */ - async function loadMerchantInfo() { - merchantLoading.value = true; - try { - const { data } = await MerchantApi.get(); - merchantInfo.value = data || {}; - mchNo.value = data?.mchNo || ''; - } finally { - merchantLoading.value = false; - } - } - /** 加载通道商户列表(后端强制当前商户) */ function loadList() { loading.value = true; @@ -166,9 +148,8 @@ }); } - onMounted(async () => { + onMounted(() => { xTable.value?.connectToolbar(xToolbar.value as VxeToolbarInstance); - await loadMerchantInfo(); loadList(); }); @@ -176,19 +157,6 @@ diff --git a/apps/daxpay-merchant/src/views/payment/merchant/code-config/CodePayConfig.vue b/apps/daxpay-merchant/src/views/payment/merchant/code-config/CodePayConfig.vue index de87317be..afbcf8015 100644 --- a/apps/daxpay-merchant/src/views/payment/merchant/code-config/CodePayConfig.vue +++ b/apps/daxpay-merchant/src/views/payment/merchant/code-config/CodePayConfig.vue @@ -52,7 +52,6 @@ const loading = ref(false); const editing = ref(false); const appInfo = ref({}); - const appName = computed(() => appInfo.value.appName || ''); const mchNo = computed(() => appInfo.value.mchNo || ''); const config = ref({}); @@ -472,7 +471,6 @@ {{ $t('menu.payment.merchant.codePayConfig') }} - ({{ appName }}) diff --git a/apps/daxpay-merchant/src/views/payment/merchant/credential/MerchantCredentialConfig.vue b/apps/daxpay-merchant/src/views/payment/merchant/credential/MerchantCredentialConfig.vue index 1507b3ac1..73af33618 100644 --- a/apps/daxpay-merchant/src/views/payment/merchant/credential/MerchantCredentialConfig.vue +++ b/apps/daxpay-merchant/src/views/payment/merchant/credential/MerchantCredentialConfig.vue @@ -13,7 +13,7 @@ type MerchantCredentialResult, } from '#/api/payment/merchant/credential.api'; import { KeyGenApi } from '#/api/payment/merchant/key-gen.api'; - import { MerchantApi, type MerchantInfo } from '#/api/payment/merchant/merchant.api'; + import { MerchantApi } from '#/api/payment/merchant/merchant.api'; import { PermCodes } from '#/constants/perm-codes'; import { useFormEdit } from '#/hooks/useFormEdit'; import { useMessage } from '#/hooks/useMessage'; @@ -32,7 +32,6 @@ const isEditing = ref(false); // 当前商户号(MerchantApi.get) const mchNo = ref(''); - const merchantInfo = ref({}); // 表单数据 const formState = ref({}); // 原始脱敏数据,用于 diffForm 比对 @@ -46,7 +45,6 @@ */ async function loadMerchantInfo() { const { data } = await MerchantApi.get(); - merchantInfo.value = data || {}; mchNo.value = data?.mchNo || ''; } @@ -199,11 +197,8 @@