|
@@ -19,7 +19,7 @@
|
|
|
<a-row style="marginTop:20px;">
|
|
|
<a-col :md="24" :sm="12">
|
|
|
<span style="float: right;" class="table-operator">
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('成本分配-辅料-转入数量')">导出</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('辅料转入')">导出</a-button>
|
|
|
<!-- <a-button type="primary" @click="print" icon="printer" style="margin:0 10px;">打印</a-button> -->
|
|
|
<a-button type="primary" @click="cancel" icon="rollback">取消</a-button>
|
|
|
</span>
|
|
@@ -97,6 +97,10 @@ export default {
|
|
|
father: {
|
|
|
type: Function,
|
|
|
default: null
|
|
|
+ },
|
|
|
+ planNum:{
|
|
|
+ type: String,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -117,7 +121,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 + '.xlsx')
|
|
|
} else {
|
|
|
let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
|
|
let link = document.createElement('a')
|