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