Procházet zdrojové kódy

fix(库存台账): 修复查询参数传递问题

liujt před 6 měsíci
rodič
revize
0c93196a42

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

@@ -760,6 +760,7 @@
       },
       /* 表格数据源 */
       datasource({ page, limit, where, order }) {
+        console.log('where~~~~~~~~~~~~~~~', where);
         console.log('this.selectedDime-----------', this.selectedDime);
         const dimension = this.$refs.refSeavch.dimension;
         console.log('this.dimension-----------', dimension);
@@ -785,7 +786,7 @@
             pageNum: page,
             size: limit
           };
-          console.log('this.params----', this.params);
+          console.log('this.params----~~~', this.params);
           const data = storageApi.getBatchList(this.params);
           return data;
         } else if (dimension == 4) {
@@ -826,6 +827,8 @@
             };
           }
 
+          console.log('params~~~~~~', params);
+
           const data = storageApi.getPackingList({
             ...params,
             pageNum: page,
@@ -854,7 +857,9 @@
               warehouseAreaId:
                 this.current.data?.level == 1 ? this.current.data.id : '',
               warehouseAreaGoodsId:
-                this.current.data?.level == 2 ? this.current.data.id : ''
+                this.current.data?.level == 2 ? this.current.data.id : '',
+              warehouseAreaGoodsShelvesId:
+                this.current.data?.level == 3 ? this.current.data.id : '',
             };
           }
           this.$refs.table.reload({