From fbe0ffc6ac21597fca32e044f26f3e2e66bb8184 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 25 Jun 2025 17:32:29 +0800 Subject: [PATCH] --- src/views/wallet/wallet-recharge-apply/index.vue | 2 +- src/views/wallet/wallet-recharge-invoice/index.vue | 5 +++-- .../wallet/wallet-recharge-invoice/print-dialog.vue | 10 +++------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index 253c934..fdefcf8 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -185,7 +185,7 @@ import("./form.vue")) @@ -162,7 +162,8 @@ const handleDelete = async (ids: string[]) => { const previewInvoice = async (row: any) => { try { getReceiptDataLoading.value = true - const res = await getInvoice({ id: row.id }) + if (!row.id) return useMessage().error("发票ID不存在") + const res = await getObj(row.id) if (res.code == 0 && printDialogRef.value) return printDialogRef.value.openDialog(res.data, res.data.id) return useMessage().error(res.data.msg || "获取发票信息失败") } catch (error: any) { diff --git a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue index c7ed497..3345b97 100644 --- a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue +++ b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue @@ -99,7 +99,6 @@ @@ -232,9 +231,6 @@ const saveReceipt = async () => { } } -// 发票盖章 -const stampReceipt = () => {} - // 打印 const handlePrint = async () => { if (receiptRef.value) { @@ -269,15 +265,15 @@ defineExpose({ } .stamping { - animation: stamp-in 0.8s; + animation: stamp-in 1s; } @keyframes stamp-in { 0% { transform: translateY(80px) scale(1.5) rotate(0); opacity: 0.2; } - 60% { - transform: translateY(10px) scale(1.3) rotate(0); + 80% { + transform: translateY(10px) scale(1.4) rotate(0); opacity: 1; } 100% {