更新审批操作

This commit is contained in:
yaooo 2023-11-04 16:04:07 +08:00
parent 905aff8c8a
commit 7676a83e96
1 changed files with 9 additions and 7 deletions

View File

@ -260,13 +260,15 @@ class OaApprove extends ApiController
if (empty($param['check'])) {
$this->apiError("审批状态不能为空");
}
if (empty($param['content'])) {
$this->apiError("审批内容不能为空");
}
//1审核结束 2下一审批人
if (($param['check'] != 3) && empty($param['check_node'])) {
$this->apiError("审批节点不能为空");
}
if ($param['check'] != 3) {
if (empty($param['content'])) {
$this->apiError("审批内容不能为空");
}
//1审核结束 2下一审批人
if (empty($param['check_node'])) {
$this->apiError("审批节点不能为空");
}
}
$id = $param['id'];
$type = $param['type'];