From 126d60e2b14c47d390ec05b584b3504465a293d3 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 12 八月 2023 23:30:13 +0800
Subject: [PATCH] yxh

---
 src/views/project/fund/medicalCostApply/index.vue |   38 +++++++++++++++++++++++---------------
 1 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/views/project/fund/medicalCostApply/index.vue b/src/views/project/fund/medicalCostApply/index.vue
index bb076d5..50cd556 100644
--- a/src/views/project/fund/medicalCostApply/index.vue
+++ b/src/views/project/fund/medicalCostApply/index.vue
@@ -51,11 +51,6 @@
         <el-card shadow="naver">
           <el-form ref="infoform" label-width="100px">
             <el-row :gutter="4" align="right" class="mb8">
-              <el-col :span="1.5">
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-                  v-hasPermi="['project:medicalfund:add']">鍖诲鎴愭湰鐢宠</el-button>
-              </el-col>
-
               <el-col :span="9">
                 <el-form-item label="鎹愮尞缂栧彿">
                   <el-input v-model="curCase.donorno" :disabled="true"></el-input>
@@ -67,6 +62,12 @@
                 </el-form-item>
               </el-col>
               <el-col> </el-col>
+            </el-row>
+            <el-row :gutter="10" class="mb8">
+              <el-col :span="1.5">
+                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
+                  v-hasPermi="['project:medicalfund:add']">鏂板鐢宠鍗�</el-button>
+              </el-col>
             </el-row>
             <el-row>
               <el-table v-loading="loading" border :data="donateconsolationfundList">
@@ -769,15 +770,22 @@
 
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
-      this.$router.push({
-        path: "/finance/applyDetail/",
-        query: {
-          id: 0,
-          businessType: "3",
-          operationType: "add",
-          curCase: this.curCase
-        }
-      });
+      if (this.curCase.id) {
+        this.$router.push({
+          path: "/finance/applyDetail/",
+          query: {
+            id: 0,
+            businessType: "3",
+            operationType: "add",
+            curCase: this.curCase
+          }
+        });
+      } else {
+        const h = this.$createElement;
+        this.$message({
+          message: h("p", null, [h("span", null, "璇峰湪宸﹁竟鐨勬崘鐚渚嬭〃閫夋嫨闇�瑕佹搷浣滅殑妗堜緥锛�")]),
+        });
+      }
       return;
 
       if (this.curCase.id) {
@@ -1107,7 +1115,7 @@
       listFund(this.fundQueryParam).then(response => {
         this.loading = false;
         this.donateconsolationfundList = response.rows;
-        console.log("donateconsolationfundList",this.donateconsolationfundList);
+        console.log("donateconsolationfundList", this.donateconsolationfundList);
       });
     },
 

--
Gitblit v1.9.3