[feat] negodata: 마감 close_reason 개편 + 견적상세 단가조정 스펙트럼
- 마감사유 quotations.close_reason(SMALLINT, 8종) 신설 — 낙찰/재협상3종/유찰4종 구분, 재생성 한도 카운팅. quotation_settings 에 mid_action·over_action·regen_limit(3구간 가격정책) 추가. models.py·enums.py·01-schema.sql·crud·service·테스트 정합. - 프론트 노출: CloseReason/PriceGateAction 라벨·배지, 목록 마감결과 컬럼, 견적세팅 모달 3구간. orval 생성모델 갱신. - 견적상세 결과밴드: 목표가→낙찰가→절감 stat 트리오를 단가조정 흐름 스펙트럼(목표가·최저·최고 투찰가)으로 교체. lowestBid/highestBid 는 bid_price 파생(DB 컬럼 아님), 최초가 컬럼 없어 시작앵커=최고 투찰가로 대체. 라벨 방향 값순 번갈아 배치로 겹침 방지. - 라벨 정정: "단독 낙찰"→"낙찰"(낙찰은 단수), "목표 대비"→"목표가 대비". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d0b6e785af
commit
e23349c11e
32 files changed
+1087
-325
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* quotations.close_reason 코드값(SMALLINT). 마감 사유 — 재생성 한도 카운팅(REGEN_*)과 유찰 사유 구분에 쓴다.
|
||||
기존 preferred_sp_yn/equal_bid_yn 2플래그로는 4상태만 표현돼 '목표초과 재협상'이 미참여와 충돌하고 유찰 사유가 뭉개짐 → 이 컬럼으로 명시.
|
||||
*/
|
||||
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,
|
||||
} as const;
|
||||
@@ -27,6 +27,7 @@ export * from './chatMessageDataIndicatorValue';
|
||||
export * from './chatMessageDataScript';
|
||||
export * from './chatMessageDataStep';
|
||||
export * from './chatSender';
|
||||
export * from './closeReason';
|
||||
export * from './companyData';
|
||||
export * from './companyUserData';
|
||||
export * from './companyUserDataContactNumber';
|
||||
@@ -81,6 +82,7 @@ export * from './notificationDataReadAt';
|
||||
export * from './notificationDataRefQtId';
|
||||
export * from './notificationDataRefSessionId';
|
||||
export * from './notificationType';
|
||||
export * from './priceGateAction';
|
||||
export * from './quotationCardData';
|
||||
export * from './quotationCardDataCondition';
|
||||
export * from './quotationCardDataEditScript';
|
||||
@@ -93,6 +95,7 @@ export * from './quotationCardDataScript';
|
||||
export * from './quotationCardDataType';
|
||||
export * from './quotationCardDataWildCardId';
|
||||
export * from './quotationData';
|
||||
export * from './quotationDataCloseReason';
|
||||
export * from './quotationDataCreatedAt';
|
||||
export * from './quotationDataCreatorName';
|
||||
export * from './quotationDataEqualBidData';
|
||||
@@ -204,6 +207,9 @@ 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';
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 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;
|
||||
@@ -17,6 +17,7 @@ import type { QuotationDataPreferredSpId } from './quotationDataPreferredSpId';
|
||||
import type { QuotationDataPreferredSpName } from './quotationDataPreferredSpName';
|
||||
import type { QuotationDataEqualBidYn } from './quotationDataEqualBidYn';
|
||||
import type { QuotationDataEqualBidData } from './quotationDataEqualBidData';
|
||||
import type { QuotationDataCloseReason } from './quotationDataCloseReason';
|
||||
import type { QuotationDataItemId } from './quotationDataItemId';
|
||||
import type { QuotationDataItemName } from './quotationDataItemName';
|
||||
import type { QuotationDataCreatorName } from './quotationDataCreatorName';
|
||||
@@ -47,6 +48,7 @@ export interface QuotationData {
|
||||
preferred_sp_name?: QuotationDataPreferredSpName;
|
||||
equal_bid_yn?: QuotationDataEqualBidYn;
|
||||
equal_bid_data?: QuotationDataEqualBidData;
|
||||
close_reason?: QuotationDataCloseReason;
|
||||
participation_count?: number;
|
||||
item_id?: QuotationDataItemId;
|
||||
item_name?: QuotationDataItemName;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CloseReason } from './closeReason';
|
||||
|
||||
export type QuotationDataCloseReason = CloseReason | null;
|
||||
@@ -5,6 +5,7 @@
|
||||
* 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';
|
||||
|
||||
@@ -14,6 +15,9 @@ export interface QuotationSettingData {
|
||||
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;
|
||||
}
|
||||
@@ -4,9 +4,13 @@
|
||||
* 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;
|
||||
}
|
||||
@@ -7,9 +7,15 @@
|
||||
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;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 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;
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 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;
|
||||
@@ -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 ReqUpdateQuotationSettingRegenLimit = number | null;
|
||||
Reference in new issue
Block a user