|
@@ -78,7 +78,7 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量审批',
|
|
|
- click: ()=>{
|
|
|
+ click: () => {
|
|
|
this.batchExamine()
|
|
|
},
|
|
|
isRole: this.$checkBtnRole('examine', this.$route.meta.roles)
|
|
@@ -183,70 +183,60 @@ export default {
|
|
|
},
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
- const statusData = JSON.parse("{\"FAIL_ONE\":\"初审不通过\",\"REJECT\":\"驳回\",\"OK_ONE_AND_CONFIRM\":\"已确认未复核\",\"ABANDON\":\"弃审\",\"SAVE\":\"保存\",\"CLOSE\":\"关闭\",\"OK\":\"审核通过\",\"WAIT\":\"待审核\",\"FAIL\":\"审核不通过\",\"OK_ONE\":\"初审通过\"}")
|
|
|
+ const statusData = JSON.parse(
|
|
|
+ '{"FAIL_ONE":"初审不通过","REJECT":"驳回","OK_ONE_AND_CONFIRM":"已确认未复核","ABANDON":"弃审","SAVE":"保存","CLOSE":"关闭","OK":"审核通过","WAIT":"待审核","FAIL":"审核不通过","OK_ONE":"初审通过"}'
|
|
|
+ )
|
|
|
return (
|
|
|
<div class="operation-btns">
|
|
|
{row.examineStatus === statusData['SAVE'] ? (
|
|
|
- <el-popconfirm style="margin-left: 10px" title="确定提审?" onOnConfirm={() => this.handleSubmit(row.id)}>
|
|
|
+ <el-popconfirm title="确定提审?" onOnConfirm={() => this.handleSubmit(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
提审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
- {row.examineStatus ==statusData['WAIT'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
- <el-button style="margin-left: 10px" type="text" onClick={() => this.toExamine(row)}>
|
|
|
+ {row.examineStatus == statusData['WAIT'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ <el-button type="text" onClick={() => this.toExamine(row)}>
|
|
|
审核
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{this.$checkBtnRole('del', this.$route.meta.roles) && row.examineStatus === statusData['SAVE'] ? (
|
|
|
- <el-popconfirm
|
|
|
- style="margin-left: 10px"
|
|
|
- title="确定删除吗?"
|
|
|
- onOnConfirm={() => this.handleDelete(row.id)}
|
|
|
- >
|
|
|
+ <el-popconfirm title="确定删除吗?" onOnConfirm={() => this.handleDelete(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
{row.examineStatus === statusData['SAVE'] && this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
|
- <el-button style="margin-left: 10px" type="text" onClick="toForm(row)">
|
|
|
+ <el-button type="text" onClick="toForm(row)">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) && row.examineStatus === statusData['OK'] ? (
|
|
|
- <el-popconfirm
|
|
|
- style="margin-left: 10px"
|
|
|
- title="确定弃审吗?"
|
|
|
- onOnConfirm={() => this.handleAbandon(row.id)}
|
|
|
- >
|
|
|
+ <el-popconfirm title="确定弃审吗?" onOnConfirm={() => this.handleAbandon(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
弃审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
{row.examineStatus == statusData['WAIT'] && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
|
- <el-popconfirm style="margin-left: 10px" title="确定撤回?" onOnConfirm={() => this.handleCancel(row.id)}>
|
|
|
+ <el-popconfirm title="确定撤回?" onOnConfirm={() => this.handleCancel(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
撤回
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
- <el-button style="margin-left: 10px" type="text" onClick={() => this.toDetail(row)}>
|
|
|
+ <el-button type="text" onClick={() => this.toDetail(row)}>
|
|
|
详情
|
|
|
</el-button>
|
|
|
|
|
|
{row.examineStatus === statusData['OK'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
- <el-button style="margin-left: 10px" type="text" onClick={() => this.toReturn(row)}>
|
|
|
+ <el-button type="text" onClick={() => this.toReturn(row)}>
|
|
|
退订
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus === statusData['SAVE'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
- <el-popconfirm
|
|
|
- style="margin-left: 10px"
|
|
|
- title="确定关闭吗?"
|
|
|
- onOnConfirm={() => this.handleClose(row.id)}
|
|
|
- >
|
|
|
+ <el-popconfirm title="确定关闭吗?" onOnConfirm={() => this.handleClose(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
关闭
|
|
|
</el-button>
|