|
|
@ -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)
|
|
|
|