From 43bfaf430ff2e3fd05ab24c7aac9089916fb49db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B2=A9=E4=BB=9488?= <>
Date: Thu, 30 Apr 2026 09:23:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/src/pages/appointment/statistics.vue | 80 +++++++++++++++++++++-
1 file changed, 77 insertions(+), 3 deletions(-)
diff --git a/admin/src/pages/appointment/statistics.vue b/admin/src/pages/appointment/statistics.vue
index 5700590..daeb733 100644
--- a/admin/src/pages/appointment/statistics.vue
+++ b/admin/src/pages/appointment/statistics.vue
@@ -66,6 +66,45 @@ const toggleUnmatched = (idx) => {
}
const fmt = (val) => Number(val).toFixed(2)
+
+const printRef = ref(null)
+
+const handlePrint = () => {
+ const el = printRef.value
+ if (!el) return
+ const win = window.open('', '_blank')
+ win.document.write(`
+
+
+ 收费统计
+
+
+ ${el.innerHTML}
+
+ `)
+ win.document.close()
+ win.focus()
+ win.print()
+ win.close()
+}
@@ -90,7 +129,14 @@ const fmt = (val) => Number(val).toFixed(2)
-
+
+
+ 打 印
+
+
+
+
+
@@ -120,9 +166,13 @@ const fmt = (val) => Number(val).toFixed(2)
合计(大写): {{ total_chinese }}
-
+
- 0 && toggleUnmatched(idx)">
@@ -139,6 +189,7 @@ const fmt = (val) => Number(val).toFixed(2)
+
@@ -183,6 +234,19 @@ const fmt = (val) => Number(val).toFixed(2)
border-bottom: none;
}
+.category-grid-single {
+ grid-template-columns: 1fr;
+}
+
+.category-grid-single .category-item:nth-child(odd) {
+ border-right: none;
+}
+
+.last-full {
+ grid-column: 1 / -1;
+ border-right: none !important;
+}
+
.category-item {
display: flex;
justify-content: space-between;
@@ -235,6 +299,16 @@ const fmt = (val) => Number(val).toFixed(2)
font-weight: bold;
color: #18a058;
}
+
+.print-bar {
+ display: flex;
+ justify-content: flex-end;
+ margin-bottom: 8px;
+}
+
+.print-header {
+ display: none;
+}
{"name":"appointment-stats","meta":{"title":"收费统计"}}