Merge branch 'main' into feature/negodata

Helped-By: Claude Opus 4.8뀨 <noreply@anthropic.com>
This commit is contained in:
minaChoi committed 2026-07-06 16:58:04 +09:00
commit 3176ec4262
55 files changed
+915 -771

No files matched your search

@@ -317,21 +317,21 @@ export * from './resSupplierListMsg';
export * from './resSupplierMsg';
export * from './resSupplierSupplier';
export * from './resTargetBreakdown';
export * from './resTargetBreakdownAnchoringPrice';
export * from './resTargetBreakdownChosenBasis';
export * from './resTargetBreakdownInternetLowest';
export * from './resTargetBreakdownMdPrice';
export * from './resTargetBreakdownMsg';
export * from './resTargetBreakdownPurchase';
export * from './resTargetBreakdownSelling';
export * from './resTargetBreakdownTargetAnchoringPrice';
export * from './sessionData';
export * from './sessionDataAnchoringPrice';
export * from './sessionDataBidAt';
export * from './sessionDataBidPrice';
export * from './sessionDataEmailSentAt';
export * from './sessionDataRejectDeliveryType';
export * from './sessionDataRejectPrice';
export * from './sessionDataRejectReason';
export * from './sessionDataTargetAnchoringPrice';
export * from './sessionStatus';
export * from './supplierData';
export * from './supplierDataCode';
@@ -12,7 +12,7 @@ import type { ResTargetBreakdownPurchase } from './resTargetBreakdownPurchase';
import type { ResTargetBreakdownSelling } from './resTargetBreakdownSelling';
import type { TargetCandidate } from './targetCandidate';
import type { ResTargetBreakdownChosenBasis } from './resTargetBreakdownChosenBasis';
import type { ResTargetBreakdownTargetAnchoringPrice } from './resTargetBreakdownTargetAnchoringPrice';
import type { ResTargetBreakdownAnchoringPrice } from './resTargetBreakdownAnchoringPrice';
export interface ResTargetBreakdown {
result?: ErrorInfo;
@@ -25,8 +25,9 @@ export interface ResTargetBreakdown {
selling?: ResTargetBreakdownSelling;
fee?: number;
margin?: number;
anchoring_value?: number;
candidates?: TargetCandidate[];
chosen_basis?: ResTargetBreakdownChosenBasis;
target_price?: number;
target_anchoring_price?: ResTargetBreakdownTargetAnchoringPrice;
anchoring_price?: ResTargetBreakdownAnchoringPrice;
}
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ResTargetBreakdownTargetAnchoringPrice = number | null;
export type ResTargetBreakdownAnchoringPrice = number | null;
@@ -5,7 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
import type { QuotationType } from './quotationType';
import type { SessionDataTargetAnchoringPrice } from './sessionDataTargetAnchoringPrice';
import type { SessionDataAnchoringPrice } from './sessionDataAnchoringPrice';
import type { SessionStatus } from './sessionStatus';
import type { SessionDataBidPrice } from './sessionDataBidPrice';
import type { SessionDataBidAt } from './sessionDataBidAt';
@@ -23,7 +23,7 @@ export interface SessionData {
qt_round: number;
qt_type: QuotationType;
target_price: number;
target_anchoring_price?: SessionDataTargetAnchoringPrice;
anchoring_price?: SessionDataAnchoringPrice;
status: SessionStatus;
bid_price?: SessionDataBidPrice;
bid_at?: SessionDataBidAt;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type SessionDataTargetAnchoringPrice = number | null;
export type SessionDataAnchoringPrice = number | null;
@@ -104,7 +104,7 @@ export function DrawerHeaderCards({
<span className="font-sans font-bold text-foreground">{won(repSession?.target_price)}</span>
)}
</InfoField>
<InfoField label="앵커링가" value={won(repSession?.target_anchoring_price)} valueClassName="font-sans" />
<InfoField label="앵커링가" value={won(repSession?.anchoring_price)} valueClassName="font-sans" />
<InfoField label="견적상태" labelClassName="opacity-90 font-bold mb-1">
<QuotationStatusBadge status={quotation.status} />
</InfoField>
@@ -181,12 +181,12 @@ export function SessionsStatusTab({
<StatusPill tone={sessionStatusTone(sess.status)}>{sessionStatusLabel(sess.status)}</StatusPill>
</TableCell>
<TableCell className="p-3 text-right text-muted-foreground">
{sess.target_anchoring_price > 0 ? (
{sess.anchoring_price > 0 ? (
<>
₩{sess.target_anchoring_price.toLocaleString()}
₩{sess.anchoring_price.toLocaleString()}
{sess.target_price > 0 && (
<span className="ml-0.5 text-[10px] opacity-70">
({((1 - sess.target_anchoring_price / sess.target_price) * 100).toFixed(1)}%)
({((1 - sess.anchoring_price / sess.target_price) * 100).toFixed(1)}%)
</span>
)}
</>
@@ -122,15 +122,16 @@ export function TargetPriceModal({
})}
</div>
{/* 앵커링 (negodata: 앵커링가는 칸 rate v1.2로 산정·박제, 세팅 고정율 폐지) */}
{/* 앵커링 (negodata: 설정 anchoring_value 고정율) */}
<div className="mt-4 bg-muted/40 border border-border rounded p-3 space-y-1">
<Typography as="p" variant="small" className="font-bold text-foreground text-[11px]">앵커링</Typography>
{category && (
<Typography as="p" variant="small" className="text-[11px] text-muted-foreground">서비스 카테고리: {category}</Typography>
)}
<Typography as="p" variant="small" className="text-[11px] text-muted-foreground">공급 업체 유형: {supplierTypeLabel}</Typography>
<Typography as="p" variant="small" className="text-[11px] text-muted-foreground">앵커링 값: {bd.anchoring_value}</Typography>
<Typography as="p" variant="small" className="text-[11px] font-bold text-foreground">
앵커링가: {won(bd.target_anchoring_price)} <span className="font-normal text-[10px] text-muted-foreground">= 목표가 × (1 − 앵커링율)</span>
앵커링가: {won(bd.anchoring_price)} <span className="font-normal text-[10px] text-muted-foreground">= 목표가×(1−{bd.anchoring_value})</span>
</Typography>
</div>
</>
@@ -242,7 +242,7 @@ export type SessionView = {
item_name: string;
status: number;
target_price: number;
target_anchoring_price: number;
anchoring_price: number;
bid_price: number | null;
bid_at: string;
reject_reason: string | null;
@@ -379,7 +379,7 @@ export function mapServerSessionView(sd: SessionData, partners: Partner[], produ
item_name: product?.name || '-',
status: sd.status,
target_price: sd.target_price ?? 0,
target_anchoring_price: sd.target_anchoring_price ?? 0,
anchoring_price: sd.anchoring_price ?? 0,
bid_price: sd.bid_price ?? null,
bid_at: sd.bid_at ? fmtDateTime(sd.bid_at) : '-',
reject_reason: sd.reject_reason ?? null,