<el-button type="" @click="exportExecl">导出</el-button>
const exportExecl = () => {
invoice_export(formInline).then((res: any) => {
let a: any = document.createElement("a");
a.download = '开票订单.xlsx';
const blob = new Blob([res], {
type: 'application/octet-stream'
})
a.href = window.URL.createObjectURL(blob)
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
window.URL.revokeObjectURL(a) // 释放blob对象
}).catch((err: any) => {
console.log(err)
})
}