[feat] negodata: 견적 목표가 산정 개편 + 협상 초청메일 + 카드 사용구분
[견적·목표가] - 목표가 산정 KTC 기준 정비(MD 우선, 없으면 인터넷최저가·매입가·판매가 중 최저 / 신규는 인터넷최저가만) - 인터넷 평균 수수료 0.078 상수화(견적설정 컬럼 제거) - 앵커링가 세션 저장 + 목표가 클릭 시 산정내역 모달 - 재생성 시 목표가·앵커링가 재계산 없이 직전 값 상속(KTC) - MD 제시가·협력사 유형(유통·제조·총판·기타) 입력 [협상카드] - 사용 구분(공통/신규견적전용/재견적전용) [협상 진행] - 협력사 초청 메일 발송(일괄/개별·재발송, 발송상태 표시) [기타] - 견적상세 창 닫기 버그 수정, 불필요한 컬럼 주석 정리 - DB: 기존 DB는 postgres-init/04-alter.sql 적용 필요(자동 마이그레이션 없음) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b42d084063
commit
019f3dbeac
51 files changed
+1263
-163
No files matched your search
@@ -42,6 +42,8 @@ export default function QuotationPage() {
|
||||
deleteSetting,
|
||||
createQuotation,
|
||||
regenerateQuotation,
|
||||
notifyQuotation,
|
||||
notifySession,
|
||||
} = useQuotations(params);
|
||||
const totalPages = list.totalPages(total);
|
||||
|
||||
@@ -58,7 +60,9 @@ export default function QuotationPage() {
|
||||
const detailQuery = useGetQuotation(detailId ?? '', {
|
||||
query: { enabled: !!detailId, refetchOnWindowFocus: true, placeholderData: keepPreviousData },
|
||||
});
|
||||
const activeQuotation = detailQuery.data?.quotation ?? null;
|
||||
// detailId 로 게이트한다 — keepPreviousData 가 닫은 뒤에도 이전 견적을 들고 있어
|
||||
// detailId 가 null(닫힘)이어도 시트가 안 사라지던 버그 방지. 라운드 전환(둘 다 truthy)은 영향 없음.
|
||||
const activeQuotation = detailId ? (detailQuery.data?.quotation ?? null) : null;
|
||||
|
||||
return (
|
||||
<PageContainer>
|
||||
@@ -154,13 +158,15 @@ export default function QuotationPage() {
|
||||
}
|
||||
/>
|
||||
|
||||
{activeQuotation && (
|
||||
{detailId && activeQuotation && (
|
||||
<QuotationDetailSheet
|
||||
key={activeQuotation.qt_id}
|
||||
quotation={activeQuotation}
|
||||
onCloseQuotation={closeQuotation}
|
||||
onSwitchRound={(qtId) => overlay.open('detail', qtId, { replace: true })}
|
||||
onRegenerate={regenerateQuotation}
|
||||
onNotify={notifyQuotation}
|
||||
onNotifySession={notifySession}
|
||||
onClose={overlay.close}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user