// ─── 조달 등재 정보 (제품 상세 페이지용) ─────────────────────────────────────── // quote-specs.jsx 의 g2b 데이터를 읽어 "조달 등재 품목" 카드를 렌더한다. // 등재가 확인되지 않은 제품(verified:false)은 아무것도 출력하지 않는다. const G2BPanel = ({ solKey, lang }) => { const isKo = lang !== 'en'; const L = o => (o && (o[lang] || o.ko || o.en)) || ''; if (!window.hasG2B || !window.hasG2B(solKey)) return null; const g = window.quoteSpecFor(solKey).g2b; return (
{isKo?'조달 등재 품목':'Listed on G2B'} {g.priority && {isKo?'우선구매대상':'Priority purchase'}} {L(g.vendor)}
{L(g.cat)} · {L(g.contract)} · {isKo?'납품기한':'Lead time'} {L(g.lead)}
{g.items.map(it=>())}
{isKo?'식별번호':'Item no.'}{isKo?'품목':'Item'}{isKo?'단위':'Unit'}
{it.id}{L(it.name)}{L(it.unit)}
{g.tiers && (
{isKo?'수량 구간':'Volume tiers'}{g.tiers.map((t,i)=>{L(t)})}
)}
{isKo?'나라장터 디지털서비스몰에서 구매할 수 있습니다. 단가는 조달청 계약 기준이며 변동될 수 있습니다.' :'Available through the G2B digital service mall. Prices follow the procurement contract and may change.'}
); }; window.G2BPanel = G2BPanel;