[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
@@ -5,7 +5,6 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from './asyncJob';
|
||||
export * from './bodyUploadItemImageV1ItemImagePost';
|
||||
export * from './cardData';
|
||||
export * from './cardDataCondition';
|
||||
@@ -126,6 +125,7 @@ export * from './reqCreateSupplierManagerEmail';
|
||||
export * from './reqCreateSupplierManagerName';
|
||||
export * from './reqCreateSupplierPriority';
|
||||
export * from './reqLogin';
|
||||
export * from './reqRegenerateQuotation';
|
||||
export * from './reqUpdateCard';
|
||||
export * from './reqUpdateCardCondition';
|
||||
export * from './reqUpdateCardEditScript';
|
||||
@@ -173,9 +173,8 @@ export * from './resCheckCodesMsg';
|
||||
export * from './resCreateAccount';
|
||||
export * from './resCreateAccountMsg';
|
||||
export * from './resCreateQuotation';
|
||||
export * from './resCreateQuotationAsyncJob';
|
||||
export * from './resCreateQuotationMsg';
|
||||
export * from './resCreateQuotationQuotation';
|
||||
export * from './resCreateQuotationQtId';
|
||||
export * from './resDeleteCard';
|
||||
export * from './resDeleteCardMsg';
|
||||
export * from './resDeleteItem';
|
||||
|
||||
@@ -15,7 +15,6 @@ export interface ReqCreateQuotation {
|
||||
qt_setting_id: string;
|
||||
version_id?: ReqCreateQuotationVersionId;
|
||||
name?: string;
|
||||
number?: string;
|
||||
type?: number;
|
||||
status?: number;
|
||||
start_time?: ReqCreateQuotationStartTime;
|
||||
|
||||
+2
-3
@@ -5,7 +5,6 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface AsyncJob {
|
||||
status?: string;
|
||||
message?: string;
|
||||
export interface ReqRegenerateQuotation {
|
||||
supplier_ids?: string[];
|
||||
}
|
||||
@@ -6,14 +6,11 @@
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCreateQuotationMsg } from './resCreateQuotationMsg';
|
||||
import type { ResCreateQuotationQuotation } from './resCreateQuotationQuotation';
|
||||
import type { SessionData } from './sessionData';
|
||||
import type { ResCreateQuotationAsyncJob } from './resCreateQuotationAsyncJob';
|
||||
import type { ResCreateQuotationQtId } from './resCreateQuotationQtId';
|
||||
|
||||
export interface ResCreateQuotation {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResCreateQuotationMsg;
|
||||
quotation?: ResCreateQuotationQuotation;
|
||||
sessions?: SessionData[];
|
||||
async_job?: ResCreateQuotationAsyncJob;
|
||||
qt_id?: ResCreateQuotationQtId;
|
||||
session_count?: number;
|
||||
}
|
||||
+1
-2
@@ -4,6 +4,5 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AsyncJob } from './asyncJob';
|
||||
|
||||
export type ResCreateQuotationAsyncJob = AsyncJob | null;
|
||||
export type ResCreateQuotationQtId = string | null;
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationData } from './quotationData';
|
||||
|
||||
export type ResCreateQuotationQuotation = QuotationData | null;
|
||||
@@ -27,6 +27,7 @@ import type {
|
||||
HTTPValidationError,
|
||||
ListQuotationsParams,
|
||||
ReqCreateQuotation,
|
||||
ReqRegenerateQuotation,
|
||||
ResCreateQuotation,
|
||||
ResDeleteQuotation,
|
||||
ResQuotation,
|
||||
@@ -265,6 +266,71 @@ export const useStopQuotation = <TError = void | HTTPValidationError,
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 견적 재생성(다음 라운드)
|
||||
*/
|
||||
export const regenerateQuotation = (
|
||||
qtId: string,
|
||||
reqRegenerateQuotation: ReqRegenerateQuotation,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResCreateQuotation>(
|
||||
{url: `/v1/quotation/regenerate/${qtId}`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqRegenerateQuotation, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const getRegenerateQuotationMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof regenerateQuotation>>, TError,{qtId: string;data: ReqRegenerateQuotation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof regenerateQuotation>>, TError,{qtId: string;data: ReqRegenerateQuotation}, TContext> => {
|
||||
|
||||
const mutationKey = ['regenerateQuotation'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof regenerateQuotation>>, {qtId: string;data: ReqRegenerateQuotation}> = (props) => {
|
||||
const {qtId,data} = props ?? {};
|
||||
|
||||
return regenerateQuotation(qtId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type RegenerateQuotationMutationResult = NonNullable<Awaited<ReturnType<typeof regenerateQuotation>>>
|
||||
export type RegenerateQuotationMutationBody = ReqRegenerateQuotation
|
||||
export type RegenerateQuotationMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 견적 재생성(다음 라운드)
|
||||
*/
|
||||
export const useRegenerateQuotation = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof regenerateQuotation>>, TError,{qtId: string;data: ReqRegenerateQuotation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof regenerateQuotation>>,
|
||||
TError,
|
||||
{qtId: string;data: ReqRegenerateQuotation},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getRegenerateQuotationMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 견적 상태 조회
|
||||
*/
|
||||
export const getQuotationStatus = (
|
||||
|
||||
Reference in new issue
Block a user