From 6478d295dfc0b7a01c46abf3eb0dbc1b633f4f27 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 1 May 2023 19:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/product/management/type/spuType.ts | 4 +- src/utils/dict.ts | 5 +- src/views/mall/product/management/addForm.vue | 97 ++++++++++++++++--- .../management/components/BasicInfoForm.vue | 97 +++++++++---------- .../{SkuList/index.vue => SkuList.vue} | 58 ++++++++--- .../product/management/components/index.ts | 12 ++- 6 files changed, 195 insertions(+), 78 deletions(-) rename src/views/mall/product/management/components/{SkuList/index.vue => SkuList.vue} (80%) 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 @@