From 348087617781c457eb822433af76efb138e5aeda Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 2 Nov 2023 10:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=89=B9=E8=A1=A8?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 407 +++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index 5360c07..b831d6c 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -948,6 +948,413 @@ class OaApprove extends ApiController ], ]; break; + case 3: + //外出 + $field = [ + 'address' => [ + 'title' => '外出地点', + 'type' => 'input', + 'item' => (object)[] + ], + 'start_time' => [ + 'title' => '开始时间', + 'type' => 'input', + 'item' => (object)[] + ], + 'end_time' => [ + 'title' => '结束时间', + 'type' => 'input', + 'item' => (object)[] + ], + 'duration' => [ + '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 4: + //加班 + $field = [ + '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 5: + //会议室预定 + $field = [ + 'detail_type' => [ + 'title' => '选择会议室', + 'type' => 'select', + 'item' => [ + 1 => '会议室一', + 2 => '会议室二', + 3 => '会议室三', + ], + ], + '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 6: + //公文流转 + $field = [ + 'name' => [ + 'title' => '文件名称', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_type' => [ + 'title' => '紧急程度', + 'type' => 'select', + 'item' => [ + 1 => '普通', + 2 => '紧急', + 3 => '特急', + ], + ], + 'address' => [ + 'title' => '来文单位', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_time' => [ + '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 7: + //物品维修 + $field = [ + 'name' => [ + 'title' => '设备名称', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_type' => [ + 'title' => '紧急程度', + 'type' => 'select', + 'item' => [ + 1 => '普通', + 2 => '紧急', + 3 => '特急', + ], + ], + 'amount' => [ + 'title' => '预计维修费用', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_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 8: + //资质借用 + $field = [ + 'name' => [ + 'title' => '借用人', + 'type' => 'select', + 'item' => (object)[] + ], + 'mobile' => [ + 'title' => '借用人手机', + 'type' => 'select', + 'item' => (object)[] + ], + 'department_type' => [ + 'title' => '借用部门', + 'type' => 'select', + 'item' => (object)[] + ], + 'detail_type' => [ + 'title' => '借用类型', + 'type' => 'select', + 'item' => [ + 1 => '原件', + 2 => '扫描件', + 3 => '复印件', + ] + ], + 'other_type' => [ + 'title' => '档案类型', + 'type' => 'select', + 'item' => [ + 1 => '公司资质', + 2 => '人员资质', + 3 => '离职/清退人员资质', + 4 => '注册人员执业印章', + 5 => '劳动合同', + 6 => '社保缴费记录', + 7 => '收入证明', + 8 => '其它', + ] + ], + 'content' => [ + 'title' => '所借档案用途', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'start_time' => [ + 'title' => '借用日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'end_time' => [ + 'title' => '拟归还日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'remark' => [ + 'title' => '借用档案明细', + 'type' => 'textarea', + 'item' => (object)[] + ], + 'remark1' => [ + '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 9: + //用章 + $field = [ + 'detail_time' => [ + 'title' => '用印日期', + 'type' => 'input', + 'item' => (object)[] + ], + 'detail_type' => [ + 'title' => '印章类型', + 'type' => 'select', + 'item' => [ + 1 => '公章', + 2 => '合同章', + 3 => '法人章', + 4 => '其他', + ], + ], + 'name' => [ + 'title' => '文件名称', + 'type' => 'input', + 'item' => (object)[] + ], + 'other_type' => [ + 'title' => '文件类型', + 'type' => 'select', + 'item' => [ + 1 => '公告类', + 2 => '规则制度类', + 3 => '合同类', + 4 => '资质更新类', + 5 => '员工证明', + 6 => '其他', + ], + ], + 'num' => [ + '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; default: $field = []; }