From 836c6e2f889da560158a18d73992e99038dda9a1 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Fri, 8 Nov 2024 14:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/operation/invoiceIssue/detail/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/operation/invoiceIssue/detail/index.vue b/src/views/operation/invoiceIssue/detail/index.vue index 6360aaa0..81798219 100644 --- a/src/views/operation/invoiceIssue/detail/index.vue +++ b/src/views/operation/invoiceIssue/detail/index.vue @@ -828,7 +828,13 @@ function openHand() { } function lookInvoice() { loading.value = true - ApiQuery({ id: route.query.id }).then(res => { + let id = 0 + if(form.value.isSetRed){ + id = form.value.redId + } else { + id = route.query.id + } + ApiQuery({ id: id }).then(res => { if (res.succeeded) { if (res.data[0].pdfUrl) { window.open(res.data[0].pdfUrl)