Sfoglia il codice sorgente

fix(仓库管理): 在物料列表查询中添加isEnabled参数

liujt 6 mesi fa
parent
commit
50ca92fe54

+ 4 - 1
src/views/warehouseManagement/components/AssetsDialog copy 2.vue

@@ -530,7 +530,10 @@
           this.total = data.count;
         } else if (this.dimension == 4) {
           // 物料维度
-          const data = await storageApi.getMaterialList(this.searchForm);
+          const data = await storageApi.getMaterialList({
+            ...this.searchForm,
+            isEnabled: 1
+          });
           this.tableData = data.list;
           this.total = data.count;
         } else {

+ 4 - 1
src/views/warehouseManagement/components/AssetsDialog.vue

@@ -585,7 +585,10 @@
           this.total = data.count;
         } else if (this.dimension == 4) {
           // 物料维度
-          const data = await storageApi.getMaterialList(this.searchForm);
+          const data = await storageApi.getMaterialList({
+            ...this.searchForm,
+            isEnabled: 1
+          });
           this.tableData = data.list;
           this.total = data.count;
         } else {

+ 2 - 1
src/views/warehouseManagement/stockLedger/components/item-list.vue

@@ -806,7 +806,8 @@
           const data = storageApi.getMaterialList({
             ...params,
             pageNum: page,
-            size: limit
+            size: limit,
+            isEnabled: 1
           });
           return data;
         } else {