更新审批表单

This commit is contained in:
yaooo 2023-11-02 10:45:14 +08:00
parent 3480876177
commit 0ad2056cea
1 changed files with 173 additions and 0 deletions

View File

@ -1355,6 +1355,179 @@ class OaApprove extends ApiController
],
];
break;
case 10:
//用车
$field = [
'start_time' => [
'title' => '开始时间',
'type' => 'input',
'item' => (object)[]
],
'end_time' => [
'title' => '结束时间',
'type' => 'input',
'item' => (object)[]
],
'address' => [
'title' => '用车目的地',
'type' => 'input',
'item' => (object)[]
],
'detail_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 11:
//用车归还
$field = [
'detail_type' => [
'title' => '车辆选择',
'type' => 'select',
'item' => (object)[]
],
'detail_time' => [
'title' => '归还时间',
'type' => 'input',
'item' => (object)[]
],
'num' => [
'title' => '用车前公里数',
'type' => 'input',
'item' => (object)[]
],
'num1' => [
'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 11:
//借款申请
$field = [
'amount' => [
'title' => '借款金额',
'type' => 'input',
'item' => (object)[]
],
'detail_type' => [
'title' => '借款类型',
'type' => 'select',
'item' => [
1 => '差旅费',
2 => '办公费',
3 => '招待费',
4 => '交通费',
5 => '通讯费',
6 => '采购付款',
7 => '其他',
]
],
'detail_time' => [
'title' => '申请日期',
'type' => 'input',
'item' => (object)[]
],
'name' => [
'title' => '借款人',
'type' => 'select',
'item' => (object)[]
],
'bank' => [
'title' => '银行账号',
'type' => 'input',
'item' => (object)[]
],
'address' => [
'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;
default:
$field = [];
}