diff --git a/negodata/front/src/api/generated/model/closeReason.ts b/negodata/front/src/api/generated/model/closeReason.ts index 477629c..ed560b2 100644 --- a/negodata/front/src/api/generated/model/closeReason.ts +++ b/negodata/front/src/api/generated/model/closeReason.ts @@ -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; diff --git a/negodata/front/src/api/generated/model/index.ts b/negodata/front/src/api/generated/model/index.ts index 15890bd..ef93c03 100644 --- a/negodata/front/src/api/generated/model/index.ts +++ b/negodata/front/src/api/generated/model/index.ts @@ -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'; diff --git a/negodata/front/src/api/generated/model/priceGateAction.ts b/negodata/front/src/api/generated/model/priceGateAction.ts deleted file mode 100644 index 0a3287e..0000000 --- a/negodata/front/src/api/generated/model/priceGateAction.ts +++ /dev/null @@ -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; diff --git a/negodata/front/src/api/generated/model/quotationData.ts b/negodata/front/src/api/generated/model/quotationData.ts index d2d1770..3b3f5fd 100644 --- a/negodata/front/src/api/generated/model/quotationData.ts +++ b/negodata/front/src/api/generated/model/quotationData.ts @@ -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; diff --git a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingRegenLimit.ts b/negodata/front/src/api/generated/model/quotationDataMidAction.ts similarity index 65% rename from negodata/front/src/api/generated/model/reqUpdateQuotationSettingRegenLimit.ts rename to negodata/front/src/api/generated/model/quotationDataMidAction.ts index 6790922..e187563 100644 --- a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingRegenLimit.ts +++ b/negodata/front/src/api/generated/model/quotationDataMidAction.ts @@ -5,4 +5,4 @@ * OpenAPI spec version: 0.1.0 */ -export type ReqUpdateQuotationSettingRegenLimit = number | null; +export type QuotationDataMidAction = number | null; diff --git a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingAnchoringValue.ts b/negodata/front/src/api/generated/model/quotationDataOverAction.ts similarity index 64% rename from negodata/front/src/api/generated/model/reqUpdateQuotationSettingAnchoringValue.ts rename to negodata/front/src/api/generated/model/quotationDataOverAction.ts index 75e7046..90751ca 100644 --- a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingAnchoringValue.ts +++ b/negodata/front/src/api/generated/model/quotationDataOverAction.ts @@ -5,4 +5,4 @@ * OpenAPI spec version: 0.1.0 */ -export type ReqUpdateQuotationSettingAnchoringValue = number | null; +export type QuotationDataOverAction = number | null; diff --git a/negodata/front/src/api/generated/model/quotationSettingData.ts b/negodata/front/src/api/generated/model/quotationSettingData.ts index f6aab9a..b8980ce 100644 --- a/negodata/front/src/api/generated/model/quotationSettingData.ts +++ b/negodata/front/src/api/generated/model/quotationSettingData.ts @@ -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; } diff --git a/negodata/front/src/api/generated/model/reqCreateQuotation.ts b/negodata/front/src/api/generated/model/reqCreateQuotation.ts index e51bce6..c750921 100644 --- a/negodata/front/src/api/generated/model/reqCreateQuotation.ts +++ b/negodata/front/src/api/generated/model/reqCreateQuotation.ts @@ -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; } diff --git a/negodata/front/src/api/generated/model/reqCreateQuotationMidAction.ts b/negodata/front/src/api/generated/model/reqCreateQuotationMidAction.ts new file mode 100644 index 0000000..151a51c --- /dev/null +++ b/negodata/front/src/api/generated/model/reqCreateQuotationMidAction.ts @@ -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; diff --git a/negodata/front/src/api/generated/model/reqCreateQuotationOverAction.ts b/negodata/front/src/api/generated/model/reqCreateQuotationOverAction.ts new file mode 100644 index 0000000..553582d --- /dev/null +++ b/negodata/front/src/api/generated/model/reqCreateQuotationOverAction.ts @@ -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; diff --git a/negodata/front/src/api/generated/model/reqCreateQuotationSetting.ts b/negodata/front/src/api/generated/model/reqCreateQuotationSetting.ts index f3f39f0..31a2d7e 100644 --- a/negodata/front/src/api/generated/model/reqCreateQuotationSetting.ts +++ b/negodata/front/src/api/generated/model/reqCreateQuotationSetting.ts @@ -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; } diff --git a/negodata/front/src/api/generated/model/reqUpdateQuotationSetting.ts b/negodata/front/src/api/generated/model/reqUpdateQuotationSetting.ts index 32ec724..0070c42 100644 --- a/negodata/front/src/api/generated/model/reqUpdateQuotationSetting.ts +++ b/negodata/front/src/api/generated/model/reqUpdateQuotationSetting.ts @@ -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; } diff --git a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingMidAction.ts b/negodata/front/src/api/generated/model/reqUpdateQuotationSettingMidAction.ts deleted file mode 100644 index 34712e8..0000000 --- a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingMidAction.ts +++ /dev/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 ReqUpdateQuotationSettingMidAction = PriceGateAction | null; diff --git a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingOverAction.ts b/negodata/front/src/api/generated/model/reqUpdateQuotationSettingOverAction.ts deleted file mode 100644 index 5c525f6..0000000 --- a/negodata/front/src/api/generated/model/reqUpdateQuotationSettingOverAction.ts +++ /dev/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; diff --git a/negodata/front/src/api/generated/model/resTargetBreakdown.ts b/negodata/front/src/api/generated/model/resTargetBreakdown.ts index 4697eed..64f1044 100644 --- a/negodata/front/src/api/generated/model/resTargetBreakdown.ts +++ b/negodata/front/src/api/generated/model/resTargetBreakdown.ts @@ -25,7 +25,6 @@ export interface ResTargetBreakdown { selling?: ResTargetBreakdownSelling; fee?: number; margin?: number; - anchoring_value?: number; candidates?: TargetCandidate[]; chosen_basis?: ResTargetBreakdownChosenBasis; target_price?: number; diff --git a/negodata/front/src/features/dashboard/components/ScopeSection.tsx b/negodata/front/src/features/dashboard/components/ScopeSection.tsx index f6666c0..4994350 100644 --- a/negodata/front/src/features/dashboard/components/ScopeSection.tsx +++ b/negodata/front/src/features/dashboard/components/ScopeSection.tsx @@ -35,7 +35,7 @@ export function ScopeSection({