From 1c08c6dcbe0f81bd8cff8a363e0d6f5c996474be Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 14 三月 2024 09:49:33 +0800
Subject: [PATCH] 11

---
 src/views/project/donorcharge/donorchargedetail/index.vue |   35 +++++++++++++----------------------
 1 files changed, 13 insertions(+), 22 deletions(-)

diff --git a/src/views/project/donorcharge/donorchargedetail/index.vue b/src/views/project/donorcharge/donorchargedetail/index.vue
index 4d4134f..ff83f5d 100644
--- a/src/views/project/donorcharge/donorchargedetail/index.vue
+++ b/src/views/project/donorcharge/donorchargedetail/index.vue
@@ -147,8 +147,8 @@
               <template slot-scope="scope">
                 <el-input
                   v-model="scope.row.caseno"
-                  :disabled="true"
                   placeholder="绯荤粺缂栧彿"
+                  :disabled="true"
                 />
               </template>
             </el-table-column>
@@ -161,8 +161,8 @@
               <template slot-scope="scope">
                 <el-input
                   v-model="scope.row.amount"
-                  :disabled="true"
                   placeholder="瀹炴敹閲戦"
+                  :disabled="true"
                 />
               </template>
             </el-table-column>
@@ -195,24 +195,24 @@
               <template slot-scope="scope">
                 <el-input
                   v-model="scope.row.organcharge"
-                  :disabled="true"
                   placeholder="鏍囧噯璐圭敤"
+                  :disabled="true"
                 />
               </template>
             </el-table-column>
             <el-table-column
-              prop="hospitalname"
+              prop="hospitalno"
               align="center"
               label="鎺ユ敹鍖婚櫌"
               width="280"
             >
               <template slot-scope="scope">
                 <org-selecter
-                  :disabled="true"
+                  v-model="scope.row.hospitalno"
                   ref="tranHosSelect"
                   :org-type="'4'"
-                  v-model="scope.row.hospitalno"
                   style="width: 100%"
+                  :disabled="true"
                 />
               </template>
             </el-table-column>
@@ -309,7 +309,6 @@
     return {
       activeName: 1, //鏂囦欢绫诲瀷
       // 閮ㄩ棬鏍戦�夐」
-
       //绁ㄦ嵁鏂囦欢
       pdftitle: "",
       pdfimg: "",
@@ -352,8 +351,6 @@
       donorchargeorgans: [],
       // 寮瑰嚭灞傛爣棰�
       title: "",
-      // 鏄惁鏄剧ず寮瑰嚭灞�
-      open: false,
       // 鏌ヨ璐圭敤琛ㄥ弬鏁�
       queryParams: {
         pageNum: 1,
@@ -370,7 +367,6 @@
         pageSize: 10,
         donorchargeid: null
       },
-
       // 褰撳墠鐢ㄦ埛淇℃伅
       userprofile: {},
       // 琛ㄥ崟鍙傛暟
@@ -419,7 +415,6 @@
       headers: {
         Authorization: "Bearer " + getToken()
       },
-
       jurisdiction: false,
 
       //淇濆瓨鎸夐挳鎺у埗
@@ -437,7 +432,6 @@
       this.defaultperson = response.data;
       this.standardlevel = response.data.standardlevel;
     });
-
     //鑾峰彇鍙傛暟
     this.getroute();
   },
@@ -570,7 +564,6 @@
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
       this.reset();
-      this.open = true;
       this.title = "鏂板鎹愮尞妗堜緥鍣ㄥ畼璐圭敤琛�";
 
       if (this.curCase) {
@@ -603,7 +596,6 @@
               if (res1.code == 200) {
                 this.organchargelist = res1.rows;
               }
-
               //鎻掑叆鍣ㄥ畼琛�
               res.rows.forEach(item => {
                 //鑾峰彇璐圭敤閲戦
@@ -611,11 +603,12 @@
                   if (rescharge.organcode == item.organno) {
                     this.donorchargeorgans.push({
                       organno: item.organno,
+                      caseno: item.caseno,
                       organname: item.organname,
                       organcharge: rescharge.charge,
                       infoid: item.infoid,
-                      hospitalname: item.transplanthospitalname,
-                      hospitalno: item.transplanthospitalno,
+                      hospitalname: item.hospitalname,
+                      hospitalno: item.hospitalno,
                       organtime: item.transplanttime,
                       chargestate: "0"
                     });
@@ -631,7 +624,6 @@
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate() {
       this.reset();
-      this.open = true;
       this.title = "淇敼鎹愮尞妗堜緥鍣ㄥ畼璐圭敤琛�";
 
       getDonorcharge(this.curId).then(response => {
@@ -655,11 +647,9 @@
     /** 淇敼鏌ョ湅鎿嶄綔 */
     handleDetail() {
       this.reset();
-      this.open = true;
 
       getDonorcharge(this.curId).then(response => {
         this.form = response.data;
-        this.open = true;
         this.title = "鏌ョ湅鎹愮尞妗堜緥鍣ㄥ畼璐圭敤琛�";
 
         //鍣ㄥ畼璐圭敤淇℃伅
@@ -706,13 +696,13 @@
             for (let k = 0; k < this.donorchargeorgans.length; k++) {
               this.donorchargeorgans[k].donorchargeID = this.form.id;
             }
-
             updateDonorcharge(this.form).then(res1 => {
               if (res1.code == 200) {
                 saveDonorchargeorgan(this.donorchargeorgans).then(res2 => {
                   if (res2.code == 200) {
                     this.$modal.msgSuccess("淇濆瓨鎴愬姛锛�");
-                    this.open = false;
+        this.$router.go(-1);
+                    
                   }
                 });
               }
@@ -728,7 +718,8 @@
                 saveDonorchargeorgan(this.donorchargeorgans).then(res2 => {
                   if (res2.code == 200) {
                     this.$modal.msgSuccess("淇濆瓨鎴愬姛锛�");
-                    this.open = false;
+        this.$router.go(-1);
+
                   }
                 });
               }

--
Gitblit v1.9.3