downLoadFile(){
let param='入库申请单模板'
this.$http.get('/entryApplication/downloadFile?name='+param,{responseType:'blob'}).then(res=>{
const blob = new Blob([res.data]);
const fileName = '导出入库申请模板.xlsx';
if (window.navigator.msSaveBlob) {
console.log('===')
try {
window.navigator.msSaveBlob(blob, fileName);
} catch (e) {
console.log(e);
}
} else {
console.log('-----')
const elink = document.createElement('a');
elink.download = fileName;
elink.style.display = 'none';
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href);
document.body.removeChild(elink);
}
})
}