更新到账操作

This commit is contained in:
yaooo 2023-11-04 16:01:46 +08:00
parent ea14c3ef45
commit 905aff8c8a
1 changed files with 5 additions and 5 deletions

View File

@ -256,17 +256,17 @@ class OaApprove extends ApiController
if (empty($param['type'])) { if (empty($param['type'])) {
$this->apiError("审批流程类型不能为空"); $this->apiError("审批流程类型不能为空");
} }
//1审核结束 2下一审批人 // 1同意 2拒绝 3撤销
if (empty($param['check_node'])) {
$this->apiError("审批节点不能为空");
}
// 1同意 2拒绝
if (empty($param['check'])) { if (empty($param['check'])) {
$this->apiError("审批状态不能为空"); $this->apiError("审批状态不能为空");
} }
if (empty($param['content'])) { if (empty($param['content'])) {
$this->apiError("审批内容不能为空"); $this->apiError("审批内容不能为空");
} }
//1审核结束 2下一审批人
if (($param['check'] != 3) && empty($param['check_node'])) {
$this->apiError("审批节点不能为空");
}
$id = $param['id']; $id = $param['id'];
$type = $param['type']; $type = $param['type'];