From 7dd9aba7d1c2d6cb4a9a8ccbdb7f834cf81f6811 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Sat, 2 Nov 2024 19:46:07 +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/operation/invoiceIssue/detail/index.vue b/src/views/operation/invoiceIssue/detail/index.vue index 23352098..742bd1bb 100644 --- a/src/views/operation/invoiceIssue/detail/index.vue +++ b/src/views/operation/invoiceIssue/detail/index.vue @@ -820,7 +820,11 @@ function lookInvoice(){ loading.value = true ApiQuery({id:route.query.id}).then(res=>{ if(res.succeeded){ - window.open(res.data.pdfUrl) + if(res.data[0].pdfUrl){ + window.open(res.data.pdfUrl) + } else { + createMessage.warning('开票中') + } } loading.value = false }).catch(()=>{