From 0ad2056cead043d9128b182c762c3faa3ed20190 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 2 Nov 2023 10:45:14 +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 | 173 +++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index b831d6c..1bd1c67 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -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 = []; }