From f64155f6ad27c50451bb7d4a15f553bc72ead7de Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 12 九月 2025 14:35:26 +0800
Subject: [PATCH] 年龄计算相关

---
 src/views/project/donationdetails/index.vue |   50 +++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 41 insertions(+), 9 deletions(-)

diff --git a/src/views/project/donationdetails/index.vue b/src/views/project/donationdetails/index.vue
index ab5ff0e..be9cd62 100644
--- a/src/views/project/donationdetails/index.vue
+++ b/src/views/project/donationdetails/index.vue
@@ -278,7 +278,11 @@
               </el-col>
               <el-col :span="6">
                 <el-form-item label="骞撮緞" prop="age">
-                  <el-input v-model="form.age" placeholder="璇疯緭鍏ュ勾榫�" />
+                  <el-input
+                    disabled
+                    v-model="form.andAge"
+                    placeholder="璇疯緭鍏ュ勾榫�"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="6">
@@ -429,11 +433,18 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="褰撳墠鍖荤枟鏈烘瀯" prop="occupation">
-                <el-input v-model="form.currentMedicalInstitution" placeholder="璇疯緭鍏�" />
+                <el-input
+                  v-model="form.currentMedicalInstitution"
+                  placeholder="璇疯緭鍏�"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="10">
-              <el-form-item label-width="130px" label="褰撳墠鍖荤枟鏈烘瀯绉戝" prop="education">
+              <el-form-item
+                label-width="130px"
+                label="褰撳墠鍖荤枟鏈烘瀯绉戝"
+                prop="education"
+              >
                 <el-input v-model="form.currentDept" placeholder="璇疯緭鍏�" />
               </el-form-item>
             </el-col>
@@ -441,11 +452,18 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="棣栨鍖荤枟鏈烘瀯" prop="occupation">
-                <el-input v-model="form.firstMedicalInstitution" placeholder="璇疯緭鍏�" />
+                <el-input
+                  v-model="form.firstMedicalInstitution"
+                  placeholder="璇疯緭鍏�"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="10">
-              <el-form-item label-width="130px" label="棣栨鍖荤枟鏈烘瀯绉戝" prop="education">
+              <el-form-item
+                label-width="130px"
+                label="棣栨鍖荤枟鏈烘瀯绉戝"
+                prop="education"
+              >
                 <el-input v-model="form.firstDept" placeholder="璇疯緭鍏�" />
               </el-form-item>
             </el-col>
@@ -1057,7 +1075,10 @@
             </el-col>
             <el-col :span="6">
               <el-form-item label="瀛﹀巻" prop="education">
-                <el-select v-model="affirmform.education" placeholder="璇烽�夋嫨瀛﹀巻">
+                <el-select
+                  v-model="affirmform.education"
+                  placeholder="璇烽�夋嫨瀛﹀巻"
+                >
                   <el-option
                     v-for="dict in dict.type.sys_education || []"
                     :key="dict.value"
@@ -1067,9 +1088,12 @@
                 </el-select>
               </el-form-item>
             </el-col>
-           <el-col :span="6">
+            <el-col :span="6">
               <el-form-item label="鑱屼笟" prop="occupation">
-                <el-select v-model="affirmform.occupation" placeholder="璇烽�夋嫨鑱屼笟">
+                <el-select
+                  v-model="affirmform.occupation"
+                  placeholder="璇烽�夋嫨鑱屼笟"
+                >
                   <el-option
                     v-for="dict in dict.type.sys_occupation || []"
                     :key="dict.value"
@@ -2981,7 +3005,15 @@
       // 琛ㄥ崟鏁版嵁
       getDonatebaseinfo(this.infoid).then(response => {
         this.form = response.data;
-        console.log(this.form, "form");
+        this.form.andAge = `${
+          this.form.age && this.form.age !== 0
+            ? `${this.form.age}${this.form.ageunit}`
+            : ""
+        } ${
+          this.form.age2 && this.form.age2 !== 0
+            ? `${this.form.age2}${this.form.ageunit2}`
+            : ""
+        }`.trim();
 
         if (response.data.terminationCase) {
           this.showTerminationBtn = response.data.terminationCase;

--
Gitblit v1.9.3