feat: 장비 관리 API 통합 완료
- 장비 출고 API 연동 및 Provider 패턴 적용 - 장비 수정 API 연동 (데이터 로드 시 API 사용) - 장비 삭제 API 연동 (Controller 메서드 추가) - 장비 이력 조회 화면 추가 및 API 연동 - 모든 컨트롤러에 ChangeNotifier 패턴 적용 - 에러 처리 및 로딩 상태 관리 개선 - API/Mock 데이터 전환 가능 (Feature Flag) 진행률: 전체 API 통합 70%, 장비 관리 100% 완료
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:superport/screens/common/theme_shadcn.dart';
|
||||
import 'package:superport/screens/company/company_form.dart';
|
||||
import 'package:superport/screens/equipment/equipment_in_form.dart';
|
||||
import 'package:superport/screens/equipment/equipment_out_form.dart';
|
||||
import 'package:superport/screens/equipment/equipment_history_screen.dart';
|
||||
import 'package:superport/screens/license/license_form.dart'; // MaintenanceFormScreen으로 사용
|
||||
import 'package:superport/screens/user/user_form.dart';
|
||||
import 'package:superport/screens/warehouse_location/warehouse_location_form.dart';
|
||||
@@ -141,6 +142,16 @@ class SuperportApp extends StatelessWidget {
|
||||
return MaterialPageRoute(
|
||||
builder: (context) => EquipmentOutFormScreen(equipmentOutId: id),
|
||||
);
|
||||
|
||||
// 장비 이력 조회
|
||||
case Routes.equipmentHistory:
|
||||
final args = settings.arguments as Map<String, dynamic>;
|
||||
return MaterialPageRoute(
|
||||
builder: (context) => EquipmentHistoryScreen(
|
||||
equipmentId: args['equipmentId'] as int,
|
||||
equipmentName: args['equipmentName'] as String,
|
||||
),
|
||||
);
|
||||
|
||||
// 회사 관련 라우트
|
||||
case Routes.companyAdd:
|
||||
|
||||
Reference in New Issue
Block a user