|
@@ -101,12 +101,27 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="180" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-popconfirm style="margin-right: 10px;" title="确定申请吗?" @onConfirm="handleSubmit(scope.row.id, 'WAIT')" v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
|
|
|
+ <el-popconfirm
|
|
|
+ style="margin-right: 10px;"
|
|
|
+ title="确定申请吗?"
|
|
|
+ @onConfirm="handleSubmit(scope.row.id, 'WAIT')"
|
|
|
+ v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
|
|
|
<el-button slot="reference" type="text">申请</el-button>
|
|
|
</el-popconfirm>
|
|
|
- <el-popconfirm style="margin-right: 10px;" title="确定撤回吗?" @onConfirm="handleSubmit(scope.row.id, 'SAVE')" v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
|
|
|
+ <el-popconfirm
|
|
|
+ style="margin-right: 10px;"
|
|
|
+ title="确定撤回吗?"
|
|
|
+ @onConfirm="handleSubmit(scope.row.id, 'SAVE')"
|
|
|
+ v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
|
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
|
</el-popconfirm>
|
|
|
+ <el-popconfirm
|
|
|
+ style="margin-right: 10px;"
|
|
|
+ title="确定弃审吗?"
|
|
|
+ @onConfirm="handleAbandon(scope.row.id)"
|
|
|
+ v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
|
|
|
+ <el-button slot="reference" type="text">弃审</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
<el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">编辑</el-button>
|
|
|
<el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审单</el-button>
|
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
@@ -141,7 +156,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getApplyList, submitApply, deleteApply } from "@/api/supply/apply";
|
|
|
+import { getApplyList, submitApply, deleteApply, abandonApply } from "@/api/supply/apply";
|
|
|
import ApplyDetail from "@/views/supply/apply/components/apply_detail";
|
|
|
import ApplyExamine from "@/views/supply/apply/components/apply_examine";
|
|
|
import ApplyForm from "@/views/supply/apply/components/apply_form";
|
|
@@ -314,6 +329,14 @@ export default {
|
|
|
this.getList();
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ // 弃审
|
|
|
+ handleAbandon(id) {
|
|
|
+ abandonApply({id}).then(res => {
|
|
|
+ this.$successMsg();
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|