zth
sunzehua 3 weeks ago
parent 0877cda412
commit 836c6e2f88

@ -828,7 +828,13 @@ function openHand() {
} }
function lookInvoice() { function lookInvoice() {
loading.value = true 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.succeeded) {
if (res.data[0].pdfUrl) { if (res.data[0].pdfUrl) {
window.open(res.data[0].pdfUrl) window.open(res.data[0].pdfUrl)

Loading…
Cancel
Save