From 23c2559df3a6aec93eb9f745ec75494c34a26881 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 23 Nov 2023 16:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 211 ++++++++++++++++++++++++++++++- 1 file changed, 209 insertions(+), 2 deletions(-) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index 84df62d..a9f2c49 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -40,7 +40,7 @@ class OaApprove extends ApiController $list[$k]['create_time'] = date('Y-m-d H:i:s', $v['create_time']); $list[$k]['update_time'] = date('Y-m-d H:i:s', $v['update_time']); } - + /* $list[] = [ "id" => 9996, "type" => 3, @@ -66,7 +66,7 @@ class OaApprove extends ApiController "create_time" => "2022-01-10 16:21:32", "update_time" => "2022-01-10 16:21:32" ]; - + */ $loginAdmin = Db::name('Admin')->where(['id' => $uid])->find(); $did = $loginAdmin['did']; // 如果是人事部 @@ -646,6 +646,7 @@ class OaApprove extends ApiController $field = [ 'detail_type' => [ 'title' => '请假类型', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '事假', @@ -661,41 +662,49 @@ class OaApprove extends ApiController ], 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'duration' => [ 'title' => '请假工时', + 'required' => false, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '请假事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -706,41 +715,49 @@ class OaApprove extends ApiController $field = [ 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'address' => [ 'title' => '出差地点', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '出差事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -751,46 +768,55 @@ class OaApprove extends ApiController $field = [ 'address' => [ 'title' => '外出地点', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'duration' => [ 'title' => '外出时长', + 'required' => false, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '外出事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -801,31 +827,37 @@ class OaApprove extends ApiController $field = [ 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'content' => [ 'title' => '加班事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -837,36 +869,43 @@ class OaApprove extends ApiController $field = [ 'detail_type' => [ 'title' => '选择会议室', + 'required' => true, 'type' => 'select', 'item' => $meetingList, ], 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -877,11 +916,13 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '文件名称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '紧急程度', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '普通', @@ -891,36 +932,43 @@ class OaApprove extends ApiController ], 'address' => [ 'title' => '来文单位', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_time' => [ 'title' => '来文日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'content' => [ 'title' => '文件摘要', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -931,11 +979,13 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '设备名称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '紧急程度', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '普通', @@ -945,36 +995,43 @@ class OaApprove extends ApiController ], 'amount' => [ 'title' => '预计维修费用', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_time' => [ 'title' => '报修日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'content' => [ 'title' => '故障描述', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -986,21 +1043,25 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '借用人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'mobile' => [ 'title' => '借用人手机', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'department_type' => [ 'title' => '借用部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'detail_type' => [ 'title' => '借用类型', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '原件', @@ -1010,6 +1071,7 @@ class OaApprove extends ApiController ], 'other_type' => [ 'title' => '档案类型', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '公司资质', @@ -1024,41 +1086,49 @@ class OaApprove extends ApiController ], 'content' => [ 'title' => '所借档案用途', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'start_time' => [ 'title' => '借用日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'end_time' => [ 'title' => '拟归还日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'remark' => [ 'title' => '借用档案明细', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark1' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1070,21 +1140,25 @@ class OaApprove extends ApiController $field = [ 'detail_time' => [ 'title' => '用印日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'detail_type' => [ 'title' => '印章类型', + 'required' => true, 'type' => 'select', 'item' => $cateList ], 'name' => [ 'title' => '文件名称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'other_type' => [ 'title' => '文件类型', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '公告类', @@ -1097,31 +1171,37 @@ class OaApprove extends ApiController ], 'num' => [ 'title' => '文件份数', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '用印事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1133,41 +1213,49 @@ class OaApprove extends ApiController $field = [ 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'address' => [ 'title' => '用车目的地', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '车辆选择', + 'required' => true, 'type' => 'select', 'item' => $carList ], 'content' => [ 'title' => '用车事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1179,41 +1267,49 @@ class OaApprove extends ApiController $field = [ 'detail_type' => [ 'title' => '车辆选择', + 'required' => true, 'type' => 'select', 'item' => $carList ], 'detail_time' => [ 'title' => '归还时间', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'num' => [ 'title' => '用车前公里数', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'num1' => [ 'title' => '用车后公里数', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1225,56 +1321,67 @@ class OaApprove extends ApiController $field = [ 'amount' => [ 'title' => '借款金额', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '借款类型', + 'required' => true, 'type' => 'select', 'item' => $cateList ], 'detail_time' => [ 'title' => '申请日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'name' => [ 'title' => '借款人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'bank' => [ 'title' => '银行账号', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'address' => [ 'title' => '开户行', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '借款事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1285,11 +1392,13 @@ class OaApprove extends ApiController $field = [ 'amount' => [ 'title' => '付款金额', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '付款方式', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '银行卡', @@ -1303,51 +1412,61 @@ class OaApprove extends ApiController ], 'detail_time' => [ 'title' => '付款日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'name' => [ 'title' => '收款人全称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'bank' => [ 'title' => '银行账号', + 'required' => false, 'type' => 'input', 'item' => (object)[] ], 'address' => [ 'title' => '开户行', + 'required' => false, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '付款事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1358,41 +1477,49 @@ class OaApprove extends ApiController $field = [ 'amount' => [ 'title' => '奖励金额', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_time' => [ 'title' => '奖励日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'content' => [ 'title' => '奖励事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1403,51 +1530,61 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '物品名称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_time' => [ 'title' => '期望交付日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'num' => [ 'title' => '物品数量', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'amount' => [ 'title' => '采购金额', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '采购事由', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1458,51 +1595,61 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '活动名称', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'amount' => [ 'title' => '活动预算', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '活动说明', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'start_time' => [ 'title' => '开始时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'end_time' => [ 'title' => '结束时间', + 'required' => true, 'type' => 'datetime', 'item' => (object)[] ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1515,21 +1662,25 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '员工姓名', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_time' => [ 'title' => '入职日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'num' => [ 'title' => '手机号码', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'other_type' => [ 'title' => '性别', + 'required' => true, 'type' => 'radio', 'item' => [ 1 => '男', @@ -1538,31 +1689,37 @@ class OaApprove extends ApiController ], 'department_type' => [ 'title' => '入职部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'position_type' => [ 'title' => '担任职务', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'remark' => [ 'title' => '备注', + 'required' => false, 'type' => 'textarea', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1575,46 +1732,55 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '员工姓名', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'detail_time' => [ 'title' => '转正日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'department_type' => [ 'title' => '所在部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'position_type' => [ 'title' => '担任职务', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'content' => [ 'title' => '试用期评价', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1627,56 +1793,67 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '员工姓名', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'detail_time' => [ 'title' => '入职日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'department_type' => [ 'title' => '所在部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'position_type' => [ 'title' => '担任职务', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'start_time' => [ 'title' => '申请离职日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'end_time' => [ 'title' => '预计离职日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'content' => [ 'title' => '离职原因', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1689,66 +1866,79 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '员工姓名', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'detail_time' => [ 'title' => '入职日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'department_type' => [ 'title' => '所在部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'position_type' => [ 'title' => '担任职务', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'num' => [ 'title' => '转岗后部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'num1' => [ 'title' => '转岗后职务', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'start_time' => [ 'title' => '申请转岗日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'end_time' => [ 'title' => '预计转岗日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'content' => [ 'title' => '转岗原因', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1761,51 +1951,61 @@ class OaApprove extends ApiController $field = [ 'department_type' => [ 'title' => '招聘部门', + 'required' => true, 'type' => 'select', 'item' => $departmentList ], 'detail_time' => [ 'title' => '到岗日期', + 'required' => true, 'type' => 'date', 'item' => (object)[] ], 'position_type' => [ 'title' => '招聘岗位', + 'required' => true, 'type' => 'select', 'item' => $positionList ], 'num' => [ 'title' => '招聘人数', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'content' => [ 'title' => '岗位职责', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'remark' => [ 'title' => '任职要求', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ], @@ -1816,11 +2016,13 @@ class OaApprove extends ApiController $field = [ 'name' => [ 'title' => '审批内容', + 'required' => true, 'type' => 'input', 'item' => (object)[] ], 'detail_type' => [ 'title' => '紧急程度', + 'required' => true, 'type' => 'select', 'item' => [ 1 => '普通', @@ -1830,26 +2032,31 @@ class OaApprove extends ApiController ], 'content' => [ 'title' => '详细描述', + 'required' => true, 'type' => 'textarea', 'item' => (object)[] ], 'file_ids' => [ 'title' => '附件', + 'required' => false, 'type' => 'file', 'item' => (object)[] ], 'flow_id' => [ 'title' => '审批流程', + 'required' => true, 'type' => 'select', 'item' => $flowMap ], 'check_admin_ids' => [ 'title' => '审核人', + 'required' => true, 'type' => 'select', 'item' => (object)[] ], 'copy_uids' => [ 'title' => '抄送人', + 'required' => false, 'type' => 'select', 'item' => (object)[] ],