From ae1cffb3ddaec0c38c5fb74ebaeec831939f6101 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Thu, 21 Mar 2024 18:33:43 +0800
Subject: [PATCH] 审核

---
 src/views/place/residencePermitApply.vue |   14 ++++++--------
 src/api/task/residencePermitApply.js     |    7 +++++++
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/api/task/residencePermitApply.js b/src/api/task/residencePermitApply.js
index 7887458..be5127f 100644
--- a/src/api/task/residencePermitApply.js
+++ b/src/api/task/residencePermitApply.js
@@ -26,4 +26,11 @@
     method: 'post',
     data: row
   })
+}
+export const updateAuditing = (row) => {
+  return request({
+    url: '/api/blade-taskResidencePermitApply/taskResidencePermitApply/updateAuditing',
+    method: 'post',
+    data: row
+  })
 }
\ No newline at end of file
diff --git a/src/views/place/residencePermitApply.vue b/src/views/place/residencePermitApply.vue
index 28a6b3b..7f979fe 100644
--- a/src/views/place/residencePermitApply.vue
+++ b/src/views/place/residencePermitApply.vue
@@ -62,6 +62,7 @@
 <script>
   import {
     getList,
+    updateAuditing
   } from "@/api/task/residencePermitApply"
   import NProgress from 'nprogress'
   import 'nprogress/nprogress.css'
@@ -401,12 +402,10 @@
       // 确认提交审核
       submitAudit(form) {
         let auditForm = {
-          status: form.status == '1' ? '2' : '3',
-          remark: form.confirmNotion,
-          reportType: 5
+          confirmFlag: form.status == '1' ? 2 : 3,
+          confirmNotion: form.confirmNotion,
         }
-
-        applyTaskExamine(Object.assign(this.auditParams, auditForm)).then(res => {
+        updateAuditing(Object.assign(this.auditParams, auditForm)).then(res => {
           if (res.data.code == 200) {
             this.$message.warning("审核成功")
             this.onLoad(this.page)
@@ -418,8 +417,7 @@
       // 审核按钮
       goAudit(row) {
         this.auditParams = {
-          id: row.taskId,
-          reportType: 5
+          id: row.id,
         }
         this.visible = true
       },
@@ -713,4 +711,4 @@
       justify-content: center;
     }
   }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3