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
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
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled

This commit is contained in:
李琦
2026-07-11 18:34:29 +08:00
parent 464159121c
commit a524982b87
4 changed files with 22 additions and 6 deletions

View File

@@ -32,6 +32,8 @@ type PromoterDetail = {
clinic_store_count: number;
pharmacy_store_count: number;
store_total_count: number;
pending_clinic_count: number;
pending_pharmacy_count: number;
store_list: PromoterStoreItem[];
total_valid_amount: string;
month_valid_amount: string;
@@ -137,11 +139,17 @@ async function loadDetail(id?: number, code?: string) {
<Descriptions.Item label="手机号">
<SensitiveText :record="detail" field="phone" />
</Descriptions.Item>
<Descriptions.Item label="绑定诊所">
<Descriptions.Item label="绑定诊所(含待审核)">
{{ detail.clinic_store_count ?? 0 }}
<span v-if="detail.pending_clinic_count" class="promoter-detail__pending">
待审核 {{ detail.pending_clinic_count }}
</span>
</Descriptions.Item>
<Descriptions.Item label="绑定药店">
<Descriptions.Item label="绑定药店(含待审核)">
{{ detail.pharmacy_store_count ?? 0 }}
<span v-if="detail.pending_pharmacy_count" class="promoter-detail__pending">
待审核 {{ detail.pending_pharmacy_count }}
</span>
</Descriptions.Item>
<Descriptions.Item label="绑定门店总营业额">
{{ formatMoney(detail.total_valid_amount) }}
@@ -214,6 +222,12 @@ async function loadDetail(id?: number, code?: string) {
margin-top: 8px;
}
.promoter-detail__pending {
margin-left: 4px;
font-size: 12px;
color: #fa8c16;
}
.promoter-detail__section-title {
margin: 16px 0 8px;
font-size: 14px;

View File

@@ -65,7 +65,7 @@ export type SalespersonDashboardResult = {
input_total: number;
clinic_input_count: number;
pharmacy_input_count: number;
approved_count: number;
pending_count: number;
valid_amount_total: string;
prev_input_total: number;
prev_valid_amount_total: string;

View File

@@ -128,11 +128,11 @@ const statItems = computed<DashboardStatItem[]>(() => {
decorationIcon: SvgDownloadIcon,
},
{
title: '审核通过',
value: summary.approved_count,
title: '审核',
value: summary.pending_count,
valueType: 'count',
footerLabel: '当前周期',
footerValue: summary.approved_count,
footerValue: summary.pending_count,
decorationIcon: SvgBellIcon,
},
{

View File

@@ -71,6 +71,8 @@ export async function getPromoterDetailApi(params: { id?: number; code?: string
clinic_store_count: number;
pharmacy_store_count: number;
store_total_count: number;
pending_clinic_count: number;
pending_pharmacy_count: number;
store_list: PromoterStoreListItem[];
total_valid_amount: string;
month_valid_amount: string;