yusheng 1 year ago
parent
commit
26d852c37b

+ 3 - 0
src/views/bpm/outgoingManagement/details.vue

@@ -625,6 +625,9 @@
         });
       },
       async _getInfo(id) {
+        if (!id) {
+          return;
+        }
         let res = {};
         if (this.isInterior) {
           res = await storageApi.getInboundDetailsById(id);

+ 10 - 3
src/views/bpm/stockManagement/details.vue

@@ -13,7 +13,7 @@
               </el-col>
               <el-col :span="8">
                 <el-form-item label="入库物品类型:">
-                  <span>{{ handleAssetType(extInfo.assetType) }}</span>
+                  <span>{{ handleAssetType(extInfo?.assetType) }}</span>
                 </el-form-item>
               </el-col>
               <el-col :span="8">
@@ -514,6 +514,13 @@
             this.stepsStatus = 'error';
           }
         }
+      },
+      businessId(val){
+        if(val){
+          this._getInfo(val)
+          
+        }
+      
       }
     },
     computed: {
@@ -522,8 +529,8 @@
         return this.$store.state.user.info.clientEnvironmentId;
       }
     },
-    created() {
-      console.log('this.businessId----------', this.businessId);
+    mounted() {
+
       this.getFieldModel();
       this.requestDict('类型用途');
       this.getAllCategoryType();