// 下载
async downLoad() {
let obj = {
data: {
...this.searchForm
},
page: {
current: this.current,
size: this.size,
},
tableHead: this.HeadData
}
await axios({
method: "POST",
url: this.nhOmsUrl + "/order/report/sales/statisticsDownload",
data: obj,
responseType: 'blob', //返回是个文件,
contentType: "application/json;charset=utf-8"
}).then(response => {
downloadExcel(response) //then直接下载,方法在下边
})
}