feat(phase1): admin 견적 리스트 발주 뱃지 + 진행 상태 라벨 확장
- status 타입에 'in_progress' | 'completed' | 'delivered' 추가 - STATUS 맵 확장: 3개 신규 상태 추가 및 accepted 라벨 변경 * accepted: '수락 · 발주' (기존 녹색) * in_progress: '진행중 · 발주' (파란색) * completed: '완료 · 발주' (에메랄드) * delivered: '납품 완료 · 발주' (틸) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ interface Quote {
|
|||||||
title: string;
|
title: string;
|
||||||
client_name: string;
|
client_name: string;
|
||||||
client_email: string;
|
client_email: string;
|
||||||
status: 'draft' | 'sent' | 'accepted' | 'rejected';
|
status: 'draft' | 'sent' | 'accepted' | 'rejected' | 'in_progress' | 'completed' | 'delivered';
|
||||||
valid_until: string | null;
|
valid_until: string | null;
|
||||||
public_token: string;
|
public_token: string;
|
||||||
items: { unitPrice: number; quantity: number; optional: boolean }[];
|
items: { unitPrice: number; quantity: number; optional: boolean }[];
|
||||||
@@ -19,8 +19,11 @@ interface Quote {
|
|||||||
const STATUS = {
|
const STATUS = {
|
||||||
draft: { label: '초안', color: 'bg-slate-700 text-slate-300' },
|
draft: { label: '초안', color: 'bg-slate-700 text-slate-300' },
|
||||||
sent: { label: '발송됨', color: 'bg-blue-900/50 text-blue-400' },
|
sent: { label: '발송됨', color: 'bg-blue-900/50 text-blue-400' },
|
||||||
accepted: { label: '수락됨', color: 'bg-green-900/50 text-green-400' },
|
accepted: { label: '수락 · 발주', color: 'bg-green-900/50 text-green-400' },
|
||||||
rejected: { label: '거절됨', color: 'bg-red-900/50 text-red-400' },
|
rejected: { label: '거절됨', color: 'bg-red-900/50 text-red-400' },
|
||||||
|
in_progress: { label: '진행중 · 발주', color: 'bg-blue-900/50 text-blue-400' },
|
||||||
|
completed: { label: '완료 · 발주', color: 'bg-emerald-900/50 text-emerald-400' },
|
||||||
|
delivered: { label: '납품 완료 · 발주', color: 'bg-teal-900/50 text-teal-400' },
|
||||||
};
|
};
|
||||||
|
|
||||||
function calcTotal(items: Quote['items']) {
|
function calcTotal(items: Quote['items']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user