Skip to content

FMS 장기수선충당금 현황 (FE 메인테이너)

독자: FE 메인테이너/AI. 시설관리 단독으로 동작하며 선택적 적립 projection을 소비하는 현황 뷰. 정본 컴포저블: src/composables/useRepairReserve.js. BE: [[facility-repair-reserve.md]].

라우트·진입

  • /facility/maintenance/reserve/generalviews/facility/maintenance/reserve/general/IndexView.vue(Header+Main). 라우트 = maintenance app-view children에 추가.
  • 네비: components/facility/maintenance/AppSideNavMenuOrg.vue에 "장기수선충당금"(facility.repairReserve.navTitle) 항목 추가(정비/세팅 형제).

데이터 흐름 — useRepairReserve()

  • account(9112)·openingBalance·currentAccrual·accruedTotal·usedTotal·balance·works·projectionSource를 computed로 제공한다.
  • repairReserveProjection.js의 provider 미등록 시 수기 fallback, 등록 시 provider-neutral projection을 사용한다. useAllocations 직접 import는 제거했다.

화면 (MainOrg)

  • 잔액 스트립(비접힘, §8-3): 단일 최상위 수치 = 잔액 title-lg + 회계 계정(9112) 배지.
  • 3분할 요약 카드: 적립 누계 / 장기수선공사 사용 / 잔액.
  • 적립 내역 표: 개시 잔액(이월) + 당기 적립(projection) = 적립 누계.
  • 장기수선공사 내역 표: 일자·공사명·분류·금액·업체·상태 + tfoot 사용 합.
  • i18n: facility.repairReserve.*(ko/en). display-only(편집·발행 없음).

확장 포인트

  • 공사 추가/편집(Data Tool Bar + 시트) → useRepairReserve 사용 mutate + 실 분개(DR 9112).
  • 장기수선계획(주기표) 탭 추가. 예산 결산 장기수선비와 교차 배지.
  • ⚠ per-unit 워크오더(maintenance/unit·equipment/task)와 혼동 금지 — 충당금 대상은 공용부 대수선만.