feat(WEB): 수주 삭제 기능 추가 및 출하목록 데이터 수정

- 수주 상세 페이지에 삭제 기능 추가
  - 수주등록/취소 상태에서 삭제 버튼 표시
  - 삭제 확인 다이얼로그 구현
  - 삭제 후 목록 페이지로 이동

- 출하목록 데이터 누락 수정
  - 발주처/현장명 order_info 참조하도록 수정
  - 배송방식 라벨 API 응답값 사용

- 공통코드 API 함수 추가
  - getDeliveryMethodCodes, getDeliveryMethodOptions
  - getCodeLabel 유틸 함수
This commit is contained in:
2026-01-23 16:29:55 +09:00
parent 662a0cc4ac
commit bdf2bf8beb
5 changed files with 145 additions and 6 deletions

View File

@@ -118,4 +118,30 @@ export async function getItemTypeCodes() {
*/
export async function getItemTypeOptions() {
return getCommonCodeOptions('item_type');
}
/**
* 배송방식 코드 조회
*/
export async function getDeliveryMethodCodes() {
return getCommonCodes('delivery_method');
}
/**
* 배송방식 옵션 조회
*/
export async function getDeliveryMethodOptions() {
return getCommonCodeOptions('delivery_method');
}
/**
* 코드값으로 라벨 조회 (code → name 매핑)
*/
export async function getCodeLabel(group: string, code: string): Promise<string> {
const result = await getCommonCodes(group);
if (result.success && result.data) {
const found = result.data.find((item) => item.code === code);
return found?.name || code;
}
return code;
}