feat: 新审批接口(开发中)

This commit is contained in:
gaoyunqi
2024-03-05 11:29:53 +08:00
parent 106c07f921
commit b9dd84e576
2 changed files with 18 additions and 4 deletions

View File

@ -74,6 +74,7 @@
label: item['F_RealName']
};
});
formState.assignees = selected;
}
}
if (action === 'reject') {
@ -89,10 +90,15 @@
}
function onClickOK() {
const nextTaskUser = {};
if (_nextNodes.length === 1) {
nextTaskUser[_nextNodes[0].activityId] = formState.assignees.join(',');
}
if (_callback && typeof _callback === 'function') {
_callback({
opinion: formState.opinion,
rejectNodeId: rejectNodeId.value
rejectNodeId: rejectNodeId.value,
nextTaskUser
});
}
isOpen.value = false;

View File

@ -96,7 +96,8 @@
approvedContent: '',
rejectNodeActivityId: '',
rejectNodeActivityIds: [],
circulateConfigs: []
circulateConfigs: [],
nextTaskUser: {} // 格式为taskKey: 用户id逗号分隔
});
let approvedType = ref(ApproveType.AGREE);
@ -114,7 +115,12 @@
approvalData.approvedResult = ApproveCode.AGREE;
opinionDlg.value.toggleDialog({
action: 'agree',
nextNodes
nextNodes,
callback: (args) => {
approvalData.approvedContent = args.opinion;
approvalData.nextTaskUser = args.nextTaskUser;
onFinish({});
}
});
}
@ -128,6 +134,7 @@
callback: (args) => {
approvalData.approvedContent = args.opinion;
approvalData.rejectNodeActivityId = args.rejectNodeId;
approvalData.nextTaskUser = args.nextTaskUser;
onFinish({});
}
});
@ -237,7 +244,8 @@
circulateConfigs: approvalData.circulateConfigs,
/*stampId: values.stampId,
stampPassword: values.password,*/
isOldSystem: system
isOldSystem: system,
nextTaskUser: approvalData.nextTaskUser
};
}