|
@@ -370,7 +370,11 @@
|
|
|
<el-table-column align="center" label="操作" width="180" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('apply', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'SAVE'
|
|
|
+ "
|
|
|
style="margin-right: 10px"
|
|
|
title="确定申请吗?"
|
|
|
@onConfirm="handleSubmit(scope.row.id, 'WAIT')"
|
|
@@ -378,7 +382,11 @@
|
|
|
<el-button slot="reference" type="text">申请</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('apply', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT'
|
|
|
+ "
|
|
|
style="margin-right: 10px"
|
|
|
title="确定撤回吗?"
|
|
|
@onConfirm="handleSubmit(scope.row.id, 'SAVE')"
|
|
@@ -386,7 +394,11 @@
|
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'OK'
|
|
|
+ "
|
|
|
style="margin-right: 10px"
|
|
|
title="确定弃审吗?"
|
|
|
@onConfirm="handleAbandon(scope.row.id)"
|
|
@@ -396,6 +408,7 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
$checkBtnRole('edit', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
|
scope.row.type === 1
|
|
|
"
|
|
@@ -407,6 +420,7 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
$checkBtnRole('edit', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
|
scope.row.type === 2
|
|
|
"
|
|
@@ -416,7 +430,11 @@
|
|
|
编辑
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT'
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="toExamine(scope.row)"
|
|
|
>
|
|
@@ -424,7 +442,11 @@
|
|
|
</el-button>
|
|
|
<el-button type="text" @click="toDetail(scope.row)"> 详情 </el-button>
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('del', $route.meta.roles) &&
|
|
|
+ scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus !== 'OK'
|
|
|
+ "
|
|
|
style="margin-left: 10px"
|
|
|
title="确定删除吗?"
|
|
|
@onConfirm="handleDelete(scope.row.id)"
|