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
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:
@@ -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>
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
]"
|
||||
|
||||
Reference in New Issue
Block a user