From a524982b875338733a9b045b84ecbe764686f43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Sat, 11 Jul 2026 18:34:29 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=B8=9A=E5=8A=A1=E5=91=98=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E7=BB=B4=E5=BA=A6=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../promoter/PromoterDetailModal.vue | 18 ++++++++++++++++-- .../system/salesperson-dashboard/api/index.ts | 2 +- .../system/salesperson-dashboard/index.vue | 6 +++--- .../src/views/system/store-input/api/index.ts | 2 ++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/apps/web-antd/src/components/promoter/PromoterDetailModal.vue b/apps/web-antd/src/components/promoter/PromoterDetailModal.vue index f04b899d..1f008614 100644 --- a/apps/web-antd/src/components/promoter/PromoterDetailModal.vue +++ b/apps/web-antd/src/components/promoter/PromoterDetailModal.vue @@ -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) { - + {{ detail.clinic_store_count ?? 0 }} 家 + + (待审核 {{ detail.pending_clinic_count }}) + - + {{ detail.pharmacy_store_count ?? 0 }} 家 + + (待审核 {{ detail.pending_pharmacy_count }}) + {{ 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; diff --git a/apps/web-antd/src/views/system/salesperson-dashboard/api/index.ts b/apps/web-antd/src/views/system/salesperson-dashboard/api/index.ts index 5c8a5cad..90d4bb5d 100644 --- a/apps/web-antd/src/views/system/salesperson-dashboard/api/index.ts +++ b/apps/web-antd/src/views/system/salesperson-dashboard/api/index.ts @@ -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; diff --git a/apps/web-antd/src/views/system/salesperson-dashboard/index.vue b/apps/web-antd/src/views/system/salesperson-dashboard/index.vue index 2a568fa4..ae21c04e 100644 --- a/apps/web-antd/src/views/system/salesperson-dashboard/index.vue +++ b/apps/web-antd/src/views/system/salesperson-dashboard/index.vue @@ -128,11 +128,11 @@ const statItems = computed(() => { 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, }, { 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 9e2cc069..77fb2180 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 @@ -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;