Browse Source

库存页面隐藏成品仓选项

lxf 1 year ago
parent
commit
c8ec4ad12e

+ 1 - 1
src/views/production/warehouse/inventory/index.vue

@@ -263,7 +263,7 @@ const getDemandData = () => {
       }
     });
     proxy.post("/warehouse/page", { pageNum: 1, pageSize: 999 }).then((res) => {
-      warehouseList.value[0].children = res.rows;
+      warehouseList.value[0].children = res.rows.filter((item) => item.type !== "1");
       if (!(route.query && route.query.backupDate)) {
         proxy.post("/inventory/getQuantityByWarehouse", { departmentId: sourceList.value.pagination.departmentId }).then((res) => {
           if (warehouseList.value[0].children && warehouseList.value[0].children.length > 0) {

+ 1 - 1
src/views/subsidiary/warehouse/inventory/index.vue

@@ -222,7 +222,7 @@ const getDemandData = () => {
     });
   });
   proxy.post("/warehouse/page", { pageNum: 1, pageSize: 999 }).then((res) => {
-    warehouseList.value[0].children = res.rows;
+    warehouseList.value[0].children = res.rows.filter((item) => item.type !== "1");
     proxy.post("/inventory/getQuantityByWarehouse", { departmentId: sourceList.value.pagination.departmentId }).then((res) => {
       if (warehouseList.value[0].children && warehouseList.value[0].children.length > 0) {
         for (let i = 0; i < warehouseList.value[0].children.length; i++) {