From c8e9849cb5f24848df0174c13bfbbff37bb08a5a Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 七月 2026 15:45:30 +0800
Subject: [PATCH] 维护

---
 src/views/project/donatefinish/index.vue |   66 ++++++++++++++++++++------------
 1 files changed, 41 insertions(+), 25 deletions(-)

diff --git a/src/views/project/donatefinish/index.vue b/src/views/project/donatefinish/index.vue
index a1fd544..eedbc44 100644
--- a/src/views/project/donatefinish/index.vue
+++ b/src/views/project/donatefinish/index.vue
@@ -56,7 +56,7 @@
               size="small"
             >
               <el-option
-                v-for="dict in dict.type.sys_donornode"
+                v-for="dict in dict.type.sys_caseNode"
                 :key="dict.value"
                 :label="dict.label"
                 :value="dict.value"
@@ -126,7 +126,7 @@
           </el-form-item>
         </el-col>
 
-        
+
       </el-row> -->
     </el-form>
 
@@ -155,7 +155,21 @@
           />
         </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.age2 && scope.row.age2 !== 0
+                ? `${scope.row.age2}${scope.row.ageunit2}`
+                : ""
+            }`.trim()
+          }}
+        </template>
+      </el-table-column>
       <el-table-column
         label="鍖荤枟鏈烘瀯"
         align="center"
@@ -188,11 +202,11 @@
         <template slot-scope="scope">
           <div v-if="!scope.row.terminationCase">
             <dict-tag
-              :options="dict.type.sys_donornode"
+              :options="dict.type.sys_caseNode"
               :value="scope.row.workflow"
             />
           </div>
-          <div v-else>浠诲姟涓</div>
+          <div v-else>浠诲姟缁堟</div>
         </template>
       </el-table-column>
 
@@ -208,7 +222,7 @@
             size="mini"
             type="text"
             icon="el-icon-refrigerator"
-            @click="updatedonorno(scope.row)"
+            @click="updatecaseNo(scope.row)"
             >鏇存柊缂栧彿</el-button
           > -->
           <el-button
@@ -270,10 +284,10 @@
       <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-row>
           <el-col :span="8">
-            <el-form-item label="鎹愮尞缂栧彿" prop="donorno">
+            <el-form-item label="鎹愮尞缂栧彿" prop="caseNo">
               <el-input
                 disabled
-                v-model="curCase.donorno"
+                v-model="curCase.caseNo"
                 placeholder="璇疯緭鍏ユ崘鐚�呯紪鍙�"
               />
             </el-form-item>
@@ -489,7 +503,7 @@
             <annex-upload
               ref="finishannex"
               :infoid="curCase.id"
-              :donorno="curCase.donorno"
+              :caseNo="curCase.caseNo"
               :flowname="flowname"
               :annexno="annexno"
             />
@@ -569,7 +583,7 @@
     "sys_Infectious",
     "sys_InfoSources",
     "sys_OtherCases",
-    "sys_donornode",
+    "sys_caseNode",
     "sys_DiseaseType",
     "sys_SelfWill",
     "sys_FamilyRelation",
@@ -665,7 +679,7 @@
         recordstate: null,
         treatmenthospitalname: null,
         treatmenthospitalno: null,
-        donorno: null,
+        caseNo: null,
         reportername: null,
         reporttime: null,
         city: null
@@ -688,7 +702,7 @@
         ]
       },
       curCase: {
-        donorno: "",
+        caseNo: "",
         name: "",
         registerAddresss: "",
         infoid: ""
@@ -705,23 +719,23 @@
     };
   },
   created() {
-    // this.getDicts('country').then(res=>{
-    //   this.nationality =res.data
-    // })
+    if (sessionStorage.getItem("donatefinish")) {
+      this.queryParams = JSON.parse(sessionStorage.getItem("donatefinish"));
+      console.log(this.queryParams, "queryParams");
+    }
   },
   activated() {
     this.selecttime = "";
     this.reportervalue = "";
     this.reportlist = [];
-    this.queryParams.donorno = "";
+    this.queryParams.caseNo = "";
     this.queryParams.recordstate = "";
     this.queryParams.name = "";
     this.queryParams.treatmenthospitalno = "";
     if (this.$route.params.starttime != null && this.$route.params.endtime) {
       this.selecttime = [
         this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
-        this.$moment(this.$route.params.endtime)
-          .format("YYYY-MM-DD")
+        this.$moment(this.$route.params.endtime).format("YYYY-MM-DD")
       ];
     }
     if (this.$route.params.reporterno != "") {
@@ -842,7 +856,7 @@
       console.log(this.starttime);
       console.log(this.endtime);
     },
-    updatedonorno(row) {
+    updatecaseNo(row) {
       console.log("row", row);
       updatedonatorno(row.infoid).then(res => {
         console.log("1221212", res);
@@ -957,6 +971,8 @@
     getList() {
       this.loading = true;
       this.queryParams.params = {};
+      sessionStorage.removeItem("donatefinish");
+      sessionStorage.setItem("donatefinish", JSON.stringify(this.queryParams));
       if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
         this.queryParams.params[
           "beginReporttime"
@@ -995,7 +1011,7 @@
       this.form = {
         id: null,
         infoid: null,
-        donorno: null,
+        caseNo: null,
         delFlag: null,
         createBy: null,
         createTime: null,
@@ -1033,7 +1049,7 @@
         // "2"
         recordstate: null,
         treatmenthospitalname: null,
-        donorno: null,
+        caseNo: null,
         acquisitiontissueno: null,
         reportername: null,
         reporttime: null,
@@ -1076,7 +1092,7 @@
       // this.curCase = {
       //   id: row.id,
       //   recordstate: null,
-      //   donorno: row.donorno,
+      //   caseNo: row.caseNo,
       // };
       // this.form.coordinateduserido = row.coordinateduserido;
       // this.form.coordinateduseridt = row.coordinateduseridt;
@@ -1135,7 +1151,7 @@
       this.loading = true;
       this.reset();
       this.curCase.registerAddresss = row.registeraddresss;
-      this.curCase.donorno = row.donorno;
+      this.curCase.caseNo = row.caseNo;
       this.curCase.name = row.name;
       this.curCase.infoid = row.infoid;
       this.open = true;
@@ -1150,7 +1166,7 @@
       let oraganqueryParam = {
         infoid: row.id
         // donorname: this.curCase.name,
-        // donorno: this.curCase.donorno,
+        // caseNo: this.curCase.caseNo,
         // registeraddress: this.curCase.registeraddresss,
       };
       listDonateorgan(oraganqueryParam).then(response => {
@@ -1186,7 +1202,7 @@
       this.loading = true;
       this.$refs["form"].validate(valid => {
         if (valid) {
-          this.form.donorno = this.curCase.donorno;
+          this.form.caseNo = this.curCase.caseNo;
           this.form.infoid = this.curCase.id;
           this.form.donateorgan = JSON.stringify(this.form.donateorganList);
           // let forms = delete this.form.donateorganList;

--
Gitblit v1.9.3