fix(M01): 잡힌 품목 이름 · 모달 검색 칸 괄호 앞 낱말 · 상세 재료 줄 모달 서버 품목 · 단위경고 딱지 상세 줄에도 (PLAN 8-5)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
@@ -106,6 +106,8 @@ interface Entry {
|
||||
/** 서버 요소조각의 첫 요소 — 자리 표시 든 줄이 입력으로 풀린 키 · 글 */
|
||||
unitRef?: string;
|
||||
unitText?: string;
|
||||
/** 자재 단위가 줄 단위와 성격이 다름 — 「줄 m · 자재 Ton」 */
|
||||
warn?: string;
|
||||
}
|
||||
|
||||
/** 재료 고르기 줄 — `요소` 가 글 대신 {구분·상세구분·규격·대표} 객체 */
|
||||
@@ -237,6 +239,7 @@ function entries(ctx: DetailContext): Entry[] {
|
||||
qtyFrag: [{ text: item.수량 }],
|
||||
price: price === undefined || price === null ? "" : formatPrice(price),
|
||||
amount: line ? line.금액 : null,
|
||||
warn: line?.단위경고,
|
||||
extra: false,
|
||||
open: (self) =>
|
||||
openMaterialModal({
|
||||
@@ -338,6 +341,14 @@ function lineRow(e: Entry): HTMLElement {
|
||||
? [el("div", { className: "m01-logic__tag", text: `${e.share} ${tl("Share")}` })]
|
||||
: []),
|
||||
...(e.spec ? [el("div", { className: "m01-logic__muted", text: e.spec })] : []),
|
||||
...(e.warn
|
||||
? [
|
||||
el("div", {
|
||||
className: "m01-logic__tag m01lab__warn",
|
||||
text: `${tx("Calc_UnitWarn")} · ${e.warn}`,
|
||||
}),
|
||||
]
|
||||
: []),
|
||||
],
|
||||
}),
|
||||
cellOf(e.unit),
|
||||
|
||||
Reference in New Issue
Block a user