From 890d31ff5fd88c6e65ee35b43575d3847cd01c05 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 12 Jan 2024 20:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20MALL=EF=BC=9A=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=BC=96=E8=BE=91=20=3D>=20=E4=BC=98=E5=8C=96=20DeliveryForm?= =?UTF-8?q?=20=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit a38ddb699a489dab882b58fbd822ad99c236edbb) --- src/api/mall/product/spu.ts | 1 + src/utils/dict.ts | 1 - .../mall/product/spu/components/SkuList.vue | 6 +- .../mall/product/spu/form/DeliveryForm.vue | 70 ++++++++++--------- src/views/mall/product/spu/form/InfoForm.vue | 3 +- .../product/spu/form/ProductAttributes.vue | 2 +- src/views/mall/product/spu/form/SkuForm.vue | 8 ++- src/views/mall/product/spu/form/index.vue | 4 +- 8 files changed, 52 insertions(+), 43 deletions(-) diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts index 1494037e..985203e8 100644 --- a/src/api/mall/product/spu.ts +++ b/src/api/mall/product/spu.ts @@ -39,6 +39,7 @@ export interface Spu { picUrl?: string // 商品封面图 sliderPicUrls?: string[] // 商品轮播图 introduction?: string // 商品简介 + deliveryTypes?: number[] // 配送方式 deliveryTemplateId?: number | undefined // 运费模版 brandId?: number // 商品品牌编号 specType?: boolean // 商品规格 diff --git a/src/utils/dict.ts b/src/utils/dict.ts index b3cd3999..8b543d15 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -103,7 +103,6 @@ export const getDictLabel = (dictType: string, value: any): string => { export enum DICT_TYPE { USER_TYPE = 'user_type', COMMON_STATUS = 'common_status', - SYSTEM_TENANT_PACKAGE_ID = 'system_tenant_package_id', TERMINAL = 'terminal', // 终端 // ========== SYSTEM 模块 ========== diff --git a/src/views/mall/product/spu/components/SkuList.vue b/src/views/mall/product/spu/components/SkuList.vue index fb2ef358..6447090b 100644 --- a/src/views/mall/product/spu/components/SkuList.vue +++ b/src/views/mall/product/spu/components/SkuList.vue @@ -8,9 +8,9 @@ max-height="500" size="small" > - + diff --git a/src/views/mall/product/spu/form/DeliveryForm.vue b/src/views/mall/product/spu/form/DeliveryForm.vue index 07c0e9e9..5b91277b 100644 --- a/src/views/mall/product/spu/form/DeliveryForm.vue +++ b/src/views/mall/product/spu/form/DeliveryForm.vue @@ -1,15 +1,23 @@ +