1. 业务员看板
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
李琦
2026-07-11 16:12:42 +08:00
parent 80b612a913
commit 28ed398581
3 changed files with 15 additions and 4 deletions

View File

@@ -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) {
<Descriptions.Item label="录入药店">
{{ detail.pharmacy_input_count ?? 0 }}
</Descriptions.Item>
<Descriptions.Item label="正式诊所">
{{ detail.clinic_store_count ?? 0 }}
</Descriptions.Item>
<Descriptions.Item label="正式药店">
{{ detail.pharmacy_store_count ?? 0 }}
</Descriptions.Item>
</Descriptions>
</div>
</Spin>

View File

@@ -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 });
}

View File

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