Ver Fonte

明细显示判断

lichao há 3 anos atrás
pai
commit
9dd21d0c5a
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      src/views/Warehousing/inStock/AddOrUpdate.vue

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

@@ -1375,6 +1375,7 @@
             />
             <el-table-column
                 v-for="(item, index) in getRowList"
+                v-if="item.show"
                 :key="index"
                 :label="item.name"
                 :width="item.width"
@@ -6871,6 +6872,15 @@ export default {
     });
     this.getConfigKey("show.data_elabel").then((response) => {
       this.showDataElabel = response.msg;
+      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);
+        })
+      }
     });
     this.getConfigKey("bigData.token").then((response) => {
       this.bigDataToken = response.msg;