|
@@ -120,7 +120,7 @@
|
|
|
<div class="table-operator">
|
|
|
<!-- <a-button type="primary" @click.stop="addShipDet" icon="plus">新增</a-button> -->
|
|
|
<a-button type="primary" @click.stop="referOrderDataOpen" icon="plus">参照订单数据</a-button>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('发运明细')">导出</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('箱单数据')">箱单数据导出</a-button>
|
|
|
<a-button type="primary" icon="check" @click="submit">批量提交</a-button>
|
|
|
<a-button type="primary" icon="close" @click="cancelSubmit">批量取消提交</a-button>
|
|
|
</div>
|
|
@@ -716,13 +716,13 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
|
- window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xls')
|
|
|
+ window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xlsx')
|
|
|
} else {
|
|
|
let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
|
|
let link = document.createElement('a')
|
|
|
link.style.display = 'none'
|
|
|
link.href = url
|
|
|
- link.setAttribute('download', fileName + '.xls')
|
|
|
+ link.setAttribute('download', fileName + '.xlsx')
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
document.body.removeChild(link) // 下载完成移除元素
|