黄梓星 1 rok pred
rodič
commit
7cdfdc8ed2

+ 7 - 1
src/views/purchase/DemandSummary/add.vue

@@ -10,7 +10,8 @@
         <el-button type="primary" size="mini" v-if="lineDisable" @click="reloadBatch">重取批量</el-button>
       </div>
 
-      <el-table 
+      <el-table
+          v-loading="loading"
           :data="tableList" 
           fit
           :cell-style="{ borderColor: '#c0c0c0' }"
@@ -170,6 +171,7 @@ export default {
   },
   data() {
     return{
+      loading: true,
       hangStatus(row) {
         switch (row.status) {
           case '0':
@@ -261,6 +263,10 @@ export default {
         if (res.code === 200) {
           this.tableList = res.data
         }
+      }).then(() => {
+        this.loading = false
+      }).catch(err => {
+        this.loading = false
       })
     },
     editLine() {

+ 9 - 1
src/views/purchase/DemandSummary/index.vue

@@ -219,7 +219,8 @@
 
           <!-- <el-button type="primary" size="mini">转请购</el-button> -->
         </div>
-        <el-table 
+        <el-table
+          v-loading="loading"
           :data="tableList" 
           fit
           :cell-style="{ borderColor: '#c0c0c0' }"
@@ -371,6 +372,7 @@ export default {
   },
   data() {
     return {
+      loading: true,
       showColumn: {},
       arrs:[],
       tols: {
@@ -571,6 +573,12 @@ export default {
           this.arrs = arrs
           console.log('获取表头数据', arrs)
         }
+      }).then(() => {
+        // 合计不显示重绘
+        this.$refs.table.doLayout()
+        this.loading = false
+      }).catch(err => {
+        this.loading = false
       })
     },
     handleSelectionChange(selection) {

+ 6 - 0
src/views/purchase/PurchaseDemandList/add.vue

@@ -167,6 +167,7 @@
       </div>
 
       <el-table
+          v-loading="loading"
           v-myscroll
           :data="basicForm.puDemandItemList.slice(0, over)"
           fit
@@ -538,6 +539,7 @@ export default {
   },
   data() {
     return {
+      loading: true,
       // 不能直接改变props传来的值
       sonPageStu: this.pageStu,
       sonDisable: this.disable,
@@ -999,6 +1001,10 @@ export default {
                  this.isBDXQ = false
               }
             }
+          }).then(() => {
+            this.loading = false
+          }).catch(err => {
+            this.loading = false
           })
         }
       })

+ 7 - 1
src/views/purchase/PurchaseDemandList/index.vue

@@ -159,7 +159,8 @@
           <!-- <el-button type="primary" size="mini">打印</el-button> -->
         </div>
         
-        <el-table 
+        <el-table
+          v-loading="loading"
           :data="tableList" 
           fit
           :cell-style="{ borderColor: '#c0c0c0' }"
@@ -310,6 +311,7 @@ export default {
   dicts: ['sys_processing_mode', 'sys_status', 'sys_bill_source', 'sys_business', 'sys_reserve_ratio', 'sys_period_unit', 'sys_price_type'],
   data() {
     return {
+      loading: true,
       // 导入参数
       upload: {
         // 是否显示弹出层(导入)
@@ -457,6 +459,10 @@ export default {
           this.tableList = res.rows
           this.total = res.total
         }
+      }).then(() => {
+        this.loading = false
+      }).catch(err => {
+        this.loading = false
       })
     },
     handleSelectionChange(selection) {

+ 7 - 1
src/views/purchase/transferOrder/add.vue

@@ -285,6 +285,7 @@
             </div>
             
             <el-table
+              v-loading="loading"
               :data="materialInfo"
               fit
               border
@@ -1423,6 +1424,7 @@ export default {
   },
   data() {
     return {
+      loading: true,
       // 不能直接改变props传来的值
       sonPageStu: this.pageStu,
       sonDisable: this.disable,
@@ -1764,7 +1766,11 @@ export default {
           // 控制先选调出库存组织和调入库存组织再选调出部门和调入调出仓库
           this.controlCk();
         }
-      });
+      }).then(() => {
+        this.loading = false
+      }).catch(err => {
+        this.loading = false
+      })
     },
     // 回显参照框
     reBackRefer(type, id, title) {

+ 8 - 0
src/views/purchase/transferOrder/index.vue

@@ -69,6 +69,7 @@
         </div>
 
         <el-table 
+          v-loading="loading"
           :data="tableList" 
           fit
           :cell-style="{ borderColor: '#c0c0c0' }"
@@ -336,6 +337,7 @@ export default {
   },
   data() {
     return {
+      loading: true,
       expanded: false,
       // 页面配置
       isList: true,
@@ -460,6 +462,12 @@ export default {
           this.total = res.total
           this.materialInfo = res.rows[0].stAllotMaterialList
         }
+      }).then(() => {
+        // 合计不显示重绘
+        this.$refs.multipleTable.doLayout()
+        this.loading = false
+      }).catch(err => {
+        this.loading = false
       })
     },
     addOrder() {