diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index ef97a78..4075ce1 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -1889,6 +1889,175 @@ class OaApprove extends ApiController ], ]; break; + case 20: + //转岗申请 + $field = [ + 'name' => [ + 'title' => '员工姓名', + 'type' => 'select', + 'item' => (object)[] + ], + 'detail_time' => [ + 'title' => '入职日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'department_type' => [ + 'title' => '所在部门', + 'type' => 'select', + 'item' => (object)[] + ], + 'position_type' => [ + 'title' => '担任职务', + 'type' => 'select', + 'item' => (object)[] + ], + 'num' => [ + 'title' => '转岗后部门', + 'type' => 'select', + 'item' => (object)[] + ], + 'num1' => [ + 'title' => '转岗后职务', + 'type' => 'select', + 'item' => (object)[] + ], + 'start_time' => [ + 'title' => '申请转岗日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'end_time' => [ + 'title' => '预计转岗日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'content' => [ + 'title' => '转岗原因', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'file_ids' => [ + 'title' => '附件', + 'type' => 'file', + 'item' => (object)[] + ], + 'flow_id' => [ + 'title' => '审批流程', + 'type' => 'select', + 'item' => $flowMap + ], + 'check_admin_ids' => [ + 'title' => '审核人', + 'type' => 'select', + 'item' => (object)[] + ], + 'copy_uids' => [ + 'title' => '抄送人', + 'type' => 'select', + 'item' => (object)[] + ], + ]; + break; + case 21: + //招聘需求 + $field = [ + 'department_type' => [ + 'title' => '招聘部门', + 'type' => 'select', + 'item' => (object)[] + ], + 'detail_time' => [ + 'title' => '到岗日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'position_type' => [ + 'title' => '招聘岗位', + 'type' => 'select', + 'item' => (object)[] + ], + 'num' => [ + 'title' => '招聘人数', + 'type' => 'input', + 'item' => (object)[] + ], + 'content' => [ + 'title' => '岗位职责', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'remark' => [ + 'title' => '任职要求', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'file_ids' => [ + 'title' => '附件', + 'type' => 'file', + 'item' => (object)[] + ], + 'flow_id' => [ + 'title' => '审批流程', + 'type' => 'select', + 'item' => $flowMap + ], + 'check_admin_ids' => [ + 'title' => '审核人', + 'type' => 'select', + 'item' => (object)[] + ], + 'copy_uids' => [ + 'title' => '抄送人', + 'type' => 'select', + 'item' => (object)[] + ], + ]; + break; + case 22: + //通用审批 + $field = [ + 'name' => [ + 'title' => '审批内容', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_type' => [ + 'title' => '紧急程度', + 'type' => 'select', + 'item' => [ + 1 => '普通', + 2 => '紧急', + 3 => '特急', + ], + ], + 'content' => [ + 'title' => '详细描述', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'file_ids' => [ + 'title' => '附件', + 'type' => 'file', + 'item' => (object)[] + ], + 'flow_id' => [ + 'title' => '审批流程', + 'type' => 'select', + 'item' => $flowMap + ], + 'check_admin_ids' => [ + 'title' => '审核人', + 'type' => 'select', + 'item' => (object)[] + ], + 'copy_uids' => [ + 'title' => '抄送人', + 'type' => 'select', + 'item' => (object)[] + ], + ]; + break; default: $field = []; }