完善生产异常维修与备件管理功能

This commit is contained in:
2026-09-01 19:17:09 +08:00
parent 02a429af66
commit 32f1486f5e
49 changed files with 1765 additions and 121 deletions
@@ -49,7 +49,8 @@ class RepairRecordController extends Crud
];
$order = $order ?: 'repaired_at DESC, id DESC';
$total = $this->service->getCount($where);
$list = $this->service->selectList($where, $field, $page, $limit, $order, [], false);
// 与总数查询保持一致,启用关键词搜索字段。
$list = $this->service->selectList($where, $field, $page, $limit, $order, [], true);
return call_user_func([$this, $methods[$format] ?? 'formatNormal'], $list, $total);
} catch (\Throwable $e) {
return Json::fail($e->getMessage());