From 3453ba7e5243022ad4388da1515dc75ad8d81f94 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期日, 17 五月 2026 15:00:23 +0800
Subject: [PATCH] 近期调试

---
 src/views/business/decide/DecideInfo.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/business/decide/DecideInfo.vue b/src/views/business/decide/DecideInfo.vue
index ee6b80a..0e262e8 100644
--- a/src/views/business/decide/DecideInfo.vue
+++ b/src/views/business/decide/DecideInfo.vue
@@ -1,7 +1,7 @@
 <template>
   <div class="death-judgment-detail">
     <case-basic-info :case-id="caseId" :show-attachment="true" />
-<!-- 鍏叡淇℃伅妯″潡锛堢嫭绔嬫樉绀猴級 -->
+    <!-- 鍏叡淇℃伅妯″潡锛堢嫭绔嬫樉绀猴級 -->
 
     <!-- 鍒ゅ畾绫诲瀷鏍囩椤� -->
     <el-card class="type-card">
@@ -24,7 +24,7 @@
         </el-tab-pane>
       </el-tabs>
     </el-card>
-<el-card class="detail-card common-info-card">
+    <el-card class="detail-card common-info-card">
       <div slot="header" class="clearfix">
         <span class="detail-title">鍏叡淇℃伅</span>
       </div>
@@ -87,6 +87,15 @@
           淇濆瓨淇℃伅
         </el-button>
         <el-button
+          v-if="isEdit"
+          style="float: right; margin-left: 10px;"
+          type="success"
+          @click="accomplish"
+          :loading="saveLoading"
+        >
+          瀹屾垚鍒ゅ畾
+        </el-button>
+        <el-button
           v-else
           style="float: right; margin-left: 10px;"
           type="primary"
@@ -103,7 +112,6 @@
               <el-input v-model="form.deathreason" :readonly="!isEdit" />
             </el-form-item>
           </el-col>
-
         </el-row>
 
         <el-row :gutter="20">
@@ -430,8 +438,6 @@
       </div>
     </el-card>
 
-
-
     <!-- 涓婁紶瀵硅瘽妗嗭紙鑴戞浜★級 -->
     <el-dialog
       :title="`涓婁紶${getCurrentBrainDeathTypeLabel}璇勪及琛╜"
@@ -659,7 +665,7 @@
     this.infoid = this.$route.query.infoid;
     this.caseId = this.infoid;
     this.isEdit = this.$route.query.isEdit === "true";
-
+    this.activeJudgmentType = this.$route.query.type;
     // 浠庤矾鐢卞弬鏁拌幏鍙栭粯璁ゆ樉绀虹被鍨�
     if (this.$route.query.judgmentType) {
       this.activeJudgmentType = this.$route.query.judgmentType;
@@ -1047,7 +1053,19 @@
     handleEdit() {
       this.isEdit = true;
     },
+    accomplish() {
+      this.$confirm("鏄惁纭瀹屾垚璇ユ渚嬫浜″垽瀹氬叏閮ㄤ俊鎭紵", "鎻愰啋", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning"
+      })
+        .then(() => {
+          this.form.state = 3;
+          this.handleSave();
+        })
 
+        .catch(() => {});
+    },
     // 淇濆瓨淇℃伅
     async handleSave() {
       // 鏍规嵁褰撳墠鏍囩閫夋嫨楠岃瘉瑙勫垯
@@ -1067,6 +1085,9 @@
               rememberAnnex: this.buildBrainDeathAttachmentJson(),
               heartdeathjudgeannex: this.buildHeartDeathAttachmentJson()
             };
+            if (submitData.state == 1 || !submitData.state) {
+              submitData.state = 2;
+            }
             let response = null;
 
             if (submitData.id) {

--
Gitblit v1.9.3