|
|
@@ -46,7 +46,6 @@
|
|
|
type="danger"
|
|
|
size="mini"
|
|
|
@click="handleAudit(0)"
|
|
|
- v-if="taskDefinitionKey != 'starter'"
|
|
|
>驳回
|
|
|
</el-button>
|
|
|
<!-- <el-dropdown
|
|
|
@@ -112,7 +111,7 @@
|
|
|
<script>
|
|
|
import { approveTaskWithVariables, rejectTask } from '@/api/bpm/task';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
- import { save } from '@/api/bpm/components/entrust';
|
|
|
+ import { save, pleaseReject } from '@/api/bpm/components/entrust';
|
|
|
|
|
|
// import {
|
|
|
// assign,
|
|
|
@@ -157,16 +156,17 @@
|
|
|
async edit() {
|
|
|
this.visible = true;
|
|
|
this.formData = await this.getTableValue();
|
|
|
+ console.log(this.id, '85858');
|
|
|
},
|
|
|
async handleAudit(status) {
|
|
|
//申请人申请
|
|
|
- if (this.taskDefinitionKey === 'starter') {
|
|
|
- const data = await this.getTableValue();
|
|
|
- // return
|
|
|
- if (data) {
|
|
|
- await save(data);
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (this.taskDefinitionKey === 'starter') {
|
|
|
+ // const data = await this.getTableValue();
|
|
|
+ // // return
|
|
|
+ // if (data) {
|
|
|
+ // await save(data);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
await this._approveTaskWithVariables(status);
|
|
|
},
|
|
|
async save() {
|