退回缺陷修正合并

This commit is contained in:
yaoyn
2024-07-12 09:44:31 +08:00
parent 8081eeb79d
commit d85c09bd83

View File

@ -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({