feat(web-admin): choose display name and brand constraint on quote/contract lines

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-28 09:30:38 +08:00
1 parent ba98108659
commit cd33befa07
7 files changed
+360 -11

No files matched your search

+6
View File
@@ -62,6 +62,12 @@ export interface ContractProductForm {
remark?: string
isToxic?: number
isExplosive?: number
brandMode?: string
brandId?: string
brandName?: string
standardProductName?: string
nameOptions?: string[]
brandOptions?: Array<{ id: string; brandName: string }>
priceTiers?: ContractProductPriceTierForm[]
}
+8
View File
@@ -47,6 +47,14 @@ export interface QuoteProductForm {
remark?: string
isToxic?: number
isExplosive?: number
/** required=指定品牌 any=不限品牌;无品牌产品不传 */
brandMode?: string
brandId?: string
brandName?: string
/** 以下仅前端编辑态使用,提交时可一并带上(后端忽略未知字段) */
standardProductName?: string
nameOptions?: string[]
brandOptions?: Array<{ id: string; brandName: string }>
}
export interface QuoteForm {