退回缺陷修正合并

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() { function onClickOK() {
const nextTaskUser = {};
if (_action.value === 'agree' && !isEnd.value) {
const isEmpty = flowNextNodes.value.find((node) => !node.assignees?.length); const isEmpty = flowNextNodes.value.find((node) => !node.assignees?.length);
if (!isEnd.value && _action.value === 'agree' && isEmpty) { if (isEmpty) {
return message.error('请选择审批人'); return message.error('请选择审批人');
} }
const nextTaskUser = {};
flowNextNodes.value.forEach((nNode) => { flowNextNodes.value.forEach((nNode) => {
nextTaskUser[nNode.activityId] = isEnd.value ? '' : nNode.assignees.join(','); nextTaskUser[nNode.activityId] = isEnd.value ? '' : nNode.assignees.join(',');
}); });
}
if (_callback && typeof _callback === 'function') { if (_callback && typeof _callback === 'function') {
loading.value = true; loading.value = true;
_callback({ _callback({