From 66b5c69c4de0695dfa169b40f29364385fb3ff18 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期三, 27 十一月 2024 01:15:54 +0800
Subject: [PATCH] 回复上级批复
---
src/api/projectPlan/index.js | 10 ++++++++++
src/views/projectManage/plan/planInfoCheck.vue | 14 +++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/api/projectPlan/index.js b/src/api/projectPlan/index.js
index ee2ce79..d3e00b2 100644
--- a/src/api/projectPlan/index.js
+++ b/src/api/projectPlan/index.js
@@ -94,6 +94,15 @@
})
}
+// 鍥炲涓婄骇鎵瑰
+export function replyDepartmentApproval(data) {
+ return request({
+ url: '/api/project-plan-examine-record/replyDepartmentApproval',
+ method: 'post',
+ data: data
+ })
+}
+
// 璁″垝鏃ュ織
export function getPlanLog(id) {
return request({
@@ -103,3 +112,4 @@
}
+
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