|
@@ -120,7 +120,8 @@ export default {
|
|
|
console.log('需导出的fileName:', fileName)
|
|
|
const params = {
|
|
|
planNum:this.planNum,
|
|
|
- syTransfer :this.data
|
|
|
+ syTransfer :this.data,
|
|
|
+ sheetName:"面料转入"
|
|
|
}
|
|
|
console.log('导出参数', params)
|
|
|
// var json = JSON.stringify(params)
|
|
@@ -132,7 +133,7 @@ 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' }),this.planNum+'-'+fileName + '.xls')
|
|
|
} else {
|
|
|
let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
|
|
let link = document.createElement('a')
|