feat(web-admin): edit product brands and aliases in product form
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bfa0d50597
commit
bcfadd23d9
2 files changed
+204
-2
No files matched your search
@@ -1,5 +1,48 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export interface ProductBrandItem {
|
||||
id?: string
|
||||
brandName: string
|
||||
status?: string
|
||||
orderNum?: number
|
||||
}
|
||||
|
||||
export interface ProductAliasItem {
|
||||
id?: string
|
||||
aliasName: string
|
||||
orderNum?: number
|
||||
}
|
||||
|
||||
export interface ProductFormData {
|
||||
id?: string
|
||||
productName: string
|
||||
productNo?: string
|
||||
categoryId?: string
|
||||
model?: string
|
||||
barcode?: string
|
||||
stock?: number
|
||||
lowStock?: number
|
||||
taxRate?: number
|
||||
status?: string
|
||||
isToxic?: number
|
||||
isExplosive?: number
|
||||
description?: string
|
||||
images?: string
|
||||
remark?: string
|
||||
brands?: ProductBrandItem[]
|
||||
aliases?: ProductAliasItem[]
|
||||
}
|
||||
|
||||
export interface ProductDetail extends ProductFormData {
|
||||
id: string
|
||||
categoryName?: string
|
||||
price?: number
|
||||
costPrice?: number
|
||||
cost?: number
|
||||
saleCount?: number
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
// ── 产品分类 ──
|
||||
|
||||
/** 产品分类树(不分页) */
|
||||
|
||||
Reference in new issue
Block a user