From 0e10e10157b90002b99996914eaf1e5574924ddf Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期一, 12 十月 2026 11:15:50 +0800
Subject: [PATCH] 修改了报销校验

---
 src/views/project/donatefinish/index.vue |   40 ++++++++++++++++++++++++++++------------
 1 files changed, 28 insertions(+), 12 deletions(-)

diff --git a/src/views/project/donatefinish/index.vue b/src/views/project/donatefinish/index.vue
index a1fd544..95e87a1 100644
--- a/src/views/project/donatefinish/index.vue
+++ b/src/views/project/donatefinish/index.vue
@@ -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"
@@ -192,7 +206,7 @@
               :value="scope.row.workflow"
             />
           </div>
-          <div v-else>浠诲姟涓</div>
+          <div v-else>浠诲姟缁堟</div>
         </template>
       </el-table-column>
 
@@ -294,8 +308,8 @@
                 clearable
                 size="small"
                 v-model="form.completetime"
-                type="date"
-                value-format="yyyy-MM-dd hh:mm:ss"
+                type="date" format="yyyy-MM-dd"
+                value-format="yyyy-MM-dd"
                 placeholder="閫夋嫨瀹屾垚鏃堕棿"
               >
               </el-date-picker>
@@ -364,8 +378,8 @@
                     size="small"
                     style="width: 90%"
                     v-model="scope.row.transplanttime"
-                    type="date"
-                    value-format="yyyy-MM-dd HH:mm:ss"
+                    type="date" format="yyyy-MM-dd"
+                    value-format="yyyy-MM-dd"
                     placeholder="閫夋嫨鍣ㄥ畼绉绘鏃堕棿"
                   >
                   </el-date-picker>
@@ -705,9 +719,10 @@
     };
   },
   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 = "";
@@ -720,8 +735,7 @@
     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 != "") {
@@ -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"

--
Gitblit v1.9.3