Commit 3e58b982 by wangql

下载发货单问题

1 parent 0fe0755f
......@@ -476,8 +476,6 @@ export default {
downloadInvoice: function(row){
console.log(row.urlDispatchBills)
// window.location.href = row.urlDispatchBills
// let a = document.createElement('a')
// a.href = row.urlDispatchBills // 这里的请求方式为get,如果需要认证,接口上需要带上token
// a.click()
......@@ -502,11 +500,13 @@ export default {
};
image.src = row.urlDispatchBills;
}else{
const params = {'fileName':'发货单'}
params.url = row.urlDispatchBills
params.method = 'get'
params.data = {}
exportExcel(params)
// const params = {'fileName':'发货单'}
// params.url = row.urlDispatchBills
// params.method = 'get'
// params.data = {}
// exportExcel(params)
window.location.href = row.urlDispatchBills
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!