From 16f122cfcec09e65e4790ecee46bae1f1b7b8fff Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期日, 02 三月 2025 10:17:38 +0800
Subject: [PATCH] Merge branch 'master' into dev

---
 src/views/projectEngineering/projectLibrary/component/InvestInfo.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue b/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
index d1f5d7f..7b1b6e0 100644
--- a/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
+++ b/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
@@ -219,7 +219,6 @@
     // 灏濊瘯瑙f瀽JSON鏁版嵁
     const parsedInvestmentForm = investmentForm ? JSON.parse(investmentForm) : null;
     const parsedProjectForm = projectForm ? JSON.parse(projectForm) : null;
-    console.log(parsedInvestmentForm)
     // 璁剧疆investment鍜宲rojectForm瀵硅薄
     if(parsedInvestmentForm) {
       this.investmentForm = parsedInvestmentForm;
@@ -236,6 +235,8 @@
       this.investmentForm.plannedStartDate = this.projectForm.planStartTime;
       this.investmentForm.expectedCompletionDate = this.projectForm.planCompleteTime;
     }
+
+    this.investmentForm.projectId = this.projectForm.id;
   },
   beforeDestroy() {
     if(Object.keys(this.investmentForm).length !==0) localStorage.setItem("investmentForm", JSON.stringify(this.investmentForm));
@@ -273,6 +274,14 @@
         }
       }
     },
+  },
+  watch: {
+    investmentForm: {
+      deep: true,
+      handler(newVal) {
+        this.$emit('investInfoForm', newVal)
+      }
+    }
   }
 
 };

--
Gitblit v1.8.0