物品归还

This commit is contained in:
2026-02-04 09:28:54 +08:00
parent 6496a40679
commit a16429ff3a
8 changed files with 192 additions and 17 deletions
+9 -1
View File
@@ -52,7 +52,15 @@ class InvRequisitionService
$config['order']['id'] = 'desc';
break;
case 'index':
$config['where']['applicant_id'] = $request->user->uid;
if(isset($p['status']) && $p['status']){
$config['where']['status'] = $p['status'];
}
if(isset($p['applicant_id']) && $p['applicant_id'] == 'self'){
$config['where']['applicant_id'] = $request->user->uid;
}elseif(isset($p['applicant_id']) && $p['applicant_id']){
$config['where']['applicant_id'] = $p['applicant_id'];
}
$config['order']['id'] = 'desc';
break;
case 'show':