query('SELECT id,username FROM users')->fetchAll() as $u) { $usersMap[(int)$u['id']] = (string)$u['username']; } $statusOptions = ['pending' => '待审批', 'approved' => '已通过', 'rejected' => '已驳回']; $statusPillMap = ['pending' => 'due', 'approved' => 'ok', 'rejected' => 'done']; $typeLabelMap = ['archive' => '档案', 'archive_batch' => '批量档案']; $targetOptions = []; $requesterOptions = []; foreach ($allApprovals as $ap) { $tid = (string)($ap['target_id'] ?? ''); if ($tid !== '' && !isset($targetOptions[$tid])) { $aid = (int)$tid; $targetOptions[$tid] = 'ID:' . $aid . (isset($archiveMap[$aid]) ? ' · ' . (string)$archiveMap[$aid]['name'] : ''); } $rname = trim((string)($ap['requested_name'] ?? '')); if ($rname !== '') { $requesterOptions[$rname] = true; } } $hasFilter = $filterStatus !== 'pending' || $filterTarget !== '' || $filterRequester !== ''; pageHeader($me); ?>

删除审批

双管理员删除闭环 · 申请人不能自审
条申请 清除全部筛选
$ap): $st = (string)($ap['status'] ?? ''); $isSelf = (int)($ap['requested_by'] ?? 0) === (int)$me['id']; ?>
申请时间删除目标类型申请人状态审批操作
申请单号
已处理 申请人不能自审
暂无符合条件的审批记录