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

台账详情包装明细补充

yijing 1 год назад
Родитель
Сommit
1c4218d469

+ 19 - 2
src/views/warehouseManagement/stockLedger/allBatchDetails.vue

@@ -6,6 +6,11 @@
       ></PageHeader>
     </div> -->
     <div class="content-detail">
+      <div>
+        <el-button icon="el-icon-arrow-left" @click="goBack">
+          返回
+        </el-button>
+      </div>
       <el-tabs v-model="activeName">
         <el-tab-pane label="基本信息" name="zero">
           <BaseInfo ref="baseInfoRef"></BaseInfo>
@@ -51,6 +56,9 @@
             v-if="activeName == 'fifth'"
             :baseParams="baseParams"
         /></el-tab-pane>
+        <el-tab-pane label="库存明细" name="seventeen" lazy>
+          <InventoryDetails :categoryCode="categoryCode" />
+        </el-tab-pane>
       </el-tabs>
     </div>
   </div>
@@ -62,6 +70,7 @@
   import OutWarehouse from './components/details/OutWarehouse.vue';
   import InWarehouse from './components/details/InWarehouse.vue';
   import ReportLoss from './components/details/ReportLoss.vue';
+  import InventoryDetails from './components/details/InventoryDetails.vue';
   import InventoryAllocation from './components/details/InventoryAllocation.vue';
   import WarehouseDetail from './components/details/WarehouseDetail.vue';
   import BatchDetail from './components/details/BatchDetail.vue';
@@ -80,7 +89,8 @@
       ReportLoss,
       BatchDetail,
       WarehouseDetail,
-      warehouseConfigVue
+      warehouseConfigVue,
+      InventoryDetails
     },
     data() {
       return {
@@ -91,7 +101,8 @@
           second: [],
           third: [],
           fourth: [],
-          fifth: []
+          fifth: [],
+          seventeen:[]
         },
         categoryId: '',
         baseInfoData: {},
@@ -99,6 +110,9 @@
       };
     },
     computed: {
+      categoryCode() {
+      return this.$route.query.categoryCode;
+    },
       dimension() {
         return this.$route.query.dimension;
       },
@@ -122,6 +136,9 @@
       this.getDetailInfo(this.$route.query);
     },
     methods: {
+      goBack() {
+      this.$router.go(-1)
+    },
       async getDetailInfo(row) {
         console.log('===', row);
         this.categoryId = row.id;

+ 11 - 0
src/views/warehouseManagement/stockLedger/batchDetails.vue

@@ -3,7 +3,13 @@
     <!--    <div class="page-title">
       <PageHeader :title="`批次号${baseInfo.batchNum || ''}`"></PageHeader>
     </div> -->
+
     <div class="content-detail">
+      <div>
+        <el-button icon="el-icon-arrow-left" @click="goBack">
+          返回
+        </el-button>
+      </div>
       <el-tabs v-model="activeName">
         <el-tab-pane label="基本信息" name="zero">
           <BaseInfo :baseInfo="baseInfo" ref="baseInfoRef"></BaseInfo>
@@ -42,7 +48,9 @@
       <template v-if="activeName === 'sixth'">
         <img class="certificate" :src="certificate" />
       </template>
+
     </div>
+
   </div>
 </template>
 
@@ -125,6 +133,9 @@ export default {
     this.getDetailInfo(this.$route.query);
   },
   methods: {
+    goBack() {
+      this.$router.go(-1)
+    },
     async getDetailInfo(row) {
       console.log('===', row);
       this.categoryId = row.id;