refactor: 회사 폼 UI 개선 및 코드 정리
Some checks failed
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled
Flutter Test & Quality Check / Build APK (push) Has been cancelled

- 담당자 연락처 필드를 드롭다운 + 입력 방식으로 분리
- 사용자 폼과 동일한 전화번호 UI 패턴 적용
- 미사용 위젯 파일 4개 정리 (branch_card, contact_info_* 등)
- 파일명 통일성 확보 (branch_edit_screen → branch_form, company_form_simplified → company_form)
- 네이밍 일관성 개선으로 유지보수성 향상
This commit is contained in:
JiWoong Sul
2025-08-18 17:57:16 +09:00
parent 93bceb8a6c
commit 6d745051b5
37 changed files with 2743 additions and 2446 deletions

View File

@@ -1,6 +1,4 @@
import 'address_model.dart';
/// 입고지 정보를 나타내는 모델 클래스
/// 입고지 정보를 나타내는 모델 클래스 (백엔드 API 호환)
class WarehouseLocation {
/// 입고지 고유 번호
final int id;
@@ -8,31 +6,61 @@ class WarehouseLocation {
/// 입고지명
final String name;
/// 입고지 주소
final Address address;
/// 주소 (단일 문자열)
final String? address;
/// 담당자명
final String? managerName;
/// 담당자 연락처
final String? managerPhone;
/// 수용량
final int? capacity;
/// 비고
final String? remark;
/// 활성 상태
final bool isActive;
/// 생성일
final DateTime createdAt;
WarehouseLocation({
required this.id,
required this.name,
required this.address,
this.address,
this.managerName,
this.managerPhone,
this.capacity,
this.remark,
});
this.isActive = true,
DateTime? createdAt,
}) : createdAt = createdAt ?? DateTime.now();
/// 복사본 생성 (불변성 유지)
WarehouseLocation copyWith({
int? id,
String? name,
Address? address,
String? address,
String? managerName,
String? managerPhone,
int? capacity,
String? remark,
bool? isActive,
DateTime? createdAt,
}) {
return WarehouseLocation(
id: id ?? this.id,
name: name ?? this.name,
address: address ?? this.address,
managerName: managerName ?? this.managerName,
managerPhone: managerPhone ?? this.managerPhone,
capacity: capacity ?? this.capacity,
remark: remark ?? this.remark,
isActive: isActive ?? this.isActive,
createdAt: createdAt ?? this.createdAt,
);
}
}