|
@@ -6,6 +6,8 @@
|
|
|
:operation="operation()"
|
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
|
:columnParsing="columnParsing"
|
|
|
+ :tableEvents="tableEvents"
|
|
|
+ :tableAttributes="tableAttributes"
|
|
|
>
|
|
|
<Popu v-if="isShowDetail || isShowForm || isShowExamine || isShowReturn">
|
|
|
<RetailDetail v-if="isShowDetail" :list-item="queryItem" @backListFormDetail="backList" />
|
|
@@ -76,9 +78,9 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量审批',
|
|
|
- click: this.addOn(() => {
|
|
|
+ click: ()=>{
|
|
|
this.batchExamine()
|
|
|
- }),
|
|
|
+ },
|
|
|
isRole: this.$checkBtnRole('examine', this.$route.meta.roles)
|
|
|
}
|
|
|
]
|
|
@@ -181,21 +183,22 @@ 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\":\"初审通过\"}")
|
|
|
return (
|
|
|
<div class="operation-btns">
|
|
|
- {row.examineStatus === 'SAVE' ? (
|
|
|
+ {row.examineStatus === statusData['SAVE'] ? (
|
|
|
<el-popconfirm style="margin-left: 10px" title="确定提审?" onOnConfirm={() => this.handleSubmit(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
提审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
- {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ {row.examineStatus ==statusData['WAIT'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
<el-button style="margin-left: 10px" type="text" onClick={() => this.toExamine(row)}>
|
|
|
审核
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
- {this.$checkBtnRole('del', this.$route.meta.roles) && row.examineStatus === 'SAVE' ? (
|
|
|
+ {this.$checkBtnRole('del', this.$route.meta.roles) && row.examineStatus === statusData['SAVE'] ? (
|
|
|
<el-popconfirm
|
|
|
style="margin-left: 10px"
|
|
|
title="确定删除吗?"
|
|
@@ -206,12 +209,12 @@ export default {
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
- {row.examineStatus === 'SAVE' && this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
|
+ {row.examineStatus === statusData['SAVE'] && this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
|
<el-button style="margin-left: 10px" type="text" onClick="toForm(row)">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
- {this.$checkBtnRole('examine', this.$route.meta.roles) && row.examineStatus === 'OK' ? (
|
|
|
+ {this.$checkBtnRole('examine', this.$route.meta.roles) && row.examineStatus === statusData['OK'] ? (
|
|
|
<el-popconfirm
|
|
|
style="margin-left: 10px"
|
|
|
title="确定弃审吗?"
|
|
@@ -222,7 +225,7 @@ export default {
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
- {row.examineStatus == 'WAIT' && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
|
+ {row.examineStatus == statusData['WAIT'] && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
|
<el-popconfirm style="margin-left: 10px" title="确定撤回?" onOnConfirm={() => this.handleCancel(row.id)}>
|
|
|
<el-button slot="reference" type="text">
|
|
|
撤回
|
|
@@ -233,12 +236,12 @@ export default {
|
|
|
详情
|
|
|
</el-button>
|
|
|
|
|
|
- {row.examineStatus === 'OK' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ {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>
|
|
|
) : null}
|
|
|
- {row.examineStatus === 'SAVE' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ {row.examineStatus === statusData['SAVE'] && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
<el-popconfirm
|
|
|
style="margin-left: 10px"
|
|
|
title="确定关闭吗?"
|