[feat] negodata/front: 견적생성 UX 재개편(협상/견적 2축·낙찰기준 스펙트럼·카드 스텝) + 개찰 표기 + 세팅 정리

Co-Authored-By: Claude Opus 4.8뀨 <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8뀨 committed 2026-07-06 16:36:33 +09:00
1 parent 38709b3098
commit f1a29b8bde
27 files changed
+440 -332

No files matched your search

@@ -6,8 +6,9 @@
*/
/**
* quotations.close_reason 코드값(SMALLINT). 마감 사유 — 재생성 한도 카운팅(REGEN_*)과 유찰 사유 구분에 쓴다.
기존 preferred_sp_yn/equal_bid_yn 2플래그로는 4상태만 표현돼 '목표초과 재협상'이 미참여와 충돌하고 유찰 사유가 뭉개짐 → 이 컬럼으로 명시.
* quotations.close_reason 코드값(SMALLINT). 마감 사유 — 낙찰(AWARDED) 또는 개찰(OPEN_*)로 가른다.
개찰=결렬(유찰)이 아니라 '낙찰자 미정으로 마감' — 자동 재협상/재생성 없이 담당자가 수동 처리(수동 재생성 등)한다.
(구 자동재협상 사유 REGEN_*(2~4)·유찰 개념은 폐지. 사유 플래그 값 5~8은 보존해 OPEN_* 로 재명명.)
*/
export type CloseReason = typeof CloseReason[keyof typeof CloseReason];
@@ -15,11 +16,8 @@ export type CloseReason = typeof CloseReason[keyof typeof CloseReason];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CloseReason = {
AWARDED: 1,
REGEN_PRICE: 2,
REGEN_EQUAL: 3,
REGEN_NOSHOW: 4,
FAIL_PRICE: 5,
FAIL_EQUAL: 6,
FAIL_NOSHOW: 7,
FAIL_REJECT: 8,
OPEN_PRICE: 5,
OPEN_EQUAL: 6,
OPEN_NOSHOW: 7,
OPEN_REJECT: 8,
} as const;
@@ -82,7 +82,6 @@ export * from './notificationDataReadAt';
export * from './notificationDataRefQtId';
export * from './notificationDataRefSessionId';
export * from './notificationType';
export * from './priceGateAction';
export * from './quotationCardData';
export * from './quotationCardDataCondition';
export * from './quotationCardDataEditScript';
@@ -107,6 +106,8 @@ export * from './quotationDataManagerEmail';
export * from './quotationDataManagerName';
export * from './quotationDataMdPrice';
export * from './quotationDataMemo';
export * from './quotationDataMidAction';
export * from './quotationDataOverAction';
export * from './quotationDataPreferredSpId';
export * from './quotationDataPreferredSpName';
export * from './quotationDataPreferredSpYn';
@@ -151,6 +152,8 @@ export * from './reqCreateQuotationManagerEmail';
export * from './reqCreateQuotationManagerName';
export * from './reqCreateQuotationMdPrice';
export * from './reqCreateQuotationMemo';
export * from './reqCreateQuotationMidAction';
export * from './reqCreateQuotationOverAction';
export * from './reqCreateQuotationSetting';
export * from './reqCreateQuotationStartTime';
export * from './reqCreateQuotationSupplierType';
@@ -205,11 +208,7 @@ export * from './reqUpdateMeEmail';
export * from './reqUpdateMeName';
export * from './reqUpdateMePassword';
export * from './reqUpdateQuotationSetting';
export * from './reqUpdateQuotationSettingAnchoringValue';
export * from './reqUpdateQuotationSettingCardCount';
export * from './reqUpdateQuotationSettingMidAction';
export * from './reqUpdateQuotationSettingOverAction';
export * from './reqUpdateQuotationSettingRegenLimit';
export * from './reqUpdateQuotationSettingTargetMarginRate';
export * from './reqUpdateSupplier';
export * from './reqUpdateSupplierCode';
@@ -1,20 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
/**
* quotation_settings 의 가격 구간별 처리 정책. '앵커링가<투찰가≤목표가'(mid) / '목표가<투찰가'(over) 구간에 적용.
(투찰가≤앵커링가 는 항상 낙찰이라 설정 없음.)
*/
export type PriceGateAction = typeof PriceGateAction[keyof typeof PriceGateAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PriceGateAction = {
AWARD: 1,
RENEGO: 2,
FAIL: 3,
} as const;
@@ -18,6 +18,8 @@ import type { QuotationDataPreferredSpName } from './quotationDataPreferredSpNam
import type { QuotationDataEqualBidYn } from './quotationDataEqualBidYn';
import type { QuotationDataEqualBidData } from './quotationDataEqualBidData';
import type { QuotationDataCloseReason } from './quotationDataCloseReason';
import type { QuotationDataMidAction } from './quotationDataMidAction';
import type { QuotationDataOverAction } from './quotationDataOverAction';
import type { QuotationDataItemId } from './quotationDataItemId';
import type { QuotationDataItemName } from './quotationDataItemName';
import type { QuotationDataCreatorName } from './quotationDataCreatorName';
@@ -49,6 +51,8 @@ export interface QuotationData {
equal_bid_yn?: QuotationDataEqualBidYn;
equal_bid_data?: QuotationDataEqualBidData;
close_reason?: QuotationDataCloseReason;
mid_action?: QuotationDataMidAction;
over_action?: QuotationDataOverAction;
participation_count?: number;
item_id?: QuotationDataItemId;
item_name?: QuotationDataItemName;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ReqUpdateQuotationSettingRegenLimit = number | null;
export type QuotationDataMidAction = number | null;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ReqUpdateQuotationSettingAnchoringValue = number | null;
export type QuotationDataOverAction = number | null;
@@ -5,7 +5,6 @@
* OpenAPI spec version: 0.1.0
*/
import type { QuotationSettingDataUserId } from './quotationSettingDataUserId';
import type { PriceGateAction } from './priceGateAction';
import type { QuotationSettingDataCreatedAt } from './quotationSettingDataCreatedAt';
import type { QuotationSettingDataUpdatedAt } from './quotationSettingDataUpdatedAt';
@@ -13,11 +12,7 @@ export interface QuotationSettingData {
qt_setting_id: string;
user_id?: QuotationSettingDataUserId;
target_margin_rate: number;
anchoring_value: number;
card_count: number;
mid_action?: PriceGateAction;
over_action?: PriceGateAction;
regen_limit?: number;
created_at?: QuotationSettingDataCreatedAt;
updated_at?: QuotationSettingDataUpdatedAt;
}
@@ -12,6 +12,8 @@ import type { ReqCreateQuotationManagerContactNumber } from './reqCreateQuotatio
import type { ReqCreateQuotationMemo } from './reqCreateQuotationMemo';
import type { ReqCreateQuotationMdPrice } from './reqCreateQuotationMdPrice';
import type { ReqCreateQuotationSupplierType } from './reqCreateQuotationSupplierType';
import type { ReqCreateQuotationMidAction } from './reqCreateQuotationMidAction';
import type { ReqCreateQuotationOverAction } from './reqCreateQuotationOverAction';
export interface ReqCreateQuotation {
qt_setting_id: string;
@@ -31,4 +33,6 @@ export interface ReqCreateQuotation {
item_ids?: string[];
supplier_ids?: string[];
card_ids?: string[];
mid_action?: ReqCreateQuotationMidAction;
over_action?: ReqCreateQuotationOverAction;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ReqCreateQuotationMidAction = number | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ReqCreateQuotationOverAction = number | null;
@@ -4,13 +4,8 @@
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { PriceGateAction } from './priceGateAction';
export interface ReqCreateQuotationSetting {
target_margin_rate: number;
anchoring_value?: number;
card_count?: number;
mid_action?: PriceGateAction;
over_action?: PriceGateAction;
regen_limit?: number;
}
@@ -5,17 +5,9 @@
* OpenAPI spec version: 0.1.0
*/
import type { ReqUpdateQuotationSettingTargetMarginRate } from './reqUpdateQuotationSettingTargetMarginRate';
import type { ReqUpdateQuotationSettingAnchoringValue } from './reqUpdateQuotationSettingAnchoringValue';
import type { ReqUpdateQuotationSettingCardCount } from './reqUpdateQuotationSettingCardCount';
import type { ReqUpdateQuotationSettingMidAction } from './reqUpdateQuotationSettingMidAction';
import type { ReqUpdateQuotationSettingOverAction } from './reqUpdateQuotationSettingOverAction';
import type { ReqUpdateQuotationSettingRegenLimit } from './reqUpdateQuotationSettingRegenLimit';
export interface ReqUpdateQuotationSetting {
target_margin_rate?: ReqUpdateQuotationSettingTargetMarginRate;
anchoring_value?: ReqUpdateQuotationSettingAnchoringValue;
card_count?: ReqUpdateQuotationSettingCardCount;
mid_action?: ReqUpdateQuotationSettingMidAction;
over_action?: ReqUpdateQuotationSettingOverAction;
regen_limit?: ReqUpdateQuotationSettingRegenLimit;
}
@@ -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 { PriceGateAction } from './priceGateAction';
export type ReqUpdateQuotationSettingMidAction = PriceGateAction | 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 { PriceGateAction } from './priceGateAction';
export type ReqUpdateQuotationSettingOverAction = PriceGateAction | null;
@@ -25,7 +25,6 @@ export interface ResTargetBreakdown {
selling?: ResTargetBreakdownSelling;
fee?: number;
margin?: number;
anchoring_value?: number;
candidates?: TargetCandidate[];
chosen_basis?: ResTargetBreakdownChosenBasis;
target_price?: number;