|
|
@@ -201,19 +201,19 @@
|
|
|
(item) => item.id == this.form.userId
|
|
|
);
|
|
|
//主管指派采购员
|
|
|
- if (this.taskDefinitionKey === 'deptLeaderAssign') {
|
|
|
- if (!this.form.userId) {
|
|
|
- this.$message.warning(`请选择采购员!`);
|
|
|
- return;
|
|
|
- }
|
|
|
- await assign({
|
|
|
- userId: userInfo.id,
|
|
|
- userName: userInfo.name,
|
|
|
- id: this.taskId,
|
|
|
- reason: this.form.reason,
|
|
|
- businessId: this.businessId
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (this.taskDefinitionKey === 'deptLeaderAssign') {
|
|
|
+ // if (!this.form.userId) {
|
|
|
+ // this.$message.warning(`请选择采购员!`);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // await assign({
|
|
|
+ // userId: userInfo.id,
|
|
|
+ // userName: userInfo.name,
|
|
|
+ // id: this.taskId,
|
|
|
+ // reason: this.form.reason,
|
|
|
+ // businessId: this.businessId
|
|
|
+ // });
|
|
|
+ // }
|
|
|
// //采购员核对
|
|
|
// if (this.taskDefinitionKey === 'purchaserCheck') {
|
|
|
// let arr = await this.getTableValue();
|
|
|
@@ -223,7 +223,7 @@
|
|
|
// await UpdateInformation(arr);
|
|
|
// }
|
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
|
- API({
|
|
|
+ await API({
|
|
|
id: this.taskId,
|
|
|
reason: this.form.reason,
|
|
|
variables: {
|
|
|
@@ -236,8 +236,8 @@
|
|
|
title: status === 0 ? '驳回' : ''
|
|
|
});
|
|
|
},
|
|
|
- rejectTask(status) {
|
|
|
- rejectTask({
|
|
|
+ async rejectTask(status) {
|
|
|
+ await rejectTask({
|
|
|
id: this.taskId,
|
|
|
reason: this.form.reason,
|
|
|
variables: {
|