[feat] negodata: 견적 목록 작성자 컬럼·내 견적 필터 + 검색바 클리어(X) 버튼
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
33ce82997a
commit
7b7a37ee98
15 files changed
+104
-14
No files matched your search
@@ -143,6 +143,14 @@ export function QuotationTable({ data, products, onOpenDetail, onFilterChain, fo
|
||||
<Typography as="span" variant="small" className="text-xs text-inherit">{est.createdDate ?? '-'}</Typography>
|
||||
),
|
||||
},
|
||||
{
|
||||
header: '작성자',
|
||||
align: 'center',
|
||||
cellClassName: 'text-muted-foreground whitespace-nowrap',
|
||||
cell: (est) => (
|
||||
<Typography as="span" variant="small" className="text-xs text-inherit">{est.creatorName ?? '-'}</Typography>
|
||||
),
|
||||
},
|
||||
{
|
||||
header: '협력사수',
|
||||
align: 'center',
|
||||
|
||||
@@ -18,6 +18,7 @@ export type Estimate = Partial<QuotationData> & {
|
||||
productId?: string;
|
||||
productName?: string;
|
||||
partnerIds?: string[];
|
||||
creatorName?: string; // 등록자(작성자) 이름. 서버 목록 조인(user_id→users.name)
|
||||
participationCount?: number;
|
||||
winnerPartnerId?: string | null;
|
||||
finalPrice?: number;
|
||||
@@ -82,6 +83,7 @@ export function mapQuotation(q: QuotationData): Estimate {
|
||||
productName: q.item_name ?? undefined, // products 목록에 없을 때 표기 폴백
|
||||
dueDate: formatDueDate(q.end_time),
|
||||
createdDate: fmtDateTime(q.created_at),
|
||||
creatorName: q.creator_name ?? undefined,
|
||||
participationCount: q.participation_count ?? 0,
|
||||
winnerPartnerId: q.preferred_sp_id ?? q.preferred_sp_name ?? null,
|
||||
isEqualPrice: !!q.equal_bid_yn,
|
||||
|
||||
Reference in new issue
Block a user