更新审批表单

This commit is contained in:
yaooo 2023-11-02 11:43:06 +08:00
parent 2ed590c763
commit 2d5bfd7b4e
1 changed files with 223 additions and 0 deletions

View File

@ -1666,6 +1666,229 @@ class OaApprove extends ApiController
],
];
break;
case 16:
//活动经费
$field = [
'name' => [
'title' => '活动名称',
'type' => 'input',
'item' => (object)[]
],
'amount' => [
'title' => '活动预算',
'type' => 'input',
'item' => (object)[]
],
'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)[]
],
'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 17:
//入职申请
$field = [
'name' => [
'title' => '员工姓名',
'type' => 'input',
'item' => (object)[]
],
'detail_time' => [
'title' => '入职日期',
'type' => 'input',
'item' => (object)[]
],
'num' => [
'title' => '手机号码',
'type' => 'input',
'item' => (object)[]
],
'other_type' => [
'title' => '性别',
'type' => 'radio',
'item' => [
1 => '男',
2 => '女',
]
],
'department_type' => [
'title' => '入职部门',
'type' => 'select',
'item' => (object)[]
],
'position_type' => [
'title' => '担任职务',
'type' => 'select',
'item' => (object)[]
],
'remark' => [
'title' => '备注',
'type' => 'textarea',
'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 18:
//转正申请
$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)[]
],
'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 19:
//离职申请
$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)[]
],
'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;
default:
$field = [];
}