|
|
@@ -54,7 +54,7 @@
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator">
|
|
|
-
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls1('发票信息表')">导出</a-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
@@ -155,7 +155,7 @@
|
|
|
],
|
|
|
url: {
|
|
|
list: "/hwuser/hwUser/haiNanInfolist",
|
|
|
- exportXlsUrl: "/hwuser/hwUser/exportXls",
|
|
|
+ exportXlsUrl: "/hwuser/hwUser/exportXlsHainan",
|
|
|
},
|
|
|
dictOptions:{
|
|
|
}
|
|
|
@@ -238,7 +238,29 @@
|
|
|
this.$refs.modalTaxPaymentForm.edit(record)
|
|
|
this.$refs.modalTaxPaymentForm.title = '完税明细'
|
|
|
this.$refs.modalTaxPaymentForm.disableSubmit = false
|
|
|
- }
|
|
|
+ },
|
|
|
+ handleExportXls1(){
|
|
|
+ let param = this.getQueryParams()//查询条件
|
|
|
+ downFile(this.url.exportXlsUrl,param).then((data)=>{
|
|
|
+ if (!data) {
|
|
|
+ this.$message.warning("文件下载失败")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
|
+ window.navigator.msSaveBlob(new Blob([data]), this.description+'.xls')
|
|
|
+ }else{
|
|
|
+ let url = window.URL.createObjectURL(new Blob([data]))
|
|
|
+ let link = document.createElement('a')
|
|
|
+ link.style.display = 'none'
|
|
|
+ link.href = url
|
|
|
+ link.setAttribute('download', this.description+'.xls')
|
|
|
+ document.body.appendChild(link)
|
|
|
+ link.click()
|
|
|
+ document.body.removeChild(link); //下载完成移除元素
|
|
|
+ window.URL.revokeObjectURL(url); //释放掉blob对象
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
}
|