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/relativesconfirmation/index.vue |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/src/views/project/relativesconfirmation/index.vue b/src/views/project/relativesconfirmation/index.vue
index 1ca42ca..16104e2 100644
--- a/src/views/project/relativesconfirmation/index.vue
+++ b/src/views/project/relativesconfirmation/index.vue
@@ -85,7 +85,7 @@
         </el-col>
 
         <el-col :span="12">
-          <el-form-item label="鎶ュ憡鏃ユ湡">
+          <el-form-item label="纭鏃堕棿">
             <el-date-picker
               style="width: 100%"
               v-model="selecttime"
@@ -128,7 +128,7 @@
         </template>
       </el-table-column>
       <el-table-column
-        label="鎶ュ憡鏃堕棿"
+        label="纭鏃堕棿"
         align="center"
         prop="reporttime"
         width="120"
@@ -148,7 +148,19 @@
           />
         </template>
       </el-table-column>
-      <el-table-column label="骞撮緞" align="center" prop="age" width="100" />
+      <el-table-column label="骞撮緞" align="center" prop="age" width="100">
+        <template slot-scope="scope">
+           {{
+            `${
+              scope.row.age && scope.row.age !== 0 ? `${scope.row.age}${scope.row.ageunit?scope.row.ageunit:''}` : ""
+            } ${
+              scope.row.age2 && scope.row.age2 !== 0
+                ? `${scope.row.age2}${scope.row.ageunit2}`
+                : ""
+            }`.trim()
+          }}
+        </template>
+      </el-table-column>
 
       <el-table-column
         label="鍖荤枟鏈烘瀯"
@@ -196,7 +208,7 @@
             type="text"
             icon="el-icon-refrigerator"
             @click="handledownload(scope.row)"
-            v-if="scope.row.recordstate == '6'"
+            v-if="scope.row.workflow == '6'"
             >涓嬭浇</el-button
           >
           <!-- <el-button
@@ -1123,7 +1135,9 @@
     //   this.nationality =res.data
     // })
     if (sessionStorage.getItem("relativesconfirmation")) {
-      this.queryParams = JSON.parse(sessionStorage.getItem("relativesconfirmation"));
+      this.queryParams = JSON.parse(
+        sessionStorage.getItem("relativesconfirmation")
+      );
       console.log(this.queryParams, "queryParams");
     }
     this.getuserlist();
@@ -1600,10 +1614,10 @@
         path: "/organ/donationdetails/",
         query: {
           id: row.id,
-          organType: "edit",
+          organType: "edit"
         }
       });
-      return ;
+      return;
       console.log("ppppppp", row);
       this.showSaveBtn = false;
       this.flowname = "瀹跺睘纭鐧昏";

--
Gitblit v1.9.3