Browse Source

成本分配表-辅料余下-导出

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

+ 7 - 2
src/views/cost-allocation-total/modal/ingRemQuaModal.vue

@@ -79,7 +79,8 @@ export default {
       data: [],
       loading: false,
       confirmLoading: false,
-      ingRemQuaModVis: false
+      ingRemQuaModVis: false,
+      planNum:""
     }
   },
   // 接收父组件 方法
@@ -87,6 +88,10 @@ export default {
     father: {
       type: Function,
       default: null
+    },
+    planNum:{
+      type: String,
+      default: null
     }
   },
   created() {},
@@ -107,7 +112,7 @@ export default {
           return
         }
         if (typeof window.navigator.msSaveBlob !== 'undefined') {
-          window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), this.planNum+'-'+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')