Browse Source

成本分配-辅料转入-导出

jbb 1 year ago
parent
commit
7de12195cb
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/cost-allocation-total/modal/ingInQuaModal.vue

+ 6 - 2
src/views/cost-allocation-total/modal/ingInQuaModal.vue

@@ -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')