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(()=>{