From 946e2122ab3756b668f76f93f2181293ed089adf Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 01 三月 2024 18:43:18 +0800
Subject: [PATCH] 11

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

diff --git a/src/views/project/donationdetails/index.vue b/src/views/project/donationdetails/index.vue
index b2b2fc2..215c8b6 100644
--- a/src/views/project/donationdetails/index.vue
+++ b/src/views/project/donationdetails/index.vue
@@ -719,13 +719,13 @@
         </el-form>
         <div class="dialog-footer">
           <el-button
-            v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="submitForm"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -943,13 +943,13 @@
         </el-form>
         <div class="dialog-footer">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -1177,13 +1177,13 @@
         </el-form>
         <div class="dialog-footer">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -1249,13 +1249,13 @@
         </el-form>
         <div class="dialog-footer" style="min-height: 500px; margin: 20px 0; ">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -1417,13 +1417,13 @@
         </el-form>
         <div class="dialog-footer" v-show="actives == 4">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -1928,13 +1928,13 @@
 
         <div class="dialog-footer">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -2199,13 +2199,13 @@
         </el-form>
         <div class="dialog-footer">
           <el-button
-          v-show="!showTerminationBtn&&workflow != 9"
+            v-show="!showTerminationBtn && workflow != 9"
             type="primary"
             @click="Savethedetails"
             >淇濆瓨</el-button
           >
           <el-button
-          v-if="workflow != 9"
+            v-if="workflow != 9"
             :type="showTerminationBtn == 0 ? 'warning' : 'success'"
             @click="Terminationcase"
             >{{ showTerminationBtn == 0 ? "缁堟" : "鎭㈠" }}</el-button
@@ -2868,6 +2868,10 @@
             if (res.rows[0]) {
               this.procureddata = res.rows;
               this.procureddata.infoid = this.infoid;
+            } else {
+              this.procureddata = this.allocateddata;
+              this.procureddata.infoid = this.infoid;
+
             }
             this.organList.organprocured = [];
             for (let i = 0; i < this.procureddata.length; i++) {
@@ -2898,15 +2902,15 @@
         if (this.accomplishform.infoid) {
           return;
         }
-        // 涓嶅瓨鍦ㄦ椂鑾峰彇鍣ㄥ畼
-        // let accpre = {
-        //   id: searchParam.infoid
-        // };
+
         if (!this.organList.organtransplant[0]) {
           listDonatecomporgan(searchParam).then(res => {
             if (res.code == 200) {
               if (res.rows[0]) {
                 this.transplantdata = res.rows;
+                this.transplantdata.infoid = this.infoid;
+              } else {
+                this.transplantdata = this.allocateddata;
                 this.transplantdata.infoid = this.infoid;
               }
               for (let i = 0; i < this.transplantdata.length; i++) {
@@ -2922,7 +2926,6 @@
           });
         }
         // 鑾峰彇瀹屾垚鐧昏淇℃伅
-        // listnewDonatecompletioninfo(accpre).then(response => {
         listDonatecompletioninfo(searchParam).then(response => {
           if (response.code == 200 && response.rows.length) {
             this.accomplishform = response.rows[0];

--
Gitblit v1.9.3