|
@@ -28,7 +28,6 @@
|
|
|
</el-form-item> -->
|
|
</el-form-item> -->
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="审批建议"
|
|
label="审批建议"
|
|
|
-
|
|
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: true,
|
|
required: true,
|
|
@@ -49,6 +48,7 @@
|
|
|
type="success"
|
|
type="success"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleAudit(1)"
|
|
@click="handleAudit(1)"
|
|
|
|
|
+ v-click-once
|
|
|
>通过
|
|
>通过
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
|
@@ -80,7 +80,11 @@
|
|
|
apspurchaseplan,
|
|
apspurchaseplan,
|
|
|
cancel
|
|
cancel
|
|
|
} from '@/api/bpm/components/apsMeterialPlan';
|
|
} from '@/api/bpm/components/apsMeterialPlan';
|
|
|
- import { approveTaskWithVariables, rejectTask,cancelTask } from '@/api/bpm/task';
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ approveTaskWithVariables,
|
|
|
|
|
+ rejectTask,
|
|
|
|
|
+ cancelTask
|
|
|
|
|
+ } from '@/api/bpm/task';
|
|
|
import { listAllUserBind } from '@/api/system/organization';
|
|
import { listAllUserBind } from '@/api/system/organization';
|
|
|
|
|
|
|
|
// 流程实例的详情页,可用于审批
|
|
// 流程实例的详情页,可用于审批
|
|
@@ -128,19 +132,19 @@
|
|
|
|
|
|
|
|
this._approveTaskWithVariables(status);
|
|
this._approveTaskWithVariables(status);
|
|
|
},
|
|
},
|
|
|
- rejectTask(status){
|
|
|
|
|
|
|
+ rejectTask(status) {
|
|
|
rejectTask({
|
|
rejectTask({
|
|
|
- id: this.taskId,
|
|
|
|
|
- reason: this.form.reason,
|
|
|
|
|
- pass: false
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- if (res.data.code != '-1') {
|
|
|
|
|
- this.$emit('handleAudit', {
|
|
|
|
|
- status,
|
|
|
|
|
- title: '驳回'
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ id: this.taskId,
|
|
|
|
|
+ reason: this.form.reason,
|
|
|
|
|
+ pass: false
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.data.code != '-1') {
|
|
|
|
|
+ this.$emit('handleAudit', {
|
|
|
|
|
+ status,
|
|
|
|
|
+ title: '驳回'
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
async _approveTaskWithVariables(status) {
|
|
async _approveTaskWithVariables(status) {
|
|
|
if (status == 1) {
|
|
if (status == 1) {
|