Explorar o código

fix(出库管理新增): 物品选择如果筛选选了仓库,通过仓库Id查询物品

liujt hai 6 meses
pai
achega
737ad4c7e5
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/views/warehouseManagement/components/AssetsDialog.vue

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

@@ -687,7 +687,8 @@
         if (this.dimension == 3) {
           data = await storageApi.getHierarchyList({
             ids: this.selectionList.map((item) => item.id).join(','),
-            type: this.dimension
+            type: this.dimension,
+            warehouseId: this.searchForm.warehouseId,
           });
         } else if (this.dimension == 2) {
           data = await storageApi.getHierarchyFifo({
@@ -695,6 +696,7 @@
             ids: this.selectionList.map((item) => item.id),
             builders: this.selectionList.map((item) => {
               return {
+                warehouseId: this.searchForm.warehouseId,
                 categoryId: item.categoryId,
                 num: item.outboundNum,
                 id: item.id
@@ -706,6 +708,7 @@
             type: this.dimension,
             builders: this.selectionList.map((item) => {
               return {
+                warehouseId: this.searchForm.warehouseId,
                 categoryId: item.categoryId,
                 num: item.outboundNum
               };