From 28ed398581c5645d9ec6dd738c0896785af33f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Sat, 11 Jul 2026 16:12:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=B8=9A=E5=8A=A1=E5=91=98=E7=9C=8B?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/promoter/PromoterDetailModal.vue | 8 ++++++++ apps/web-antd/src/views/system/store-input/api/index.ts | 2 ++ apps/web-antd/src/views/system/store-input/audit.vue | 9 +++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/web-antd/src/components/promoter/PromoterDetailModal.vue b/apps/web-antd/src/components/promoter/PromoterDetailModal.vue index 74097cab..e826ec33 100644 --- a/apps/web-antd/src/components/promoter/PromoterDetailModal.vue +++ b/apps/web-antd/src/components/promoter/PromoterDetailModal.vue @@ -18,6 +18,8 @@ type PromoterDetail = { role_name: string; clinic_input_count: number; pharmacy_input_count: number; + clinic_store_count: number; + pharmacy_store_count: number; }; const loading = ref(false); @@ -72,6 +74,12 @@ async function loadDetail(id?: number, code?: string) { {{ detail.pharmacy_input_count ?? 0 }} 家 + + {{ detail.clinic_store_count ?? 0 }} 家 + + + {{ detail.pharmacy_store_count ?? 0 }} 家 + diff --git a/apps/web-antd/src/views/system/store-input/api/index.ts b/apps/web-antd/src/views/system/store-input/api/index.ts index 4fa1e0f3..f4449cca 100644 --- a/apps/web-antd/src/views/system/store-input/api/index.ts +++ b/apps/web-antd/src/views/system/store-input/api/index.ts @@ -60,6 +60,8 @@ export async function getPromoterDetailApi(params: { id?: number; code?: string role_name: string; clinic_input_count: number; pharmacy_input_count: number; + clinic_store_count: number; + pharmacy_store_count: number; }>(`${prefix}promoter-detail`, { params }); } diff --git a/apps/web-antd/src/views/system/store-input/audit.vue b/apps/web-antd/src/views/system/store-input/audit.vue index fd724241..593d0da8 100644 --- a/apps/web-antd/src/views/system/store-input/audit.vue +++ b/apps/web-antd/src/views/system/store-input/audit.vue @@ -22,12 +22,13 @@ import { normalizeInputUser, resolveAvatarUrl, } from './utils/inputUser'; +import { isPlatformSuperAdmin } from '#/views/system/admin/_shared/platform-admin-role'; const userStore = useUserStore(); -// 判断是否为平台管理员(user_type === 2) -const isPlatformAdmin = computed(() => { - return userStore?.userInfo?.roles?.user_type === 2; +// 仅超管/系统管理员可审核门店录入 +const canAuditStoreInput = computed(() => { + return isPlatformSuperAdmin(userStore?.userInfo); }); const hasTopTableDropDownActions = ref(false); @@ -157,7 +158,7 @@ const getStatusText = (status: number) => { type: 'link', icon: 'uil:check', size: 'small', - ifShow: row.status === 0 && isPlatformAdmin, + ifShow: row.status === 0 && canAuditStoreInput, onClick: showAudit.bind(null, row), }, ]"