|
@@ -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;
|