yusheng 11 maanden geleden
bovenliggende
commit
46fefb9b36

+ 3 - 0
src/BIZComponents/innerdetails.vue

@@ -643,6 +643,9 @@
         });
       },
       async _getInfo(sourceBizNo) {
+        if (!sourceBizNo) {
+          return;
+        }
         const res = await getInfoBySourceBizNoAPI(sourceBizNo);
         this.infoData = res;
         this.extInfo = res.extInfo;

+ 3 - 3
src/views/purchasingManage/purchasePlanManage/components/detailDialog.vue

@@ -20,7 +20,7 @@
             v-for="item in tabOptions"
             :key="item.key"
             :class="{ active: activeComp == item.key }"
-            @click="activeComp = item.key"
+            @click="handleTag(item.key)"
           >
             {{ item.name }}
           </li>
@@ -232,7 +232,7 @@
     <!--入库详情-->
     <innerBoundDetails
       v-if="
-        activeComp === 'store' &&
+        activeComp == 'store' &&
         form.status == 2 &&
         ['3', '4', '5'].includes(form.sourceType)
       "
@@ -528,7 +528,7 @@
         this.activeComp = val;
         if (val == 'store') {
           this.$nextTick(() => {
-            this.$refs.innerBoundDetailsRef._getInfo(this.form.code);
+            this.$refs.innerBoundDetailsRef._getInfo(this.form.planCode);
           });
         }
       },