refactor(b09): 옛 탭 옮기기 ④ 중기경비계산서 — 옛 BaseData 에서 UI_MachineExpense 로
- 화면 확인: 옮기기 전후 같음 — 중기 탭 표 19 · 줄 171 · 계산서 18 장(불도저 19 손료계수 1811 · 시간당 손료 35,884.965) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016VBGFXB9AbJBwXP19z75Qq
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
* - 목록표 = 내역이 쓴 시간당 중기만, 처음 쓰인 차례(서버 `lists.machine`).
|
||||
* - 줄을 누르면 아래에 그 기종의 중기사용료 호표 — 손료(경비) · 운전원(노무) · 주연료(재료) · 잡품(재료).
|
||||
* ⚠ 잡품은 「주연료비 × 율」 가산 행 — 수량 칸에 율(%), 단가 칸에 밑수(주연료비)가 옴(실무 표 그대로).
|
||||
* - 그 아래 중기경비계산서(취득가·손료계수·연료·조종원 과정)는 옛 표를 그대로 이어 보임.
|
||||
* - 그 아래 중기경비계산서(취득가·손료계수·연료·조종원 과정) — _UI_MachineExpense.
|
||||
* ========================================================================== */
|
||||
|
||||
import type { B09Tab, B09TabContext } from "./B09_Estimation_UI_Shell_Types";
|
||||
import { renderDetail } from "./B09_Estimation_UI_Detail";
|
||||
import { drawMachineExpense, fetchMachineExpense } from "./B09_Estimation_UI_BaseData";
|
||||
import { drawMachineExpense, fetchMachineExpense } from "./B09_Estimation_UI_MachineExpense";
|
||||
import { L, el, hint, numberCell, plainTable, won } from "./B09_Estimation_UI_Sheet";
|
||||
import { loadBill, type BillDto } from "./B09_Estimation_UI_Store";
|
||||
|
||||
@@ -62,7 +62,7 @@ function draw(ctx: B09TabContext, bill: BillDto): void {
|
||||
detail.append(hint(L("B09_Sheet_PickSheet")));
|
||||
}
|
||||
if (ctx.projectId) {
|
||||
// 중기경비계산서 — 「그 값이 왜 나왔나」(옛 표 그대로, 옛 파일을 걷을 때 함께 옮김).
|
||||
// 중기경비계산서 — 「그 값이 왜 나왔나」(옛 표를 옮겨 온 _UI_MachineExpense).
|
||||
void fetchMachineExpense(ctx.projectId)
|
||||
.then((data) => drawMachineExpense(expense, data))
|
||||
.catch(() => expense.append(hint(L("B09_Sheet_LoadFailed"), true)));
|
||||
|
||||
Reference in New Issue
Block a user