Commit 3e58b982 by wangql

下载发货单问题

1 parent 0fe0755f
...@@ -476,8 +476,6 @@ export default { ...@@ -476,8 +476,6 @@ export default {
downloadInvoice: function(row){ downloadInvoice: function(row){
console.log(row.urlDispatchBills) console.log(row.urlDispatchBills)
// window.location.href = row.urlDispatchBills
// let a = document.createElement('a') // let a = document.createElement('a')
// a.href = row.urlDispatchBills // 这里的请求方式为get,如果需要认证,接口上需要带上token // a.href = row.urlDispatchBills // 这里的请求方式为get,如果需要认证,接口上需要带上token
// a.click() // a.click()
...@@ -502,11 +500,13 @@ export default { ...@@ -502,11 +500,13 @@ export default {
}; };
image.src = row.urlDispatchBills; image.src = row.urlDispatchBills;
}else{ }else{
const params = {'fileName':'发货单'} // const params = {'fileName':'发货单'}
params.url = row.urlDispatchBills // params.url = row.urlDispatchBills
params.method = 'get' // params.method = 'get'
params.data = {} // params.data = {}
exportExcel(params) // 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!