Browse Source

修改bug

lichao 3 years ago
parent
commit
cef765fbde
1 changed files with 22 additions and 0 deletions
  1. 22 0
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 22 - 0
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -7279,6 +7279,17 @@ export default {
           this.getRowList = this.$options
             .data()
             .tableDate.filter((e) => e.checked == 0)
+          this.$nextTick(() => {
+            if (this.showDataElabel === '0') {
+              this.getRowList.forEach(item => {
+                this.$set(item, 'show', true)
+              })
+            } else {
+              this.getRowList.forEach(item => {
+                this.$set(item, 'show', item.label == 'fElabel' ? false : true)
+              })
+            }
+          })
         }
       })
     },
@@ -7294,6 +7305,17 @@ export default {
         if (res.code == 200) {
           this.showSetting = false
           this.getRowList = this.setRowList.filter((e) => e.checked == 0)
+          this.$nextTick(() => {
+            if (this.showDataElabel === '0') {
+              this.getRowList.forEach(item => {
+                this.$set(item, 'show', true)
+              })
+            } else {
+              this.getRowList.forEach(item => {
+                this.$set(item, 'show', item.label == 'fElabel' ? false : true)
+              })
+            }
+          })
         }
       })
     },