物品归还

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
@@ -43,6 +43,25 @@ class InvRequisitionController extends BaseController
}
}
/**
* 获取列表
*
* @param Request $request 请求对象
* @return mixed 返回分页数据及总数
*/
public function index(Request $request)
{
try {
$raw = $this->service->serviceList($request);
$data = $this->transformData($raw, method_exists($this, 'indexFormat')
? [$this, 'indexFormat']
: null);
return $this->success($data);
} catch (\Throwable $e) {
return $this->error($e->getMessage());
}
}
/**
* 列表页数据格式化
*