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),
},
]"