From 144be6ef44d65e5d075f22e3e178135a236fd939 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 31 May 2023 15:37:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=20SPU=20=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=BF=AB=E9=80=92=E6=A8=A1=E7=89=88=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 2ddb6050763cb395dbe4c1d475a127e6e8da58ca) --- .../trade/delivery/expressTemplate/index.ts | 5 +++++ src/views/mall/product/spu/addForm.vue | 8 +++++-- .../product/spu/components/BasicInfoForm.vue | 21 ++++++++++++++----- src/views/mall/product/spu/index.vue | 2 +- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/api/mall/trade/delivery/expressTemplate/index.ts b/src/api/mall/trade/delivery/expressTemplate/index.ts index 9414c847..53f2cdeb 100644 --- a/src/api/mall/trade/delivery/expressTemplate/index.ts +++ b/src/api/mall/trade/delivery/expressTemplate/index.ts @@ -33,6 +33,11 @@ export const getDeliveryExpressTemplate = async (id: number) => { return await request.get({ url: '/trade/delivery/express-template/get?id=' + id }) } +// 查询快递运费模板详情 +export const getSimpleTemplateList = async () => { + return await request.get({ url: '/trade/delivery/express-template/list-all-simple' }) +} + // 新增快递运费模板 export const createDeliveryExpressTemplate = async (data: DeliveryExpressTemplateVO) => { return await request.post({ url: '/trade/delivery/express-template/create', data }) diff --git a/src/views/mall/product/spu/addForm.vue b/src/views/mall/product/spu/addForm.vue index 737b5e17..19eee826 100644 --- a/src/views/mall/product/spu/addForm.vue +++ b/src/views/mall/product/spu/addForm.vue @@ -28,7 +28,9 @@ - 保存 + + 保存 + 返回 @@ -94,7 +96,9 @@ const formData = ref({ /** 获得详情 */ const getDetail = async () => { - console.log(name) + if ('productSpuDetail' === name) { + isDetail.value = true + } const id = params.spuId as number if (id) { formLoading.value = true diff --git a/src/views/mall/product/spu/components/BasicInfoForm.vue b/src/views/mall/product/spu/components/BasicInfoForm.vue index 2cc5a7c2..f49d5b17 100644 --- a/src/views/mall/product/spu/components/BasicInfoForm.vue +++ b/src/views/mall/product/spu/components/BasicInfoForm.vue @@ -67,7 +67,12 @@ - + 运费模板 @@ -127,6 +132,9 @@ + @@ -157,19 +165,19 @@ diff --git a/src/views/mall/product/spu/index.vue b/src/views/mall/product/spu/index.vue index f3e0476b..47a9c8d5 100644 --- a/src/views/mall/product/spu/index.vue +++ b/src/views/mall/product/spu/index.vue @@ -408,7 +408,7 @@ const openForm = (id?: number) => { * 查看商品详情 */ const openDetail = (id?: number) => { - push('/product/productSpuDetail' + id) + push('/product/productSpuDetail/' + id) } /** 导出按钮操作 */