feat: 工作流程负责人新增剔除模式(改变任务负责人并保留操作状态的人员)

This commit is contained in:
kuaifan
2022-01-25 23:46:47 +08:00
parent a98e4dbcd4
commit 4a42ce87a2
3 changed files with 12 additions and 2 deletions

View File

@@ -1677,6 +1677,9 @@ class ProjectController extends AbstractController
if ($usertype == 'replace' && empty($userids)) {
throw new ApiException("状态[{$item['name']}]设置错误,设置流转模式时必须填写状态负责人");
}
if ($usertype == 'merge' && empty($userids)) {
throw new ApiException("状态[{$item['name']}]设置错误,设置剔除模式时必须填写状态负责人");
}
if ($userlimit && empty($userids)) {
throw new ApiException("状态[{$item['name']}]设置错误,设置限制负责人时必须填写状态负责人");
}