ysy 2 лет назад
Родитель
Сommit
64d3bef580

+ 4 - 1
src/views/warehouseManagement/stockLedger/allBatchDetails.vue

@@ -94,7 +94,7 @@
           fourth: [],
           fifth: []
         },
-        certificate: ''
+        categoryId: ''
       };
     },
     computed: {
@@ -114,6 +114,8 @@
           // // warehousingType: _warehousingType(this.baseInfo.assetType)
           // //   .warehousingType,
 
+          categoryId: this.categoryId
+
         };
       }
     },
@@ -126,6 +128,7 @@
         const res = await getDetails(row.id);
         this.$nextTick(() => {
           console.log(res);
+          this.categoryId = res.categoryWms && res.categoryWms.categoryId
           this.$refs.baseInfoRef.getDetailInfoAugr(res.category); //基本信息
           this.$refs.warehouseConfigRef.getDetailInfoAugr(res.categoryWms);
         });

+ 2 - 1
src/views/warehouseManagement/stockLedger/components/details/BatchDetail.vue

@@ -224,7 +224,8 @@
           inventoryCode: this.baseInfo.assetCode,
           name: this.baseInfo.assetName,
           // dimension: +this.$route.query.dimension
-          batchNo:this.$route.query.batchNo
+          batchNo:this.$route.query.batchNo,
+          categoryId: this.baseParams.categoryId
         };
         const res = await getBatchDetails(params);
         if (res?.success) {