diff --git a/src/api/mall/product/management/type/spuType.ts b/src/api/mall/product/management/type/spuType.ts index 5d9b65ef..f0deaed3 100644 --- a/src/api/mall/product/management/type/spuType.ts +++ b/src/api/mall/product/management/type/spuType.ts @@ -2,9 +2,9 @@ import { SkuType } from './skuType' export interface SpuType { name?: string // 商品名称 - categoryId?: number | undefined // 商品分类 + categoryId?: number | null // 商品分类 keyword?: string // 关键字 - unit?: string // 单位 + unit?: number | null // 单位 picUrl?: string // 商品封面图 sliderPicUrls?: string[] // 商品轮播图 introduction?: string // 商品简介 diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 03e17e75..f4e77c22 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -144,5 +144,8 @@ export enum DICT_TYPE { // ========== MP 模块 ========== MP_AUTO_REPLY_REQUEST_MATCH = 'mp_auto_reply_request_match', // 自动回复请求匹配类型 - MP_MESSAGE_TYPE = 'mp_message_type' // 消息类型 + MP_MESSAGE_TYPE = 'mp_message_type', // 消息类型 + + // ========== MALL 模块 ========== + PRODUCT_UNIT = 'product_unit' // 商品单位 } diff --git a/src/views/mall/product/management/addForm.vue b/src/views/mall/product/management/addForm.vue index ad973394..673aa2a3 100644 --- a/src/views/mall/product/management/addForm.vue +++ b/src/views/mall/product/management/addForm.vue @@ -34,8 +34,7 @@