退回缺陷修正合并
This commit is contained in:
@ -122,14 +122,16 @@
|
||||
}
|
||||
|
||||
function onClickOK() {
|
||||
const isEmpty = flowNextNodes.value.find((node) => !node.assignees?.length);
|
||||
if (!isEnd.value && _action.value === 'agree' && isEmpty) {
|
||||
return message.error('请选择审批人');
|
||||
}
|
||||
const nextTaskUser = {};
|
||||
flowNextNodes.value.forEach((nNode) => {
|
||||
nextTaskUser[nNode.activityId] = isEnd.value ? '' : nNode.assignees.join(',');
|
||||
});
|
||||
if (_action.value === 'agree' && !isEnd.value) {
|
||||
const isEmpty = flowNextNodes.value.find((node) => !node.assignees?.length);
|
||||
if (isEmpty) {
|
||||
return message.error('请选择审批人');
|
||||
}
|
||||
flowNextNodes.value.forEach((nNode) => {
|
||||
nextTaskUser[nNode.activityId] = isEnd.value ? '' : nNode.assignees.join(',');
|
||||
});
|
||||
}
|
||||
if (_callback && typeof _callback === 'function') {
|
||||
loading.value = true;
|
||||
_callback({
|
||||
|
||||
Reference in New Issue
Block a user