Browse Source

fix: 新增入库动态字段不显示问题

liujt 3 days ago
parent
commit
a5de3b3605
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/views/warehouseManagement/stockManagement/add.vue

+ 5 - 4
src/views/warehouseManagement/stockManagement/add.vue

@@ -1038,7 +1038,7 @@
     },
     data() {
       return {
-        newColumns: [], // 动态表头
+        newDynamicColumns: [], // 动态表头
         sceneState,
         saveLoading: false,
         dateVisible: false,
@@ -1138,7 +1138,7 @@
             width: 100,
             align: 'center'
           },
-          ...this.newColumns.map((item) => {
+          ...this.newDynamicColumns.map((item) => {
             return {
               label: item.label,
               prop: item.prop,
@@ -1975,7 +1975,7 @@
             .filter((item) => item.label !== '包装规格');
 
           console.log(newRes, 'newRes');
-          this.newColumns = [...newRes];
+          this.newDynamicColumns = [...newRes];
         });
       },
       // 初始化当前用户信息
@@ -2815,7 +2815,8 @@
             unitPrice: item.unitPrice, // 单价
             purpose: '', // 用途
             isUnpack: item.isUnpack, // 是否允许拆包
-            categoryLevelPathIdParent: item.categoryLevelPathIdParent
+            categoryLevelPathIdParent: item.categoryLevelPathIdParent,
+            extField: item.extField,
           };
         });
         this.productList = this.productList.concat(productList);