From 807b67711e06433428b58317e9c7e875095e55f1 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 24 Jun 2025 09:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wallet/wallet-recharge-apply/index.vue | 152 +++++++++++++----- 1 file changed, 111 insertions(+), 41 deletions(-) diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index 97e8d47..6af6d30 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -1,8 +1,7 @@ - + - + - + + + + @@ -161,6 +215,7 @@ const { push } = useRouter() // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) +const PrintDialog = defineAsyncComponent(() => import("./print-dialog.vue")) // 定义查询字典 const { wallet_biz_recharge, wallet_type, check_status } = useDict("wallet_biz_recharge", "wallet_type", "check_status") // store @@ -179,6 +234,15 @@ const multiple = ref(true) const activeName = ref() const tabItems = ref([{}]) const processDrawerRef = ref() +const printDialogVisible = ref(false) +const receiptData = ref({ + receiptNo: "", + date: "", + payer: "", + content: "", + amount: "", + amountInWords: "", +}) const state: BasicTableProps = reactive({ queryForm: {}, @@ -294,6 +358,12 @@ const deal = (row: any) => { const taskSubmitEvent = () => { getDataList() } + +// 预览发票 +const previewInvoice = (row: any) => { + // receiptData.value = row + printDialogVisible.value = true +}