소스 검색

成本分配列表/计划单通机变-导出-增加导出中状态

jbb 2 년 전
부모
커밋
6ace6924ec
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/cost-allocation-total/inancialReconciliation.vue
  2. 4 0
      src/views/cost-allocation-total/list.vue

+ 4 - 0
src/views/cost-allocation-total/inancialReconciliation.vue

@@ -123,6 +123,7 @@
     </a-card>
 
     <!-- table区域  -->
+    <a-spin :spinning="loading">
     <a-card :bordered="false" style=" marginTop:10px;">
       <div class="table-operator">
         <a-button type="primary" @click="exportList('计划单统计表')" icon="plus">导出</a-button>
@@ -160,6 +161,7 @@
       </a-table>
       
     </a-card>
+  </a-spin>
 
     <!-- 详情 大抽屉 -->
     <!-- <costDetail-drawer ref="costDetailDrawer" :fatherList="getCostList" @ok="modalFormOk"></costDetail-drawer> -->
@@ -513,8 +515,10 @@ export default {
     //导出
     exportList(fileName){
       var params = this.queryParam
+      this.loading = true
       downFile('/orderData/syCostLossReview/planExportXls', params).then(data => {
         console.log('888')
+      this.loading = false
         if (!data) {
           this.$message.warning('文件下载失败')
           return

+ 4 - 0
src/views/cost-allocation-total/list.vue

@@ -90,6 +90,7 @@
     </a-card>
 
     <!-- table区域  -->
+    <a-spin :spinning="loading">
     <a-card :bordered="false" style=" marginTop:10px;">
       <div class="table-operator">
         <a-button type="primary" @click="exportList('成本分配列表')" icon="plus">导出</a-button>
@@ -122,6 +123,7 @@
         </span>
       </a-table>
     </a-card>
+  </a-spin>
     <ChistoryModal ref="ChistoryModal"></ChistoryModal>
     <!-- 详情 大抽屉 -->
     <costDetail-drawer ref="costDetailDrawer"   @close="getCostList"></costDetail-drawer>
@@ -311,7 +313,9 @@ export default {
     //导出
     exportList(fileName){
       var params = this.queryParam
+      this.loading = true
       downFile('/orderData/syCostLossReview/exportXls', params).then(data => {
+      this.loading = false
         console.log('888')
         if (!data) {
           this.$message.warning('文件下载失败')