李帅 6 місяців тому
батько
коміт
972a2d09de

+ 17 - 0
src/api/allApi/index.js

@@ -132,6 +132,23 @@ export function postCheckListAdd(data) {
132 132
   })
133 133
 }
134 134
 
135
+// 岗位责任制清单 -> 提交审核 
136
+export function postCheckListsubmitApprove(params) {
137
+  return request({
138
+    url: `/postCheck/postCheckListsubmitApprove`,
139
+    method: 'get',
140
+    params: params
141
+  })
142
+}
143
+// 岗检表 -> 提交审核 
144
+export function submitApprove(params) {
145
+  return request({
146
+    url: `postCheck/postChecked/submitApprove`,
147
+    method: 'get',
148
+    params: params
149
+  })
150
+}
151
+
135 152
 // 导出岗位责任制清单列表
136 153
 export function exportFun(data) {
137 154
   return request({

+ 29 - 0
src/views/postInspectionPlanning/tableManagement/index.vue

@@ -104,6 +104,9 @@
104 104
       </el-table-column>
105 105
       <el-table-column label="操作" align="center" width="140">
106 106
         <template slot-scope="scope">
107
+          <el-button type="text" @click="doShen(scope.row)"
108
+            >提交审核</el-button
109
+          >
107 110
           <el-button
108 111
             type="text"
109 112
             @click="handleCheck('edit', '修改', scope.row)"
@@ -318,6 +321,9 @@ import {
318 321
   preview,
319 322
 } from "@/api/postInspectionPlanning/tableManagement.js";
320 323
 import {
324
+  submitApprove
325
+} from '@/api/allApi/index.js'
326
+import {
321 327
   listGroupList,
322 328
   getDeptTree,
323 329
   getOptionselect,
@@ -493,6 +499,29 @@ export default {
493 499
         }
494 500
       }
495 501
     },
502
+    // 提交审核
503
+    doShen(row) {
504
+      this.$confirm('确认提交审核?', '提示', {
505
+        confirmButtonText: '确定',
506
+        cancelButtonText: '取消',
507
+        type: 'warning'
508
+      })
509
+      .then(async () => {
510
+        const res = await submitApprove({id:row.id})
511
+        if (res.code !== 200) return this.$message.error(res.msg)
512
+        this.$message({
513
+          type: 'success',
514
+          message: '提交审核成功!'
515
+        })
516
+        this.getList()
517
+      })
518
+      .catch(() => {
519
+        this.$message({
520
+          type: 'info',
521
+          message: '已取消'
522
+        })
523
+      })
524
+    },
496 525
     getGroupList() {
497 526
       listGroupList().then((data) => {
498 527
         this.groupList = data.data;

+ 27 - 1
src/views/postResponsibility/postResponsibilityOrganization/index.vue

@@ -152,9 +152,12 @@
152 152
         label="操作"
153 153
         align="center"
154 154
         class-name="small-padding fixed-width"
155
-        width="150"
155
+        width="200"
156 156
       >
157 157
         <template slot-scope="scope">
158
+          <el-button type="text" @click="doShen(scope.row)"
159
+            >提交审核</el-button
160
+          >
158 161
           <el-button
159 162
             type="text"
160 163
             @click="
@@ -397,6 +400,29 @@ export default {
397 400
           })
398 401
         })
399 402
     },
403
+    // 提交审核
404
+    doShen(row) {
405
+      this.$confirm('确认提交审核?', '提示', {
406
+        confirmButtonText: '确定',
407
+        cancelButtonText: '取消',
408
+        type: 'warning'
409
+      })
410
+        .then(async () => {
411
+          const res = await postCheckListsubmitApprove({id:row.id})
412
+          if (res.code !== 200) return this.$message.error(res.msg)
413
+          this.$message({
414
+            type: 'success',
415
+            message: '提交审核成功!'
416
+          })
417
+          this.getList()
418
+        })
419
+        .catch(() => {
420
+          this.$message({
421
+            type: 'info',
422
+            message: '已取消'
423
+          })
424
+        })
425
+    },
400 426
     // 导入证件文件取消按钮
401 427
     cancelCredent() {
402 428
       this.importWen = false