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() +}