商品管理: 完善表单校验,优化信息提示,完成新建、编辑、提交逻辑

This commit is contained in:
puhui999
2023-04-26 17:17:39 +08:00
parent a0014bed65
commit c38abc365c
7 changed files with 374 additions and 133 deletions

View File

@ -0,0 +1,22 @@
export interface SpuType {
name?: string // 商品名称
categoryId?: number // 商品分类
keyword?: string // 关键字
unit?: string // 单位
picUrl?: string // 商品封面图
sliderPicUrls?: string[] // 商品轮播图
introduction?: string // 商品简介
deliveryTemplateId?: number // 运费模版
selectRule?: string // 选择规格 TODO 暂时定义
specType?: boolean // 商品规格
subCommissionType?: boolean // 分销类型
description?: string // 商品详情
sort?: string // 商品排序
giveIntegral?: number // 赠送积分
virtualSalesCount?: number // 虚拟销量
recommendHot?: boolean // 是否热卖
recommendBenefit?: boolean // 是否优惠
recommendBest?: boolean // 是否精品
recommendNew?: boolean // 是否新品
recommendGood?: boolean // 是否优品
}