更新审批表单

This commit is contained in:
yaooo 2023-11-02 09:30:21 +08:00
parent abb6a2af29
commit 13bf34e626
1 changed files with 43 additions and 7 deletions

View File

@ -844,6 +844,7 @@ class OaApprove extends ApiController
switch ($type) switch ($type)
{ {
case 1: case 1:
//请假
$field = [ $field = [
'detail_type' => [ 'detail_type' => [
'title' => '请假类型', 'title' => '请假类型',
@ -891,21 +892,56 @@ class OaApprove extends ApiController
'item' => $flowMap 'item' => $flowMap
], ],
'check_admin_ids' => [ 'check_admin_ids' => [
'title' => '审核人ID',
'type' => 'select',
'item' => (object)[]
],
'check_admin_name' => [
'title' => '审核人', 'title' => '审核人',
'type' => 'select', 'type' => 'select',
'item' => (object)[] 'item' => (object)[]
], ],
'copy_uids' => [ 'copy_uids' => [
'title' => '抄送人ID', 'title' => '抄送人',
'type' => 'select', 'type' => 'select',
'item' => (object)[] 'item' => (object)[]
], ],
'copy_names' => [ ];
break;
case 2:
//出差
$field = [
'start_time' => [
'title' => '开始时间',
'type' => 'input',
'item' => (object)[]
],
'end_time' => [
'title' => '结束时间',
'type' => 'input',
'item' => (object)[]
],
'address' => [
'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' => '抄送人', 'title' => '抄送人',
'type' => 'select', 'type' => 'select',
'item' => (object)[] 'item' => (object)[]