From c0905fdc8ecd3c5f07c82f8fc9b94351d11ac157 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 11 Jan 2024 00:00:43 +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=E7=9A=84=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/product/spu/form/BasicInfoForm.vue | 25 ----- .../mall/product/spu/form/DeliveryForm.vue | 105 ++++++++++++++++++ src/views/mall/product/spu/form/index.vue | 14 ++- 3 files changed, 118 insertions(+), 26 deletions(-) create mode 100644 src/views/mall/product/spu/form/DeliveryForm.vue diff --git a/src/views/mall/product/spu/form/BasicInfoForm.vue b/src/views/mall/product/spu/form/BasicInfoForm.vue index 42059718..8d654381 100644 --- a/src/views/mall/product/spu/form/BasicInfoForm.vue +++ b/src/views/mall/product/spu/form/BasicInfoForm.vue @@ -47,17 +47,6 @@ - - - - - - @@ -71,15 +60,6 @@ - - - @@ -146,7 +126,6 @@ const formData = reactive({ picUrl: '', // 商品封面图 sliderPicUrls: [], // 商品轮播图 introduction: '', // 商品简介 - deliveryTemplateId: null, // 运费模版 brandId: null // 商品品牌 }) const rules = reactive({ @@ -156,7 +135,6 @@ const rules = reactive({ introduction: [required], picUrl: [required], sliderPicUrls: [required], - deliveryTemplateId: [required], brandId: [required] }) @@ -207,14 +185,11 @@ const formatCategoryName = (categoryId: number) => { } const brandList = ref([]) // 精简商品品牌列表 -const deliveryTemplateList = ref([]) // 运费模版 onMounted(async () => { // 获得分类树 const data = await ProductCategoryApi.getCategoryList({}) categoryList.value = handleTree(data, 'id', 'parentId') // 获取商品品牌列表 brandList.value = await ProductBrandApi.getSimpleBrandList() - // 获取运费模版 - deliveryTemplateList.value = await ExpressTemplateApi.getSimpleTemplateList() }) diff --git a/src/views/mall/product/spu/form/DeliveryForm.vue b/src/views/mall/product/spu/form/DeliveryForm.vue new file mode 100644 index 00000000..046d9a6b --- /dev/null +++ b/src/views/mall/product/spu/form/DeliveryForm.vue @@ -0,0 +1,105 @@ + + diff --git a/src/views/mall/product/spu/form/index.vue b/src/views/mall/product/spu/form/index.vue index 73225e03..c83e91c5 100644 --- a/src/views/mall/product/spu/form/index.vue +++ b/src/views/mall/product/spu/form/index.vue @@ -1,7 +1,7 @@