Просмотр исходного кода

fix(仓库管理): 统一物品查询接口的启用状态参数

liujt 6 месяцев назад
Родитель
Сommit
0fcb9df914

+ 1 - 1
src/api/classifyManage/itemInformation.js

@@ -2,7 +2,7 @@ import request from '@/utils/request';
 // 物品信息列表
 export async function getList(data) {
   const res = await request.get(
-    `/main/category/getList?categoryLevelId=${data.categoryLevelId}&pageNum=${data.pageNum}&size=${data.size}&searchKey=${data.searchKey}`
+    `/main/category/getList?categoryLevelId=${data.categoryLevelId}&pageNum=${data.pageNum}&size=${data.size}&searchKey=${data.searchKey}&isEnabled=1`
   );
   if (res.data.code == 0) {
     return res.data.data;

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

@@ -517,7 +517,10 @@
         this.dimension = e;
         if (this.dimension == 1) {
           // 物品维度
-          const data = await storageApi.getProductList(this.searchForm);
+          const data = await storageApi.getProductList({
+            ...this.searchForm,
+            isEnabled: 1
+          });
           this.tableData = data.list;
           this.total = data.count;
         } else if (this.dimension == 2) {
@@ -532,7 +535,6 @@
           // 物料维度
           const data = await storageApi.getMaterialList({
             ...this.searchForm,
-            isEnabled: 1
           });
           this.tableData = data.list;
           this.total = data.count;

+ 5 - 3
src/views/warehouseManagement/components/AssetsDialog.vue

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

+ 2 - 1
src/views/warehouseManagement/stockManagement/components/basicInformation.vue

@@ -326,7 +326,8 @@
               pageNum: 1,
               size: 10,
               categoryLevelId: item.categoryLevelPathIdParent,
-              code: item.assetCode
+              code: item.assetCode,
+              isEnabled: 1
             });
             newArr.push(data.list); // 将结果存储到 newArr 中
           })