浏览代码

预托书打印文件使用预托书号命名

jbb 2 年之前
父节点
当前提交
0a037f5b41
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/pre-book/preBookList.vue

+ 2 - 2
src/views/pre-book/preBookList.vue

@@ -431,13 +431,13 @@ export default {
           return
           return
         }
         }
         if (typeof window.navigator.msSaveBlob !== 'undefined') {
         if (typeof window.navigator.msSaveBlob !== 'undefined') {
-          window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), item + '.xlsx')
+          window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }),  record.depositaryReceiptN + '.xlsx')
         } else {
         } else {
           let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
           let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
           let link = document.createElement('a')
           let link = document.createElement('a')
           link.style.display = 'none'
           link.style.display = 'none'
           link.href = url
           link.href = url
-          link.setAttribute('download',  '预托书数据.xlsx')
+          link.setAttribute('download',  record.depositaryReceiptNo+'.xlsx')
           document.body.appendChild(link)
           document.body.appendChild(link)
           link.click()
           link.click()
           document.body.removeChild(link) // 下载完成移除元素
           document.body.removeChild(link) // 下载完成移除元素