[feat] negodata/front: 견적 재생성·차수 체인 UI + 담당자/메모 + 스크롤·목업 정비
- 견적 재생성(다음 견적) 엔드포인트 연동 모달: 연결 공급사+협상단계 표시, 마지막 차수에서만 - 차수 체인 타임라인/견적번호 클릭 필터, 생성 응답 슬림(qt_id/session_count) 반영 - 상세 시트 스크롤 수정(min-h-0)·배경 스크롤 락(useScrollLock)·헤더2:탭1 비율 - 담당자=로그인 유저(store) 자동 전송 + 생성 모달 메모 입력 추가 - 목업/가짜 폴백 제거(담당자·견적명·번호·메모 → '-'), 시드 회사 placeholder UUID→실 UUID - 견적상태 CREATED 칩 pulse 제거 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
7f948075e5
commit
9f947e4823
23 files changed
+565
-86
No files matched your search
@@ -40,6 +40,7 @@ export default function QuotationPage() {
|
||||
addSetting,
|
||||
deleteSetting,
|
||||
createQuotation,
|
||||
regenerateQuotation,
|
||||
} = useQuotations(params);
|
||||
const totalPages = list.totalPages(total);
|
||||
|
||||
@@ -49,7 +50,10 @@ export default function QuotationPage() {
|
||||
const isSettingsOpen = overlay.has('settings');
|
||||
|
||||
// 상세 요약은 리스트에서 find 하지 않고 단건 API 로 받아온다(딥링크 시 리스트 의존 제거).
|
||||
const detailQuery = useGetQuotation(detailId ?? '', { query: { enabled: !!detailId } });
|
||||
// 탭 복귀 시 재조회(자리비운 사이 스케줄러가 마감/낙찰/재생성했을 수 있음). 전역 기본은 false라 상세만 켠다.
|
||||
const detailQuery = useGetQuotation(detailId ?? '', {
|
||||
query: { enabled: !!detailId, refetchOnWindowFocus: true },
|
||||
});
|
||||
const activeQuotation = detailQuery.data?.quotation ?? null;
|
||||
|
||||
return (
|
||||
@@ -128,6 +132,11 @@ export default function QuotationPage() {
|
||||
data={quotations}
|
||||
products={products}
|
||||
onOpenDetail={(id) => overlay.open('detail', id)}
|
||||
onFilterChain={(number) => {
|
||||
// 견적번호 클릭 → 검색어를 그 번호로 즉시 세팅(같은 체인의 차수만 모아 보기).
|
||||
list.setSearch(number);
|
||||
list.submitSearch();
|
||||
}}
|
||||
footer={
|
||||
<TablePagination
|
||||
page={list.page}
|
||||
@@ -146,6 +155,8 @@ export default function QuotationPage() {
|
||||
key={activeQuotation.qt_id}
|
||||
quotation={activeQuotation}
|
||||
onCloseQuotation={closeQuotation}
|
||||
onSwitchRound={(qtId) => overlay.open('detail', qtId, { replace: true })}
|
||||
onRegenerate={regenerateQuotation}
|
||||
onClose={overlay.close}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user