From 66b5c69c4de0695dfa169b40f29364385fb3ff18 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期三, 27 十一月 2024 01:15:54 +0800
Subject: [PATCH] 回复上级批复

---
 src/views/projectManage/plan/planInfoCheck.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/projectManage/plan/planInfoCheck.vue b/src/views/projectManage/plan/planInfoCheck.vue
index a80c565..30c2174 100644
--- a/src/views/projectManage/plan/planInfoCheck.vue
+++ b/src/views/projectManage/plan/planInfoCheck.vue
@@ -85,12 +85,12 @@
                 <el-table-column prop="manageApproval" label="鎵瑰鍐呭" width="160" align="center" />
                 <el-table-column prop="manageApprovalReply" label="鎵瑰鍥炲" width="160" align="center">
                   <template #default="scope">
-                    <el-input type="textarea" v-model="scope.row.departmentApprovalReply" placeholder="璇疯緭鍏�" rows="3" />
+                    <el-input type="textarea" v-model="scope.row.manageApprovalReply" placeholder="璇疯緭鍏�" rows="3" />
                   </template>
                 </el-table-column>
                 <el-table-column fixed="right" label="鎿嶄綔" align="center">
                   <template #default="scope">
-                    <el-button size="small" @click="handleDelay(scope.$index)">鍥炲</el-button>
+                    <el-button size="small" @click="handleReply(scope.$index)">鍥炲</el-button>
                     <el-button size="small" type="danger" @click="handleReset(scope.$index)">閲嶇疆</el-button>
                   </template>
                 </el-table-column>
@@ -133,7 +133,7 @@
 </template>
 
 <script>
-import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog } from "@/api/projectPlan/index";
+import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyDepartmentApproval } from "@/api/projectPlan/index";
 
 export default {
   name: "planInfoCheck",
@@ -206,6 +206,14 @@
         this.departmentApprovalData = response.data;
       });
     },
+    // 鍥炲
+    handleReply(index) {
+      replyDepartmentApproval(this.departmentApprovalData[index]).then(response => {
+        this.$message.success('鍥炲鎴愬姛');
+        this.search()
+      });
+    },
+
     // 鑾峰彇璁″垝鏃ュ織
     getPlanLog(projectPlanRecordId) {
       getPlanLog(projectPlanRecordId).then(response => {

--
Gitblit v1.8.0