|
@@ -15,7 +15,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>
|
|
@@ -83,7 +83,8 @@ export default {
|
|
|
data: [],
|
|
|
loading: false,
|
|
|
confirmLoading: false,
|
|
|
- fabRemQuaModVis: false
|
|
|
+ fabRemQuaModVis: false,
|
|
|
+ planNum:'',
|
|
|
}
|
|
|
},
|
|
|
// 接收父组件 方法
|
|
@@ -91,6 +92,10 @@ export default {
|
|
|
father: {
|
|
|
type: Function,
|
|
|
default: null
|
|
|
+ },
|
|
|
+ planNum:{
|
|
|
+ type: String,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -113,7 +118,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')
|